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.
@@ -92,7 +92,7 @@ import {
92
92
  verifyChunkSignature,
93
93
  verifyChunkSignatureWithDerivedKeys,
94
94
  verifyMessageChunkSignature
95
- } from "../chunk-VAMKYXNP.mjs";
95
+ } from "../chunk-WLW5XUML.mjs";
96
96
  export {
97
97
  CertificatePurpose,
98
98
  PaddingAlgorithm,
@@ -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
  }