8000 Regenerate client from commit 4b92779 of spec repo (#43) · arduino/iot-client-js@b738ac1 · GitHub
[go: up one dir, main page]

Skip to content

Commit b738ac1

Browse files
github-actions[bot]ArduinoBot
and
ArduinoBot
authored
Regenerate client from commit 4b92779 of spec repo (#43)
Co-authored-by: ArduinoBot <arduinobot@arduino.cc>
1 parent 900ca02 commit b738ac1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.apigentools-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"spec_versions": {
55
"v2": {
66
"apigentools_version": "1.2.0",
7-
"regenerated": "2020-06-22 14:07:46.554362",
8-
"spec_repo_commit": "ab1acf2"
7+
"regenerated": "2020-09-15 10:19:56.884903",
8+
"spec_repo_commit": "4b92779"
99
}
1010
}
1111
}

src/ApiClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class ApiClient {
331331
var data = response.body;
332332
if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) {
333333
// SuperAgent does not always produce a body; use the unparsed response as a fallback
334-
data = response.text;
334+
data = JSON.parse(response.text);
335335
}
336336

337337
return ApiClient.convertToType(data, returnType);

0 commit comments

Comments
 (0)
0