@lumiastream/tapo-cove 3.0.16 → 3.0.17
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/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -408,8 +408,8 @@ var TapoApi = class {
|
|
|
408
408
|
request: encryptedRequest
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
|
-
if ((_a = config.fetchConfig) == null ? void 0 : _a.
|
|
412
|
-
return
|
|
411
|
+
if (!((_a = config.fetchConfig) == null ? void 0 : _a.useFetch)) {
|
|
412
|
+
return this.axiosInstance({
|
|
413
413
|
url: `http://${deviceKey.deviceIp}/app?token=${deviceKey.token}`,
|
|
414
414
|
data: {
|
|
415
415
|
method: "POST",
|
|
@@ -438,6 +438,7 @@ var TapoApi = class {
|
|
|
438
438
|
};
|
|
439
439
|
this.axiosInstance = import_axios2.default.create();
|
|
440
440
|
this.axiosInstance.defaults.timeout = (config == null ? void 0 : config.httpTimeout) || 4e3;
|
|
441
|
+
this.axiosInstance.defaults.withCredentials = true;
|
|
441
442
|
this._config = __spreadValues(__spreadValues({}, this._config), config);
|
|
442
443
|
}
|
|
443
444
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -376,8 +376,8 @@ var TapoApi = class {
|
|
|
376
376
|
request: encryptedRequest
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
|
-
if ((_a = config.fetchConfig) == null ? void 0 : _a.
|
|
380
|
-
return
|
|
379
|
+
if (!((_a = config.fetchConfig) == null ? void 0 : _a.useFetch)) {
|
|
380
|
+
return this.axiosInstance({
|
|
381
381
|
url: `http://${deviceKey.deviceIp}/app?token=${deviceKey.token}`,
|
|
382
382
|
data: {
|
|
383
383
|
method: "POST",
|
|
@@ -406,6 +406,7 @@ var TapoApi = class {
|
|
|
406
406
|
};
|
|
407
407
|
this.axiosInstance = axios2.create();
|
|
408
408
|
this.axiosInstance.defaults.timeout = (config == null ? void 0 : config.httpTimeout) || 4e3;
|
|
409
|
+
this.axiosInstance.defaults.withCredentials = true;
|
|
409
410
|
this._config = __spreadValues(__spreadValues({}, this._config), config);
|
|
410
411
|
}
|
|
411
412
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumiastream/tapo-cove",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.17",
|
|
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": "
|
|
26
|
+
"gitHead": "b9f6b4a73b15a6b7ca2eaf631915156e9af4c04b"
|
|
27
27
|
}
|