Skip to content

Commit c8732ff

Browse files
author
Corentin Mors
authored
Dependencies upgrade march 24 (#224)
Regular dependencies update, march '24
2 parents 20ae36d + 8696a00 commit c8732ff

File tree

4 files changed

+308
-310
lines changed

4 files changed

+308
-310
lines changed

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
yarn run format

package.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"pkg:win": "pkg . -t node18-win-x64 -o bundle/dcli-win.exe -C GZip --public --public-packages tslib,thirty-two --no-bytecode",
2929
"pkg": "yarn run build && yarn run pkg:linux && yarn run pkg:macos && yarn run pkg:win",
3030
"version:bump": "ts-node src/bumpVersion.ts",
31-
"prepare": "husky install",
31+
"prepare": "husky",
3232
"test": "mocha"
3333
},
3434
"author": {
@@ -41,38 +41,38 @@
4141
"devDependencies": {
4242
"@types/async": "^3.2.24",
4343
"@types/better-sqlite3": "^7.6.9",
44-
"@types/chai": "^4.3.11",
44+
"@types/chai": "^4.3.12",
4545
"@types/inquirer": "^8.2.10",
4646
"@types/mocha": "^10.0.6",
47-
"@types/node": "^18.19.14",
48-
"@typescript-eslint/eslint-plugin": "^6.20.0",
49-
"@typescript-eslint/parser": "^6.20.0",
50-
"@yao-pkg/pkg": "^5.11.1",
47+
"@types/node": "^18.19.24",
48+
"@typescript-eslint/eslint-plugin": "^7.2.0",
49+
"@typescript-eslint/parser": "^7.2.0",
50+
"@yao-pkg/pkg": "^5.11.5",
5151
"chai": "^4.4.1",
52-
"eslint": "^8.56.0",
52+
"eslint": "^8.57.0",
5353
"eslint-config-prettier": "^9.1.0",
5454
"eslint-plugin-import": "^2.29.1",
55-
"husky": "^8.0.3",
56-
"mocha": "^10.2.0",
57-
"prettier": "^3.0.3",
55+
"husky": "^9.0.11",
56+
"mocha": "^10.3.0",
57+
"prettier": "^3.2.5",
5858
"ts-node": "^10.9.2",
59-
"typescript": "^5.2.2"
59+
"typescript": "^5.4.2"
6060
},
6161
"dependencies": {
62-
"@json2csv/plainjs": "^7.0.5",
63-
"@json2csv/transforms": "^7.0.5",
64-
"@napi-rs/clipboard": "^1.1.1",
62+
"@json2csv/plainjs": "^7.0.6",
63+
"@json2csv/transforms": "^7.0.6",
64+
"@napi-rs/clipboard": "^1.1.2",
6565
"@napi-rs/keyring": "^1.1.3",
66-
"@node-rs/argon2": "^1.7.2",
67-
"better-sqlite3": "^8.7.0",
66+
"@node-rs/argon2": "^1.8.0",
67+
"better-sqlite3": "^9.4.3",
6868
"commander": "^11.1.0",
6969
"got": "^11.8.6",
7070
"inquirer": "^8.2.6",
7171
"inquirer-search-list": "^1.2.6",
72-
"jsonpath-plus": "^7.2.0",
72+
"jsonpath-plus": "^8.1.0",
7373
"otplib": "^12.0.1",
74-
"playwright-core": "^1.41.2",
75-
"winston": "^3.11.0",
74+
"playwright-core": "^1.42.1",
75+
"winston": "^3.12.0",
7676
"xml-js": "^1.6.11",
7777
"zlib": "^1.0.5"
7878
},

src/modules/crypto/keychainManager.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ const getLocalConfigurationWithoutDB = async (
107107
const { type } = await get2FAStatusUnauthenticated({ login });
108108

109109
let masterPassword = '';
110-
let masterPasswordEnv = process.env.DASHLANE_MASTER_PASSWORD;
110+
const masterPasswordEnv = process.env.DASHLANE_MASTER_PASSWORD;
111111
let serverKeyEncrypted = null;
112112
const isSSO = type === 'sso';
113113

114114
// In case of SSO
115115
if (isSSO) {
116116
masterPassword = decryptSsoRemoteKey({ ssoServerKey, ssoSpKey, remoteKeys });
117-
} else if(masterPasswordEnv) {
118-
masterPassword = masterPasswordEnv
117+
} else if (masterPasswordEnv) {
118+
masterPassword = masterPasswordEnv;
119119
} else {
120120
masterPassword = await askMasterPassword();
121121

0 commit comments

Comments
 (0)