@moonpay/platform-sdk-core 0.3.0-next.0 → 0.3.0-next.1

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
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
26
- mod2
27
- ));
28
18
  var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
29
19
 
30
20
  // src/index.ts
@@ -802,9 +792,8 @@ function aoutput2(out, instance) {
802
792
  }
803
793
  }
804
794
 
805
- // ../../node_modules/.bun/@noble+hashes@1.7.0/node_modules/@noble/hashes/esm/cryptoNode.js
806
- var nc = __toESM(require("crypto"), 1);
807
- var crypto = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && "randomBytes" in nc ? nc : void 0;
795
+ // ../../node_modules/.bun/@noble+hashes@1.7.0/node_modules/@noble/hashes/esm/crypto.js
796
+ var crypto = typeof globalThis === "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
808
797
 
809
798
  // ../../node_modules/.bun/@noble+hashes@1.7.0/node_modules/@noble/hashes/esm/utils.js
810
799
  var createView2 = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
@@ -1603,6 +1592,7 @@ function createFrameOrchestrator(options) {
1603
1592
  // src/frames/url-builder.ts
1604
1593
  var FRAME_PATHS = {
1605
1594
  connect: "/platform/v1/connect",
1595
+ auth: "/platform/v1/auth",
1606
1596
  checkConnection: "/platform/v1/check-connection",
1607
1597
  applePay: "/platform/v1/apple-pay",
1608
1598
  googlePay: "/platform/v1/google-pay",
@@ -1636,28 +1626,6 @@ function buildFrameUrl(path, query = {}, options = {}) {
1636
1626
  }
1637
1627
  return url.href;
1638
1628
  }
1639
- // Annotate the CommonJS export names for ESM import in node:
1640
- 0 && (module.exports = {
1641
- FRAME_PATHS,
1642
- apiFetch,
1643
- buildFrameUrl,
1644
- createClientContext,
1645
- createClientCore,
1646
- createFrameOrchestrator,
1647
- createIdentity,
1648
- decryptCredentials,
1649
- deletePaymentMethod,
1650
- generateKeyPair,
1651
- getIdentity,
1652
- getIdentityUploadUrl,
1653
- getPaymentMethods,
1654
- getQuote,
1655
- getTransaction,
1656
- listTransactions,
1657
- submitIdentityFiles,
1658
- updateIdentity,
1659
- verifyIdentity
1660
- });
1661
1629
  /*! Bundled license information:
1662
1630
 
1663
1631
  @noble/ciphers/esm/utils.js: