8000 Regenerate client from commit 584212d of spec repo (#23) · arduino/iot-client-js@6d02273 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d02273

Browse files
github-actions[bot]Fabrizio Mirabito
authored andcommitted
Regenerate client from commit 584212d of spec repo (#23)
1 parent d503ade commit 6d02273

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+48
-46
lines changed

.apigentools-info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"codegen_version": "4.1.3",
55
"info_version": "1",
66
"image": null,
7-
"spec_repo_commit": "9279140"
7+
"spec_repo_commit": "584212d"
88
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@arduino/arduino-iot-client",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Collection_of_all_public_API_endpoints_",
55
"license": "GPLv3",
66
"main": "dist/index.js",

src/ApiClient.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import querystring from "querystring";
1717

1818
/**
1919
* @module ApiClient
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222

2323
/**
@@ -444,11 +444,13 @@ class ApiClient {
444444
request.end((error, response) => {
445445
if (error) {
446446
var err = {};
447-
err.status = response.status;
448-
err.statusText = response.statusText;
449-
err.body = response.body;
450-
err.response = response;
451-
err.error = error;
447+
if (response) {
448+
err.status = response.status;
449+
err.statusText = response.statusText;
450+
err.body = response.body;
451+
err.response = response;
452+
err.error = error;
453+
}
452454

453455
reject(err);
454456
} else {

src/api/DevicesV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import PropertiesValues from '../model/PropertiesValues';
2424
/**
2525
* DevicesV2 service.
2626
* @module api/DevicesV2Api
27-
* @version 1.0.0
27+
* @version 1.0.1
2828
*/
2929
export default class DevicesV2Api {
3030

src/api/PropertiesV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import PropertyValue from '../model/PropertyValue';
2121
/**
2222
* PropertiesV2 service.
2323
* @module api/PropertiesV2Api
24-
* @version 1.0.0
24+
* @version 1.0.1
2525
*/
2626
export default class PropertiesV2Api {
2727

src/api/SeriesV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Error from '../model/Error';
2424
/**
2525
* SeriesV2 service.
2626
* @module api/SeriesV2Api
27-
* @version 1.0.0
27+
* @version 1.0.1
2828
*/
2929
export default class SeriesV2Api {
3030

src/api/ThingsV2Api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import ThingSketch from '../model/ThingSketch';
2222
/**
2323
* ThingsV2 service.
2424
* @module api/ThingsV2Api
25-
* @version 1.0.0
25+
* @version 1.0.1
2626
*/
2727
export default class ThingsV2Api {
2828

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ import ThingsV2Api from './api/ThingsV2Api';
8181
* </pre>
8282
* </p>
8383
* @module index
84-
* @version 1.0.0
84+
* @version 1.0.1
8585
*/
8686
export {
8787
/**

src/model/ArduinoDevicev2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ArduinoDevicev2Webhook from './ArduinoDevicev2Webhook';
1717
/**
1818
* The ArduinoDevicev2 model module.
1919
* @module model/ArduinoDevicev2
20-
* @version 1.0.0
20+
* @version 1.0.1
2121
*/
2222
class ArduinoDevicev2 {
2323
/**

src/model/ArduinoDevicev2Webhook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
1616
/**
1717
* The ArduinoDevicev2Webhook model module.
1818
* @module model/ArduinoDevicev2Webhook
19-
* @version 1.0.0
19+
* @version 1.0.1
2020
*/
2121
class ArduinoDevicev2Webhook {
2222
/**

0 commit comments

Comments
 (0)
0