homey-api 1.5.8 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/API.js +4 -0
  2. package/package.json +1 -1
package/lib/API.js CHANGED
@@ -68,6 +68,8 @@ class API {
68
68
 
69
69
  this[operationId] = async ({
70
70
  $validate = true,
71
+ $timeout = 10000,
72
+ $timeoutMessage = null,
71
73
  $body = {},
72
74
  $query = {},
73
75
  $headers = {},
@@ -144,6 +146,8 @@ class API {
144
146
  body,
145
147
  path: pathWithParameters,
146
148
  context: { operation },
149
+ timeout: $timeout,
150
+ timeoutMessage: $timeoutMessage,
147
151
  });
148
152
  };
149
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "description": "Homey API",
5
5
  "main": "src/index.js",
6
6
  "types": "assets/types/homey-api.d.ts",