1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Chore: Work around test failure in newer NodeJS versions (#12830)

This commit is contained in:
Henry Heino
2025-08-01 03:45:09 -07:00
committed by GitHub
parent 825ce51a3c
commit f50dc6a536
2 changed files with 4 additions and 1 deletions

View File

@@ -12,7 +12,7 @@
"tsc": "tsc --project tsconfig.json", "tsc": "tsc --project tsconfig.json",
"watch": "tsc --watch --preserveWatchOutput --project tsconfig.json", "watch": "tsc --watch --preserveWatchOutput --project tsconfig.json",
"generatePluginTypes": "rm -rf ./plugin_types && yarn tsc --declaration --declarationDir ./plugin_types --project tsconfig.json", "generatePluginTypes": "rm -rf ./plugin_types && yarn tsc --declaration --declarationDir ./plugin_types --project tsconfig.json",
"test": "node --security-revert=CVE-2023-46809 ./node_modules/.bin/jest --verbose=false", "test": "jest",
"test-ci": "yarn test" "test-ci": "yarn test"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -6,6 +6,9 @@ const nodeRSAOptions: NodeRSA.Options = {
// app when decrypted by RN-RSA. // app when decrypted by RN-RSA.
// https://github.com/amitaymolko/react-native-rsa-native/issues/66#issuecomment-932768139 // https://github.com/amitaymolko/react-native-rsa-native/issues/66#issuecomment-932768139
encryptionScheme: 'pkcs1', encryptionScheme: 'pkcs1',
// Allows NodeRSA to work with pkcs1-v1.5 in newer NodeJS versions:
environment: 'browser',
}; };
const rsa: RSA = { const rsa: RSA = {