fix workflows

This commit is contained in:
Hare Sudhan 2024-02-25 16:42:08 -05:00
parent ab0bc52d3c
commit eadc74e4f4
3 changed files with 11 additions and 9 deletions

View File

@ -21,8 +21,8 @@ jobs:
npm install
npm run setheapsize
- name: Lint
run: npm run style && npx grunt lint && git diff --exit-code
- name: Format & Lint
run: (npm run style || npm run lint) && git diff --exit-code
- name: Unit Tests
run: |

View File

@ -191,7 +191,6 @@
"testuidev": "npx nightwatch --env=dev",
"lint": "npx grunt lint",
"style": "prettier --write .",
"check-style": "prettier --check .",
"postinstall": "npx grunt exec:fixCryptoApiImports && npx grunt exec:fixSnackbarMarkup",
"newop": "node --experimental-modules --experimental-json-modules src/core/config/scripts/newOperation.mjs",
"minor": "node --experimental-modules --experimental-json-modules src/core/config/scripts/newMinorVersion.mjs",

View File

@ -67,12 +67,15 @@ class DeriveEVPKey extends Operation {
iterations = args[2],
hasher = args[3],
salt = Utils.convertToByteString(args[4].string, args[4].option),
key = CryptoJS.EvpKDF(passphrase, salt, {
// lgtm [js/insufficient-password-hash]
keySize: keySize,
hasher: CryptoJS.algo[hasher],
iterations: iterations
});
key = CryptoJS.EvpKDF(
passphrase, // lgtm [js/insufficient-password-hash]
salt,
{
keySize: keySize,
hasher: CryptoJS.algo[hasher],
iterations: iterations
}
);
return key.toString(CryptoJS.enc.Hex);
}