cassproject 1.5.11 → 1.5.12
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/package.json
CHANGED
|
@@ -6,7 +6,9 @@ if (typeof crypto == 'undefined')
|
|
|
6
6
|
if (window.crypto != null)
|
|
7
7
|
var crypto = window.crypto;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
let requireResult = require('crypto').webcrypto;
|
|
10
|
+
if (requireResult != null)
|
|
11
|
+
var crypto = requireResult;
|
|
10
12
|
} catch (err) {
|
|
11
13
|
console.log("Webcrypto not available. Tests will fail. Please upgrade, if possible, to Node 16. Non-test mode will fallback to slower cryptograpy methods.: " + err);
|
|
12
14
|
}
|
|
@@ -7,7 +7,9 @@ if (typeof crypto == 'undefined')
|
|
|
7
7
|
if (window.crypto != null)
|
|
8
8
|
var crypto = window.crypto;
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
let requireResult = require('crypto').webcrypto;
|
|
11
|
+
if (requireResult != null)
|
|
12
|
+
var crypto = requireResult;
|
|
11
13
|
} catch (err) {
|
|
12
14
|
console.log("Webcrypto not available. Tests will fail. Please upgrade, if possible, to Node 16. Non-test mode will fallback to slower cryptograpy methods.: " + err);
|
|
13
15
|
}
|