@lumiastream/tapo-cove 3.1.1 → 3.2.0

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.
package/CHANGELOG.md CHANGED
@@ -3,12 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [3.1.1](https://github.com/lumiastream/rgb/compare/v3.1.0...v3.1.1) (2023-03-22)
6
+ # [3.2.0](https://github.com/lumiastream/rgb/compare/v3.1.0...v3.2.0) (2023-03-24)
7
7
 
8
8
  ### Bug Fixes
9
9
 
10
10
  - tapo bypass cookie ([39f5dec](https://github.com/lumiastream/rgb/commit/39f5dec51c403d7b99f662b75f4c32a76546e56a))
11
11
 
12
+ ### Features
13
+
14
+ - tapo timoeut in 3 seconds ([6d7bf1b](https://github.com/lumiastream/rgb/commit/6d7bf1b81a89ddb867677bff0b6f816547239981))
15
+
12
16
  # [3.1.0](https://github.com/lumiastream/rgb/compare/v3.0.15...v3.1.0) (2023-03-21)
13
17
 
14
18
  ### Bug Fixes
package/dist/index.js CHANGED
@@ -174,7 +174,8 @@ var handshake = (deviceIp) => __async(void 0, null, function* () {
174
174
  const response = yield (globalThis.nodeAxios ? globalThis.nodeAxios : import_axios.default)({
175
175
  method: "post",
176
176
  url: `http://${deviceIp}/app`,
177
- data: handshakeRequest
177
+ data: handshakeRequest,
178
+ timeout: 3e3
178
179
  });
179
180
  throwErrorIfFound(response.data);
180
181
  let setCookieHeader;
@@ -206,6 +207,7 @@ var securePassthrough = (deviceRequest, deviceKey) => __async(void 0, null, func
206
207
  method: "post",
207
208
  url: `http://${deviceKey.deviceIp}/app?token=${deviceKey.token}`,
208
209
  data: securePassthroughRequest,
210
+ timeout: 3e3,
209
211
  headers: {
210
212
  Cookie: deviceKey.sessionCookie
211
213
  }
package/dist/index.mjs CHANGED
@@ -142,7 +142,8 @@ var handshake = (deviceIp) => __async(void 0, null, function* () {
142
142
  const response = yield (globalThis.nodeAxios ? globalThis.nodeAxios : axios)({
143
143
  method: "post",
144
144
  url: `http://${deviceIp}/app`,
145
- data: handshakeRequest
145
+ data: handshakeRequest,
146
+ timeout: 3e3
146
147
  });
147
148
  throwErrorIfFound(response.data);
148
149
  let setCookieHeader;
@@ -174,6 +175,7 @@ var securePassthrough = (deviceRequest, deviceKey) => __async(void 0, null, func
174
175
  method: "post",
175
176
  url: `http://${deviceKey.deviceIp}/app?token=${deviceKey.token}`,
176
177
  data: securePassthroughRequest,
178
+ timeout: 3e3,
177
179
  headers: {
178
180
  Cookie: deviceKey.sessionCookie
179
181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumiastream/tapo-cove",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "private": false,
5
5
  "license": "GPL",
6
6
  "main": "dist/index.js",
@@ -23,5 +23,5 @@
23
23
  "tsup": "*",
24
24
  "typescript": "*"
25
25
  },
26
- "gitHead": "2cdf08ab42cf7e947b6310ca18a1f12116200204"
26
+ "gitHead": "3e77873d8c27d7844a456486f304c451dd814b22"
27
27
  }