@simplewebauthn/server 9.0.1 → 9.0.2
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.
|
@@ -39,7 +39,11 @@ export const _getWebCryptoInternals = {
|
|
|
39
39
|
stubThisImportNodeCrypto: async () => {
|
|
40
40
|
try {
|
|
41
41
|
// dnt-shim-ignore
|
|
42
|
-
|
|
42
|
+
/**
|
|
43
|
+
* The `webpackIgnore` here is to help support Next.js' Edge runtime.
|
|
44
|
+
* See https://github.com/MasterKale/SimpleWebAuthn/issues/517 for more info.
|
|
45
|
+
*/
|
|
46
|
+
const _nodeCrypto = await import(/* webpackIgnore: true */ 'crypto');
|
|
43
47
|
return _nodeCrypto;
|
|
44
48
|
}
|
|
45
49
|
catch (_err) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"module": "./esm/index.js",
|
|
3
3
|
"main": "./script/index.js",
|
|
4
4
|
"name": "@simplewebauthn/server",
|
|
5
|
-
"version": "9.0.
|
|
5
|
+
"version": "9.0.2",
|
|
6
6
|
"description": "SimpleWebAuthn for Servers",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "Matthew Miller <matthew@millerti.me>",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@peculiar/asn1-rsa": "^2.3.8",
|
|
56
56
|
"@peculiar/asn1-schema": "^2.3.8",
|
|
57
57
|
"@peculiar/asn1-x509": "^2.3.8",
|
|
58
|
-
"@simplewebauthn/types": "^9.0.
|
|
58
|
+
"@simplewebauthn/types": "^9.0.1",
|
|
59
59
|
"cbor-x": "^1.5.2",
|
|
60
60
|
"cross-fetch": "^4.0.0"
|
|
61
61
|
},
|
|
@@ -67,7 +67,11 @@ exports._getWebCryptoInternals = {
|
|
|
67
67
|
stubThisImportNodeCrypto: async () => {
|
|
68
68
|
try {
|
|
69
69
|
// dnt-shim-ignore
|
|
70
|
-
|
|
70
|
+
/**
|
|
71
|
+
* The `webpackIgnore` here is to help support Next.js' Edge runtime.
|
|
72
|
+
* See https://github.com/MasterKale/SimpleWebAuthn/issues/517 for more info.
|
|
73
|
+
*/
|
|
74
|
+
const _nodeCrypto = await Promise.resolve().then(() => __importStar(require(/* webpackIgnore: true */ 'crypto')));
|
|
71
75
|
return _nodeCrypto;
|
|
72
76
|
}
|
|
73
77
|
catch (_err) {
|