Skip to content

Commit

Permalink
Merge pull request #18 from IbrahimAkil/17-print-actual-response
Browse files Browse the repository at this point in the history
fix: print actual response

[object Object] was printed before, fixed it print the actual response
  • Loading branch information
Bernstein authored Feb 15, 2024
2 parents 17b7c59 + 181f33a commit 6c21cef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domrobot-client",
"version": "3.1.0",
"version": "3.1.1",
"description": "INWX Domrobot Node.JS Client",
"author": "INWX Developer <developer@inwx.de> (https://inwx.com)",
"main": "lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/domrobot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class ApiClient {
const data = await response.json()
if (this.debugMode) {
console.info(`Request (${apiMethod}): ${requestBody}`);
console.info(`Response (${apiMethod}): ${data}`);
console.info(`Response (${apiMethod}): ${JSON.stringify(data)}`);
}

return data;
Expand Down

0 comments on commit 6c21cef

Please sign in to comment.