node-opcua-crypto 4.9.3 → 4.9.4
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/dist/{chunk-WYY6WVVJ.mjs → chunk-UEV3YRUV.mjs} +2 -2
- package/dist/{chunk-VAMKYXNP.mjs → chunk-WLW5XUML.mjs} +7 -6
- package/dist/chunk-WLW5XUML.mjs.map +1 -0
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index_web.js +6 -5
- package/dist/index_web.js.map +1 -1
- package/dist/index_web.mjs +1 -1
- package/dist/source/index.js +6 -5
- package/dist/source/index.js.map +1 -1
- package/dist/source/index.mjs +1 -1
- package/dist/source/index_web.js +6 -5
- package/dist/source/index_web.js.map +1 -1
- package/dist/source/index_web.mjs +1 -1
- package/dist/source_nodejs/index.js +4 -3
- package/dist/source_nodejs/index.js.map +1 -1
- package/dist/source_nodejs/index.mjs +2 -2
- package/package.json +2 -2
- package/dist/chunk-VAMKYXNP.mjs.map +0 -1
- /package/dist/{chunk-WYY6WVVJ.mjs.map → chunk-UEV3YRUV.mjs.map} +0 -0
|
@@ -319,19 +319,20 @@ var x509 = __toESM(require("@peculiar/x509"));
|
|
|
319
319
|
var import_webcrypto = require("@peculiar/webcrypto");
|
|
320
320
|
var import_crypto3 = __toESM(require("crypto"));
|
|
321
321
|
var x5092 = __toESM(require("@peculiar/x509"));
|
|
322
|
+
var doDebug2 = false;
|
|
322
323
|
var _crypto;
|
|
323
324
|
var ignoreCrypto = process.env.IGNORE_SUBTLE_FROM_CRYPTO;
|
|
324
325
|
if (typeof window === "undefined") {
|
|
325
326
|
_crypto = import_crypto3.default;
|
|
326
327
|
if (!_crypto?.subtle || ignoreCrypto) {
|
|
327
328
|
_crypto = new import_webcrypto.Crypto();
|
|
328
|
-
console.warn("using @peculiar/webcrypto");
|
|
329
|
+
doDebug2 && console.warn("using @peculiar/webcrypto");
|
|
329
330
|
} else {
|
|
330
|
-
console.warn("using nodejs crypto (native)");
|
|
331
|
+
doDebug2 && console.warn("using nodejs crypto (native)");
|
|
331
332
|
}
|
|
332
333
|
x509.cryptoProvider.set(_crypto);
|
|
333
334
|
} else {
|
|
334
|
-
console.warn("using browser crypto (native)");
|
|
335
|
+
doDebug2 && console.warn("using browser crypto (native)");
|
|
335
336
|
_crypto = crypto;
|
|
336
337
|
x509.cryptoProvider.set(crypto);
|
|
337
338
|
}
|