@funkit/core 1.0.19 → 1.1.0-next.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.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/src/utils/ApiUtils.js +1 -5
- package/dist/src/utils/ApiUtils.js.map +1 -1
- package/dist/src/viem/Converter.d.ts +16 -16
- package/dist/src/wallet/FunWallet.d.ts +1 -1
- package/package.json +4 -9
- package/dist/fetch-polyfill.d.ts +0 -1
- package/dist/fetch-polyfill.js +0 -35
- package/dist/fetch-polyfill.js.map +0 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -25,5 +25,4 @@ __exportStar(require("./src/sponsors"), exports);
|
|
|
25
25
|
__exportStar(require("./src/utils"), exports);
|
|
26
26
|
__exportStar(require("./src/viem"), exports);
|
|
27
27
|
__exportStar(require("./src/wallet"), exports);
|
|
28
|
-
require("./fetch-polyfill");
|
|
29
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,6CAA0B;AAC1B,6CAA0B;AAC1B,+CAA4B;AAC5B,+CAA4B;AAC5B,6CAA0B;AAC1B,+CAA4B;AAC5B,iDAA8B;AAC9B,8CAA2B;AAC3B,6CAA0B;AAC1B,+CAA4B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,6CAA0B;AAC1B,6CAA0B;AAC1B,+CAA4B;AAC5B,+CAA4B;AAC5B,6CAA0B;AAC1B,+CAA4B;AAC5B,iDAA8B;AAC9B,8CAA2B;AAC3B,6CAA0B;AAC1B,+CAA4B"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.sendRequest = exports.DEFAULT_RETRY_OPTIONS = void 0;
|
|
7
4
|
exports.sendGetRequest = sendGetRequest;
|
|
@@ -9,7 +6,6 @@ exports.sendPostRequest = sendPostRequest;
|
|
|
9
6
|
exports.sendDeleteRequest = sendDeleteRequest;
|
|
10
7
|
exports.sendPutRequest = sendPutRequest;
|
|
11
8
|
const attempt_1 = require("@lifeomic/attempt");
|
|
12
|
-
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
13
9
|
const constants_1 = require("../common/constants");
|
|
14
10
|
const errors_1 = require("../errors");
|
|
15
11
|
const index_1 = require("./index");
|
|
@@ -47,7 +43,7 @@ const sendRequest = async (uri, method, apiKey, body, retryOptions) => {
|
|
|
47
43
|
...(retryOptions || {}),
|
|
48
44
|
};
|
|
49
45
|
return (0, attempt_1.retry)(async function () {
|
|
50
|
-
const response = await (
|
|
46
|
+
const response = await fetch(uri, {
|
|
51
47
|
method,
|
|
52
48
|
headers,
|
|
53
49
|
redirect: 'follow',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiUtils.js","sourceRoot":"","sources":["../../../src/utils/ApiUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiUtils.js","sourceRoot":"","sources":["../../../src/utils/ApiUtils.ts"],"names":[],"mappings":";;;AAwJA,wCAaC;AAED,0CAcC;AAED,8CAMC;AAED,wCAOC;AAtMD,+CAAgE;AAEhE,mDAA6C;AAC7C,sCAQkB;AAClB,mCAAmC;AAEnC,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAE,OAAY,EAAE,EAAE;IAC9C,IACE,GAAG,YAAY,8BAAqB;QACpC,GAAG,YAAY,8BAAqB;QACpC,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,MAAc,mBAAO,EACrB,QAAgB,EAChB,IAAY,EACZ,SAAkB,UAAkB,CAAC,eAAe,EAAE,MAAM,EAC5D,eAA2C,EAAE;IAE7C,OAAO,MAAM,IAAA,mBAAW,EACtB,GAAG,GAAG,IAAI,QAAQ,EAAE,EACpB,MAAM,EACN,MAAM,EACN,IAAI,EACJ,YAAY,CACb,CAAA;AACH,CAAC;AAEM,KAAK,UAAU,iBAAiB,CACrC,MAAc,mBAAO,EACrB,QAAgB,EAChB,SAAkB,UAAkB,CAAC,eAAe,CAAC,MAAO;IAE5D,MAAM,IAAA,mBAAW,EAAC,GAAG,GAAG,IAAI,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;AAC3D,CAAC;AAEM,KAAK,UAAU,cAAc,CAClC,MAAc,mBAAO,EACrB,QAAgB,EAChB,IAAY,EACZ,SAAkB,UAAkB,CAAC,eAAe,CAAC,MAAO;IAE5D,MAAM,IAAA,mBAAW,EAAC,GAAG,GAAG,IAAI,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;AAC9D,CAAC"}
|
|
@@ -309,8 +309,8 @@ export declare const convertProviderToClient: ({ provider, viemChain, }: web3Pro
|
|
|
309
309
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
310
310
|
[x: `string[${string}]`]: undefined;
|
|
311
311
|
[x: `function[${string}]`]: undefined;
|
|
312
|
-
[x: `bytes[${string}]`]: undefined;
|
|
313
312
|
[x: `address[${string}]`]: undefined;
|
|
313
|
+
[x: `bytes[${string}]`]: undefined;
|
|
314
314
|
[x: `uint256[${string}]`]: undefined;
|
|
315
315
|
[x: `uint8[${string}]`]: undefined;
|
|
316
316
|
[x: `bytes32[${string}]`]: undefined;
|
|
@@ -321,6 +321,7 @@ export declare const convertProviderToClient: ({ provider, viemChain, }: web3Pro
|
|
|
321
321
|
[x: `bytes2[${string}]`]: undefined;
|
|
322
322
|
[x: `bytes5[${string}]`]: undefined;
|
|
323
323
|
[x: `bytes1[${string}]`]: undefined;
|
|
324
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
324
325
|
[x: `bytes31[${string}]`]: undefined;
|
|
325
326
|
[x: `bytes30[${string}]`]: undefined;
|
|
326
327
|
[x: `bytes29[${string}]`]: undefined;
|
|
@@ -342,15 +343,15 @@ export declare const convertProviderToClient: ({ provider, viemChain, }: web3Pro
|
|
|
342
343
|
[x: `bytes13[${string}]`]: undefined;
|
|
343
344
|
[x: `bytes12[${string}]`]: undefined;
|
|
344
345
|
[x: `bytes11[${string}]`]: undefined;
|
|
345
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
346
346
|
[x: `bytes9[${string}]`]: undefined;
|
|
347
347
|
[x: `bytes8[${string}]`]: undefined;
|
|
348
348
|
[x: `bytes7[${string}]`]: undefined;
|
|
349
349
|
[x: `bytes6[${string}]`]: undefined;
|
|
350
350
|
[x: `bytes3[${string}]`]: undefined;
|
|
351
351
|
[x: `int[${string}]`]: undefined;
|
|
352
|
-
[x: `
|
|
352
|
+
[x: `int256[${string}]`]: undefined;
|
|
353
353
|
[x: `int32[${string}]`]: undefined;
|
|
354
|
+
[x: `int40[${string}]`]: undefined;
|
|
354
355
|
[x: `int24[${string}]`]: undefined;
|
|
355
356
|
[x: `int16[${string}]`]: undefined;
|
|
356
357
|
[x: `int8[${string}]`]: undefined;
|
|
@@ -380,7 +381,6 @@ export declare const convertProviderToClient: ({ provider, viemChain, }: web3Pro
|
|
|
380
381
|
[x: `int232[${string}]`]: undefined;
|
|
381
382
|
[x: `int240[${string}]`]: undefined;
|
|
382
383
|
[x: `int248[${string}]`]: undefined;
|
|
383
|
-
[x: `int256[${string}]`]: undefined;
|
|
384
384
|
[x: `uint[${string}]`]: undefined;
|
|
385
385
|
[x: `uint40[${string}]`]: undefined;
|
|
386
386
|
[x: `uint24[${string}]`]: undefined;
|
|
@@ -411,8 +411,8 @@ export declare const convertProviderToClient: ({ provider, viemChain, }: web3Pro
|
|
|
411
411
|
[x: `uint240[${string}]`]: undefined;
|
|
412
412
|
[x: `uint248[${string}]`]: undefined;
|
|
413
413
|
string?: undefined;
|
|
414
|
-
bytes?: undefined;
|
|
415
414
|
address?: undefined;
|
|
415
|
+
bytes?: undefined;
|
|
416
416
|
uint256?: undefined;
|
|
417
417
|
uint8?: undefined;
|
|
418
418
|
bytes32?: undefined;
|
|
@@ -423,6 +423,7 @@ export declare const convertProviderToClient: ({ provider, viemChain, }: web3Pro
|
|
|
423
423
|
bytes2?: undefined;
|
|
424
424
|
bytes5?: undefined;
|
|
425
425
|
bytes1?: undefined;
|
|
426
|
+
bytes10?: undefined;
|
|
426
427
|
bytes31?: undefined;
|
|
427
428
|
bytes30?: undefined;
|
|
428
429
|
bytes29?: undefined;
|
|
@@ -444,14 +445,14 @@ export declare const convertProviderToClient: ({ provider, viemChain, }: web3Pro
|
|
|
444
445
|
bytes13?: undefined;
|
|
445
446
|
bytes12?: undefined;
|
|
446
447
|
bytes11?: undefined;
|
|
447
|
-
bytes10?: undefined;
|
|
448
448
|
bytes9?: undefined;
|
|
449
449
|
bytes8?: undefined;
|
|
450
450
|
bytes7?: undefined;
|
|
451
451
|
bytes6?: undefined;
|
|
452
452
|
bytes3?: undefined;
|
|
453
|
-
|
|
453
|
+
int256?: undefined;
|
|
454
454
|
int32?: undefined;
|
|
455
|
+
int40?: undefined;
|
|
455
456
|
int24?: undefined;
|
|
456
457
|
int16?: undefined;
|
|
457
458
|
int8?: undefined;
|
|
@@ -481,7 +482,6 @@ export declare const convertProviderToClient: ({ provider, viemChain, }: web3Pro
|
|
|
481
482
|
int232?: undefined;
|
|
482
483
|
int240?: undefined;
|
|
483
484
|
int248?: undefined;
|
|
484
|
-
int256?: undefined;
|
|
485
485
|
uint40?: undefined;
|
|
486
486
|
uint24?: undefined;
|
|
487
487
|
uint16?: undefined;
|
|
@@ -1160,8 +1160,8 @@ export declare const convertSignerToClient: ({ signer, viemChain, }: web3SignerC
|
|
|
1160
1160
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
1161
1161
|
[x: `string[${string}]`]: undefined;
|
|
1162
1162
|
[x: `function[${string}]`]: undefined;
|
|
1163
|
-
[x: `bytes[${string}]`]: undefined;
|
|
1164
1163
|
[x: `address[${string}]`]: undefined;
|
|
1164
|
+
[x: `bytes[${string}]`]: undefined;
|
|
1165
1165
|
[x: `uint256[${string}]`]: undefined;
|
|
1166
1166
|
[x: `uint8[${string}]`]: undefined;
|
|
1167
1167
|
[x: `bytes32[${string}]`]: undefined;
|
|
@@ -1172,6 +1172,7 @@ export declare const convertSignerToClient: ({ signer, viemChain, }: web3SignerC
|
|
|
1172
1172
|
[x: `bytes2[${string}]`]: undefined;
|
|
1173
1173
|
[x: `bytes5[${string}]`]: undefined;
|
|
1174
1174
|
[x: `bytes1[${string}]`]: undefined;
|
|
1175
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
1175
1176
|
[x: `bytes31[${string}]`]: undefined;
|
|
1176
1177
|
[x: `bytes30[${string}]`]: undefined;
|
|
1177
1178
|
[x: `bytes29[${string}]`]: undefined;
|
|
@@ -1193,15 +1194,15 @@ export declare const convertSignerToClient: ({ signer, viemChain, }: web3SignerC
|
|
|
1193
1194
|
[x: `bytes13[${string}]`]: undefined;
|
|
1194
1195
|
[x: `bytes12[${string}]`]: undefined;
|
|
1195
1196
|
[x: `bytes11[${string}]`]: undefined;
|
|
1196
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
1197
1197
|
[x: `bytes9[${string}]`]: undefined;
|
|
1198
1198
|
[x: `bytes8[${string}]`]: undefined;
|
|
1199
1199
|
[x: `bytes7[${string}]`]: undefined;
|
|
1200
1200
|
[x: `bytes6[${string}]`]: undefined;
|
|
1201
1201
|
[x: `bytes3[${string}]`]: undefined;
|
|
1202
1202
|
[x: `int[${string}]`]: undefined;
|
|
1203
|
-
[x: `
|
|
1203
|
+
[x: `int256[${string}]`]: undefined;
|
|
1204
1204
|
[x: `int32[${string}]`]: undefined;
|
|
1205
|
+
[x: `int40[${string}]`]: undefined;
|
|
1205
1206
|
[x: `int24[${string}]`]: undefined;
|
|
1206
1207
|
[x: `int16[${string}]`]: undefined;
|
|
1207
1208
|
[x: `int8[${string}]`]: undefined;
|
|
@@ -1231,7 +1232,6 @@ export declare const convertSignerToClient: ({ signer, viemChain, }: web3SignerC
|
|
|
1231
1232
|
[x: `int232[${string}]`]: undefined;
|
|
1232
1233
|
[x: `int240[${string}]`]: undefined;
|
|
1233
1234
|
[x: `int248[${string}]`]: undefined;
|
|
1234
|
-
[x: `int256[${string}]`]: undefined;
|
|
1235
1235
|
[x: `uint[${string}]`]: undefined;
|
|
1236
1236
|
[x: `uint40[${string}]`]: undefined;
|
|
1237
1237
|
[x: `uint24[${string}]`]: undefined;
|
|
@@ -1262,8 +1262,8 @@ export declare const convertSignerToClient: ({ signer, viemChain, }: web3SignerC
|
|
|
1262
1262
|
[x: `uint240[${string}]`]: undefined;
|
|
1263
1263
|
[x: `uint248[${string}]`]: undefined;
|
|
1264
1264
|
string?: undefined;
|
|
1265
|
-
bytes?: undefined;
|
|
1266
1265
|
address?: undefined;
|
|
1266
|
+
bytes?: undefined;
|
|
1267
1267
|
uint256?: undefined;
|
|
1268
1268
|
uint8?: undefined;
|
|
1269
1269
|
bytes32?: undefined;
|
|
@@ -1274,6 +1274,7 @@ export declare const convertSignerToClient: ({ signer, viemChain, }: web3SignerC
|
|
|
1274
1274
|
bytes2?: undefined;
|
|
1275
1275
|
bytes5?: undefined;
|
|
1276
1276
|
bytes1?: undefined;
|
|
1277
|
+
bytes10?: undefined;
|
|
1277
1278
|
bytes31?: undefined;
|
|
1278
1279
|
bytes30?: undefined;
|
|
1279
1280
|
bytes29?: undefined;
|
|
@@ -1295,14 +1296,14 @@ export declare const convertSignerToClient: ({ signer, viemChain, }: web3SignerC
|
|
|
1295
1296
|
bytes13?: undefined;
|
|
1296
1297
|
bytes12?: undefined;
|
|
1297
1298
|
bytes11?: undefined;
|
|
1298
|
-
bytes10?: undefined;
|
|
1299
1299
|
bytes9?: undefined;
|
|
1300
1300
|
bytes8?: undefined;
|
|
1301
1301
|
bytes7?: undefined;
|
|
1302
1302
|
bytes6?: undefined;
|
|
1303
1303
|
bytes3?: undefined;
|
|
1304
|
-
|
|
1304
|
+
int256?: undefined;
|
|
1305
1305
|
int32?: undefined;
|
|
1306
|
+
int40?: undefined;
|
|
1306
1307
|
int24?: undefined;
|
|
1307
1308
|
int16?: undefined;
|
|
1308
1309
|
int8?: undefined;
|
|
@@ -1332,7 +1333,6 @@ export declare const convertSignerToClient: ({ signer, viemChain, }: web3SignerC
|
|
|
1332
1333
|
int232?: undefined;
|
|
1333
1334
|
int240?: undefined;
|
|
1334
1335
|
int248?: undefined;
|
|
1335
|
-
int256?: undefined;
|
|
1336
1336
|
uint40?: undefined;
|
|
1337
1337
|
uint24?: undefined;
|
|
1338
1338
|
uint16?: undefined;
|
|
@@ -43,7 +43,7 @@ export declare class FunWallet extends FirstClassActions {
|
|
|
43
43
|
* @param {boolean} onlyVerifiedTokens If true, only return alchemy tokens that are verified(filters spam) - defaults to false
|
|
44
44
|
* @returns JSON
|
|
45
45
|
*/
|
|
46
|
-
getTokens(chainIdInput?: string, onlyVerifiedTokens?: boolean): Promise<import("@funkit/api-base").
|
|
46
|
+
getTokens(chainIdInput?: string, onlyVerifiedTokens?: boolean): Promise<import("@funkit/api-base").ChainAssetBalanceInfo | import("@funkit/api-base").GetAllWalletTokensResponse>;
|
|
47
47
|
/**
|
|
48
48
|
* Given an address and a chain, returns all NFTs owned by that address
|
|
49
49
|
* @param {string} chainId string version of the chainId or ALL. If empty, then default to the one in globalEnvOption
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.1.0-next.0",
|
|
4
4
|
"description": "Funkit core SDK provides feature-rich and extensible smart wallets built on account abstraction",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,20 +23,18 @@
|
|
|
23
23
|
"big.js": "^6.2.1",
|
|
24
24
|
"dotenv": "^16.0.3",
|
|
25
25
|
"ethers": "5.7.2",
|
|
26
|
-
"node-fetch": "^2.6.11",
|
|
27
26
|
"uuid": "^9.0.0",
|
|
28
27
|
"viem": "2.9.31",
|
|
29
|
-
"@funkit/api-base": "0.0.
|
|
28
|
+
"@funkit/api-base": "0.1.0-next.0"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@types/big.js": "^6.2.2",
|
|
33
32
|
"@types/chai": "^4.3.5",
|
|
34
33
|
"@types/mocha": "^10.0.1",
|
|
35
|
-
"@types/node-fetch": "^2.6.4",
|
|
36
34
|
"@types/uuid": "^9.0.1",
|
|
37
35
|
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
38
36
|
"@typescript-eslint/parser": "^5.59.7",
|
|
39
|
-
"chai": "^
|
|
37
|
+
"chai": "^5.1.1",
|
|
40
38
|
"eslint": "^8.41.0",
|
|
41
39
|
"eslint-config-prettier": "^8.8.0",
|
|
42
40
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -64,10 +62,7 @@
|
|
|
64
62
|
"dist/src",
|
|
65
63
|
"dist/index.d.ts",
|
|
66
64
|
"dist/index.js",
|
|
67
|
-
"dist/index.js.map"
|
|
68
|
-
"dist/fetch-polyfill.d.ts",
|
|
69
|
-
"dist/fetch-polyfill.js",
|
|
70
|
-
"dist/fetch-polyfill.js.map"
|
|
65
|
+
"dist/index.js.map"
|
|
71
66
|
],
|
|
72
67
|
"bugs": {
|
|
73
68
|
"url": "https://github.com/fun-xyz/funkit-core/issues"
|
package/dist/fetch-polyfill.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/fetch-polyfill.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
// fetch-polyfill.js
|
|
27
|
-
const node_fetch_1 = __importStar(require("node-fetch"));
|
|
28
|
-
if (!globalThis.fetch) {
|
|
29
|
-
globalThis.fetch = node_fetch_1.default;
|
|
30
|
-
globalThis.Headers = node_fetch_1.Headers;
|
|
31
|
-
globalThis.Request = node_fetch_1.Request;
|
|
32
|
-
globalThis.Response = node_fetch_1.Response;
|
|
33
|
-
}
|
|
34
|
-
// ...
|
|
35
|
-
//# sourceMappingURL=fetch-polyfill.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-polyfill.js","sourceRoot":"","sources":["../fetch-polyfill.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,yDAWqB;AAEnB,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IACtB,UAAU,CAAC,KAAK,GAAG,oBAAK,CAAA;IACxB,UAAU,CAAC,OAAO,GAAG,oBAAO,CAAA;IAC5B,UAAU,CAAC,OAAO,GAAG,oBAAO,CAAA;IAC5B,UAAU,CAAC,QAAQ,GAAG,qBAAQ,CAAA;AAChC,CAAC;AAID,MAAM"}
|