@moonpay/platform-sdk-core 1.16.0 → 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 +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -300,6 +300,13 @@ interface KeyPair {
|
|
|
300
300
|
}
|
|
301
301
|
/** Generate an ephemeral X25519 key pair for the encrypted credential exchange. */
|
|
302
302
|
declare function generateKeyPair(): KeyPair;
|
|
303
|
+
/**
|
|
304
|
+
* Whether a cryptographically-secure RNG (Web Crypto `getRandomValues`) is
|
|
305
|
+
* available in this runtime. React Native (Hermes) has none by default, so
|
|
306
|
+
* `generateKeyPair()` will throw unless a polyfill is installed. Always true in
|
|
307
|
+
* browsers and Node.
|
|
308
|
+
*/
|
|
309
|
+
declare function isSecureRandomAvailable(): boolean;
|
|
303
310
|
|
|
304
311
|
interface FrameOrchestratorOptions {
|
|
305
312
|
transport: FrameTransport;
|
|
@@ -355,4 +362,4 @@ declare function isTrustedFrameOrigin(origin: string): boolean;
|
|
|
355
362
|
*/
|
|
356
363
|
declare function isTrustedFrameUrl(value: string): boolean;
|
|
357
364
|
|
|
358
|
-
export { type ClientContext, type ClientContextOptions, type CoreClient, type CoreClientOptions, FRAME_PATHS, type FrameHandle, type FrameOptions, type FrameOrchestratorOptions, type FrameTransport, type KeyPair, type ListAssetsParams, type ListTransactionsParams, type PresentationMode, TRUSTED_FRAME_ORIGIN_PATTERNS, type ThemeOptions, type UrlBuilderOptions, apiFetch, applyClientTokenParam, applyPresentationParam, applyThemeParam, buildFrameUrl, createClientContext, createClientCore, createFrameOrchestrator, createIdentity, decryptCredentials, deletePaymentMethod, generateKeyPair, getAssets, getCustomer, getCustomerUploadUrl, getIdentity, getIdentityUploadUrl, getPaymentMethods, getQuote, getTransaction, isTrustedFrameOrigin, isTrustedFrameUrl, listTransactions, presentationParams, simulateBankTransfer, submitCustomerFiles, submitCustomerKyc, submitIdentityFiles, themeParams, updateIdentity, verifyIdentity };
|
|
365
|
+
export { type ClientContext, type ClientContextOptions, type CoreClient, type CoreClientOptions, FRAME_PATHS, type FrameHandle, type FrameOptions, type FrameOrchestratorOptions, type FrameTransport, type KeyPair, type ListAssetsParams, type ListTransactionsParams, type PresentationMode, TRUSTED_FRAME_ORIGIN_PATTERNS, type ThemeOptions, type UrlBuilderOptions, apiFetch, applyClientTokenParam, applyPresentationParam, applyThemeParam, buildFrameUrl, createClientContext, createClientCore, createFrameOrchestrator, createIdentity, decryptCredentials, deletePaymentMethod, generateKeyPair, getAssets, getCustomer, getCustomerUploadUrl, getIdentity, getIdentityUploadUrl, getPaymentMethods, getQuote, getTransaction, isSecureRandomAvailable, isTrustedFrameOrigin, isTrustedFrameUrl, listTransactions, presentationParams, simulateBankTransfer, submitCustomerFiles, submitCustomerKyc, submitIdentityFiles, themeParams, updateIdentity, verifyIdentity };
|
package/dist/index.d.ts
CHANGED
|
@@ -300,6 +300,13 @@ interface KeyPair {
|
|
|
300
300
|
}
|
|
301
301
|
/** Generate an ephemeral X25519 key pair for the encrypted credential exchange. */
|
|
302
302
|
declare function generateKeyPair(): KeyPair;
|
|
303
|
+
/**
|
|
304
|
+
* Whether a cryptographically-secure RNG (Web Crypto `getRandomValues`) is
|
|
305
|
+
* available in this runtime. React Native (Hermes) has none by default, so
|
|
306
|
+
* `generateKeyPair()` will throw unless a polyfill is installed. Always true in
|
|
307
|
+
* browsers and Node.
|
|
308
|
+
*/
|
|
309
|
+
declare function isSecureRandomAvailable(): boolean;
|
|
303
310
|
|
|
304
311
|
interface FrameOrchestratorOptions {
|
|
305
312
|
transport: FrameTransport;
|
|
@@ -355,4 +362,4 @@ declare function isTrustedFrameOrigin(origin: string): boolean;
|
|
|
355
362
|
*/
|
|
356
363
|
declare function isTrustedFrameUrl(value: string): boolean;
|
|
357
364
|
|
|
358
|
-
export { type ClientContext, type ClientContextOptions, type CoreClient, type CoreClientOptions, FRAME_PATHS, type FrameHandle, type FrameOptions, type FrameOrchestratorOptions, type FrameTransport, type KeyPair, type ListAssetsParams, type ListTransactionsParams, type PresentationMode, TRUSTED_FRAME_ORIGIN_PATTERNS, type ThemeOptions, type UrlBuilderOptions, apiFetch, applyClientTokenParam, applyPresentationParam, applyThemeParam, buildFrameUrl, createClientContext, createClientCore, createFrameOrchestrator, createIdentity, decryptCredentials, deletePaymentMethod, generateKeyPair, getAssets, getCustomer, getCustomerUploadUrl, getIdentity, getIdentityUploadUrl, getPaymentMethods, getQuote, getTransaction, isTrustedFrameOrigin, isTrustedFrameUrl, listTransactions, presentationParams, simulateBankTransfer, submitCustomerFiles, submitCustomerKyc, submitIdentityFiles, themeParams, updateIdentity, verifyIdentity };
|
|
365
|
+
export { type ClientContext, type ClientContextOptions, type CoreClient, type CoreClientOptions, FRAME_PATHS, type FrameHandle, type FrameOptions, type FrameOrchestratorOptions, type FrameTransport, type KeyPair, type ListAssetsParams, type ListTransactionsParams, type PresentationMode, TRUSTED_FRAME_ORIGIN_PATTERNS, type ThemeOptions, type UrlBuilderOptions, apiFetch, applyClientTokenParam, applyPresentationParam, applyThemeParam, buildFrameUrl, createClientContext, createClientCore, createFrameOrchestrator, createIdentity, decryptCredentials, deletePaymentMethod, generateKeyPair, getAssets, getCustomer, getCustomerUploadUrl, getIdentity, getIdentityUploadUrl, getPaymentMethods, getQuote, getTransaction, isSecureRandomAvailable, isTrustedFrameOrigin, isTrustedFrameUrl, listTransactions, presentationParams, simulateBankTransfer, submitCustomerFiles, submitCustomerKyc, submitIdentityFiles, themeParams, updateIdentity, verifyIdentity };
|
package/dist/index.js
CHANGED
|
@@ -1551,6 +1551,9 @@ function generateKeyPair() {
|
|
|
1551
1551
|
publicKey: bytesToHex(publicKey)
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
|
+
function isSecureRandomAvailable() {
|
|
1555
|
+
return typeof globalThis.crypto?.getRandomValues === "function";
|
|
1556
|
+
}
|
|
1554
1557
|
|
|
1555
1558
|
// src/frames/frame-orchestrator.ts
|
|
1556
1559
|
import {
|
|
@@ -1719,6 +1722,7 @@ export {
|
|
|
1719
1722
|
getPaymentMethods,
|
|
1720
1723
|
getQuote,
|
|
1721
1724
|
getTransaction,
|
|
1725
|
+
isSecureRandomAvailable,
|
|
1722
1726
|
isTrustedFrameOrigin,
|
|
1723
1727
|
isTrustedFrameUrl,
|
|
1724
1728
|
listTransactions,
|