@aurum-sdk/core 0.2.8 → 0.3.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/{Aurum-B0Okb4Qv.d.mts → Aurum-BoIhHFKm.d.mts} +25 -2
- package/dist/{Aurum-B0Okb4Qv.d.ts → Aurum-BoIhHFKm.d.ts} +25 -2
- package/dist/BraveAdapter-ALBZR2RG.js +153 -0
- package/dist/BraveAdapter-BPD5PDJH.mjs +153 -0
- package/dist/CoinbaseWalletAdapter-BLUJR23D.js +144 -0
- package/dist/CoinbaseWalletAdapter-IDB2DFH4.mjs +144 -0
- package/dist/EmailAdapter-RUV6JG6Z.mjs +212 -0
- package/dist/EmailAdapter-SY65VHGK.js +212 -0
- package/dist/MetaMaskAdapter-4V3XM6J2.js +152 -0
- package/dist/MetaMaskAdapter-KPNRCMOF.mjs +152 -0
- package/dist/PhantomAdapter-7MB32F5M.mjs +151 -0
- package/dist/PhantomAdapter-YTN5PUDI.js +151 -0
- package/dist/RabbyAdapter-QVNCSWYC.mjs +146 -0
- package/dist/RabbyAdapter-SOLYF74M.js +146 -0
- package/dist/WalletConnectAdapter-5YL5KFGI.mjs +540 -0
- package/dist/WalletConnectAdapter-VMN6R5LO.js +540 -0
- package/dist/{chunk-GMFEFDGS.mjs → chunk-222UJ3OP.mjs} +348 -6778
- package/dist/chunk-4S5E6KOY.mjs +21 -0
- package/dist/{chunk-K64T6WW3.js → chunk-MRORL6L3.js} +420 -6850
- package/dist/chunk-PFK6YHOX.mjs +15 -0
- package/dist/chunk-QOCN4F47.js +21 -0
- package/dist/chunk-RRUPCUSZ.mjs +6558 -0
- package/dist/chunk-XUD6VNF7.js +6558 -0
- package/dist/chunk-XVRTCAR4.js +15 -0
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +304 -1573
- package/dist/index.mjs +243 -1512
- package/dist/{index.web-Q2L3EMC3.mjs → index.web-NX7JZBIY.mjs} +267 -267
- package/dist/{index.web-V7DLWC7H.js → index.web-OPNRZHYZ.js} +267 -267
- package/dist/widgets.d.mts +1 -1
- package/dist/widgets.d.ts +1 -1
- package/dist/widgets.js +14 -12
- package/dist/widgets.mjs +3 -1
- package/package.json +3 -7
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_polyfills
|
|
3
|
+
} from "./chunk-J6XFKNJN.mjs";
|
|
4
|
+
|
|
5
|
+
// src/utils/platform/isBraveBrowser.ts
|
|
6
|
+
init_polyfills();
|
|
7
|
+
function isBraveBrowser() {
|
|
8
|
+
if (typeof navigator === "undefined") return false;
|
|
9
|
+
return navigator.brave !== void 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
isBraveBrowser
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=chunk-PFK6YHOX.mjs.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkQIPVNM7Tjs = require('./chunk-QIPVNM7T.js');
|
|
4
|
+
|
|
5
|
+
// src/utils/isConfigError.ts
|
|
6
|
+
_chunkQIPVNM7Tjs.init_polyfills.call(void 0, );
|
|
7
|
+
var isConfigError = (error) => {
|
|
8
|
+
const name = _optionalChain([error, 'optionalAccess', _ => _.name]);
|
|
9
|
+
return name === "ConfigError";
|
|
10
|
+
};
|
|
11
|
+
var createConfigError = (adapterName) => {
|
|
12
|
+
const error = new Error(`Missing required project ID for ${adapterName}`);
|
|
13
|
+
error.name = "ConfigError";
|
|
14
|
+
return error;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.isConfigError = isConfigError; exports.createConfigError = createConfigError;
|
|
21
|
+
//# sourceMappingURL=chunk-QOCN4F47.js.map
|