Skip to content

Commit

Permalink
dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
apatsufas committed Oct 8, 2024
1 parent 984b0c7 commit 263d47e
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 28 deletions.
107 changes: 84 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@
"tp-link"
],
"dependencies": {
"axios": "^0.21.1",
"fakegato-history": "^0.6.2",
"axios": "^1.7.7",
"fakegato-history": "^0.6.5",
"lodash.defaults": "^4.2.0",
"node-cron": "^3.0.3",
"utf8": "^3.0.0",
"uuid": "8.3.2"
"uuid": "10.0.0"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
Expand Down
4 changes: 3 additions & 1 deletion src/utils/p100.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ export default class P100 implements TpLinkAccessory{
try {
const encryptedKey = res.data.result.key.toString('utf8');
this.decode_handshake_key(encryptedKey);
this.cookie = res.headers['set-cookie'][0].split(';')[0];
if(res.headers['set-cookie']){
this.cookie = res.headers['set-cookie'][0].split(';')[0];
}
return;
} catch (error) {
return this.handleError(res.data.error_code, '106');
Expand Down

0 comments on commit 263d47e

Please sign in to comment.