@lumiastream/tapo-cove 3.0.12 → 3.0.13

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.js CHANGED
@@ -177,7 +177,7 @@ var handshake = (deviceIp) => __async(void 0, null, function* () {
177
177
  data: handshakeRequest
178
178
  });
179
179
  throwErrorIfFound(response.data);
180
- const setCookieHeader = (_c = (_a = response.headers["set-cookie"]) == null ? void 0 : _a[0]) != null ? _c : (_b = response.headers["session-cookie"]) == null ? void 0 : _b[0];
180
+ const setCookieHeader = (_c = (_b = (_a = response.headers.get("set-cookie")) != null ? _a : response.headers.get("session-cookie")) != null ? _b : response.headers.get("session-key")) != null ? _c : response.headers.get("lumia-session");
181
181
  const sessionCookie = setCookieHeader.substring(0, setCookieHeader.indexOf(";"));
182
182
  const deviceKey = readDeviceKey(response.data.result.key, keyPair.privateKey);
183
183
  return {
package/dist/index.mjs CHANGED
@@ -145,7 +145,7 @@ var handshake = (deviceIp) => __async(void 0, null, function* () {
145
145
  data: handshakeRequest
146
146
  });
147
147
  throwErrorIfFound(response.data);
148
- const setCookieHeader = (_c = (_a = response.headers["set-cookie"]) == null ? void 0 : _a[0]) != null ? _c : (_b = response.headers["session-cookie"]) == null ? void 0 : _b[0];
148
+ const setCookieHeader = (_c = (_b = (_a = response.headers.get("set-cookie")) != null ? _a : response.headers.get("session-cookie")) != null ? _b : response.headers.get("session-key")) != null ? _c : response.headers.get("lumia-session");
149
149
  const sessionCookie = setCookieHeader.substring(0, setCookieHeader.indexOf(";"));
150
150
  const deviceKey = readDeviceKey(response.data.result.key, keyPair.privateKey);
151
151
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumiastream/tapo-cove",
3
- "version": "3.0.12",
3
+ "version": "3.0.13",
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": "d79cf92963174ef9909c1ae46aee8723bc5e775c"
26
+ "gitHead": "26ece2122a597f779a0733619ee96f1d75a3a19a"
27
27
  }