@moonpay/platform-sdk-core 1.15.2 → 1.17.0

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/index.cjs CHANGED
@@ -42,6 +42,7 @@ __export(index_exports, {
42
42
  getPaymentMethods: () => getPaymentMethods,
43
43
  getQuote: () => getQuote,
44
44
  getTransaction: () => getTransaction,
45
+ isSecureRandomAvailable: () => isSecureRandomAvailable,
45
46
  isTrustedFrameOrigin: () => isTrustedFrameOrigin,
46
47
  isTrustedFrameUrl: () => isTrustedFrameUrl,
47
48
  listTransactions: () => listTransactions,
@@ -1609,6 +1610,9 @@ function generateKeyPair() {
1609
1610
  publicKey: bytesToHex(publicKey)
1610
1611
  };
1611
1612
  }
1613
+ function isSecureRandomAvailable() {
1614
+ return typeof globalThis.crypto?.getRandomValues === "function";
1615
+ }
1612
1616
 
1613
1617
  // src/frames/frame-orchestrator.ts
1614
1618
  var import_protocol = require("@moonpay/platform-protocol/protocol");