@wagmi/core 1.0.0-next.7 → 1.0.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/internal/test.d.ts +17 -76
- package/package.json +6 -6
- package/connectors/walletConnectV1/package.json +0 -4
- package/internal/dist/wagmi-core-internal.cjs.d.ts +0 -11
- package/internal/dist/wagmi-core-internal.cjs.js +0 -16
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.d.ts +0 -11
- package/providers/alchemy/dist/wagmi-core-providers-alchemy.cjs.js +0 -16
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.d.ts +0 -11
- package/providers/infura/dist/wagmi-core-providers-infura.cjs.js +0 -16
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.d.ts +0 -11
- package/providers/jsonRpc/dist/wagmi-core-providers-jsonRpc.cjs.js +0 -16
- package/providers/public/dist/wagmi-core-providers-public.cjs.d.ts +0 -11
- package/providers/public/dist/wagmi-core-providers-public.cjs.js +0 -16
package/dist/internal/test.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as viem_dist_types_types_formatter from 'viem/dist/types/types/formatter';
|
|
2
|
+
import * as abitype_dist_abi_3a9c20c7 from 'abitype/dist/abi-3a9c20c7';
|
|
2
3
|
import * as viem_dist_types_types_eip1193 from 'viem/dist/types/types/eip1193';
|
|
3
|
-
import * as
|
|
4
|
+
import * as viem_dist_types_types_misc from 'viem/dist/types/types/misc';
|
|
4
5
|
import * as viem from 'viem';
|
|
5
6
|
import { Chain } from '@wagmi/chains';
|
|
6
7
|
|
|
@@ -265,36 +266,16 @@ declare function getWalletClients(): {
|
|
|
265
266
|
(args: {
|
|
266
267
|
method: "eth_getFilterChanges";
|
|
267
268
|
params: [filterId: `0x${string}`];
|
|
268
|
-
}): Promise<{
|
|
269
|
-
address: `0x${string}`;
|
|
270
|
-
blockHash: `0x${string}` | null;
|
|
271
|
-
blockNumber: `0x${string}` | null;
|
|
272
|
-
data: `0x${string}`;
|
|
273
|
-
logIndex: `0x${string}` | null;
|
|
274
|
-
transactionHash: `0x${string}` | null;
|
|
275
|
-
transactionIndex: `0x${string}` | null;
|
|
276
|
-
topics: [`0x${string}`, ...`0x${string}`[]] | [];
|
|
277
|
-
removed: boolean;
|
|
278
|
-
}[] | `0x${string}`[]>;
|
|
269
|
+
}): Promise<viem.RpcLog[] | `0x${string}`[]>;
|
|
279
270
|
(args: {
|
|
280
271
|
method: "eth_getFilterLogs";
|
|
281
272
|
params: [filterId: `0x${string}`];
|
|
282
|
-
}): Promise<
|
|
283
|
-
address: `0x${string}`;
|
|
284
|
-
blockHash: `0x${string}` | null;
|
|
285
|
-
blockNumber: `0x${string}` | null;
|
|
286
|
-
data: `0x${string}`;
|
|
287
|
-
logIndex: `0x${string}` | null;
|
|
288
|
-
transactionHash: `0x${string}` | null;
|
|
289
|
-
transactionIndex: `0x${string}` | null;
|
|
290
|
-
topics: [`0x${string}`, ...`0x${string}`[]] | [];
|
|
291
|
-
removed: boolean;
|
|
292
|
-
}[]>;
|
|
273
|
+
}): Promise<viem.RpcLog[]>;
|
|
293
274
|
(args: {
|
|
294
275
|
method: "eth_getLogs";
|
|
295
276
|
params: [parameters: {
|
|
296
277
|
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
297
|
-
topics?:
|
|
278
|
+
topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
|
|
298
279
|
} & ({
|
|
299
280
|
fromBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
300
281
|
toBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
@@ -304,17 +285,7 @@ declare function getWalletClients(): {
|
|
|
304
285
|
toBlock?: undefined;
|
|
305
286
|
blockHash?: `0x${string}` | undefined;
|
|
306
287
|
})];
|
|
307
|
-
}): Promise<
|
|
308
|
-
address: `0x${string}`;
|
|
309
|
-
blockHash: `0x${string}` | null;
|
|
310
|
-
blockNumber: `0x${string}` | null;
|
|
311
|
-
data: `0x${string}`;
|
|
312
|
-
logIndex: `0x${string}` | null;
|
|
313
|
-
transactionHash: `0x${string}` | null;
|
|
314
|
-
transactionIndex: `0x${string}` | null;
|
|
315
|
-
topics: [`0x${string}`, ...`0x${string}`[]] | [];
|
|
316
|
-
removed: boolean;
|
|
317
|
-
}[]>;
|
|
288
|
+
}): Promise<viem.RpcLog[]>;
|
|
318
289
|
(args: {
|
|
319
290
|
method: "eth_getStorageAt";
|
|
320
291
|
params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -365,7 +336,7 @@ declare function getWalletClients(): {
|
|
|
365
336
|
fromBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
366
337
|
toBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
367
338
|
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
368
|
-
topics?:
|
|
339
|
+
topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
|
|
369
340
|
}];
|
|
370
341
|
}): Promise<`0x${string}`>;
|
|
371
342
|
(args: {
|
|
@@ -523,36 +494,16 @@ declare function getWalletClients(): {
|
|
|
523
494
|
(args: {
|
|
524
495
|
method: "eth_getFilterChanges";
|
|
525
496
|
params: [filterId: `0x${string}`];
|
|
526
|
-
}): Promise<{
|
|
527
|
-
address: `0x${string}`;
|
|
528
|
-
blockHash: `0x${string}` | null;
|
|
529
|
-
blockNumber: `0x${string}` | null;
|
|
530
|
-
data: `0x${string}`;
|
|
531
|
-
logIndex: `0x${string}` | null;
|
|
532
|
-
transactionHash: `0x${string}` | null;
|
|
533
|
-
transactionIndex: `0x${string}` | null;
|
|
534
|
-
topics: [`0x${string}`, ...`0x${string}`[]] | [];
|
|
535
|
-
removed: boolean;
|
|
536
|
-
}[] | `0x${string}`[]>;
|
|
497
|
+
}): Promise<viem.RpcLog[] | `0x${string}`[]>;
|
|
537
498
|
(args: {
|
|
538
499
|
method: "eth_getFilterLogs";
|
|
539
500
|
params: [filterId: `0x${string}`];
|
|
540
|
-
}): Promise<
|
|
541
|
-
address: `0x${string}`;
|
|
542
|
-
blockHash: `0x${string}` | null;
|
|
543
|
-
blockNumber: `0x${string}` | null;
|
|
544
|
-
data: `0x${string}`;
|
|
545
|
-
logIndex: `0x${string}` | null;
|
|
546
|
-
transactionHash: `0x${string}` | null;
|
|
547
|
-
transactionIndex: `0x${string}` | null;
|
|
548
|
-
topics: [`0x${string}`, ...`0x${string}`[]] | [];
|
|
549
|
-
removed: boolean;
|
|
550
|
-
}[]>;
|
|
501
|
+
}): Promise<viem.RpcLog[]>;
|
|
551
502
|
(args: {
|
|
552
503
|
method: "eth_getLogs";
|
|
553
504
|
params: [parameters: {
|
|
554
505
|
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
555
|
-
topics?:
|
|
506
|
+
topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
|
|
556
507
|
} & ({
|
|
557
508
|
fromBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
558
509
|
toBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
@@ -562,17 +513,7 @@ declare function getWalletClients(): {
|
|
|
562
513
|
toBlock?: undefined;
|
|
563
514
|
blockHash?: `0x${string}` | undefined;
|
|
564
515
|
})];
|
|
565
|
-
}): Promise<
|
|
566
|
-
address: `0x${string}`;
|
|
567
|
-
blockHash: `0x${string}` | null;
|
|
568
|
-
blockNumber: `0x${string}` | null;
|
|
569
|
-
data: `0x${string}`;
|
|
570
|
-
logIndex: `0x${string}` | null;
|
|
571
|
-
transactionHash: `0x${string}` | null;
|
|
572
|
-
transactionIndex: `0x${string}` | null;
|
|
573
|
-
topics: [`0x${string}`, ...`0x${string}`[]] | [];
|
|
574
|
-
removed: boolean;
|
|
575
|
-
}[]>;
|
|
516
|
+
}): Promise<viem.RpcLog[]>;
|
|
576
517
|
(args: {
|
|
577
518
|
method: "eth_getStorageAt";
|
|
578
519
|
params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
@@ -623,7 +564,7 @@ declare function getWalletClients(): {
|
|
|
623
564
|
fromBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
624
565
|
toBlock?: `0x${string}` | viem.BlockTag | undefined;
|
|
625
566
|
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
626
|
-
topics?:
|
|
567
|
+
topics?: viem_dist_types_types_misc.LogTopic[] | undefined;
|
|
627
568
|
}];
|
|
628
569
|
}): Promise<`0x${string}`>;
|
|
629
570
|
(args: {
|
|
@@ -708,7 +649,7 @@ declare function getWalletClients(): {
|
|
|
708
649
|
type: string;
|
|
709
650
|
uid: string;
|
|
710
651
|
addChain: (args: viem.AddChainParameters) => Promise<void>;
|
|
711
|
-
deployContract: <TAbi extends
|
|
652
|
+
deployContract: <TAbi extends abitype_dist_abi_3a9c20c7.l | readonly unknown[], TChainOverride extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
|
|
712
653
|
address: `0x${string}`;
|
|
713
654
|
type: "json-rpc";
|
|
714
655
|
}, TChainOverride>) => Promise<`0x${string}`>;
|
|
@@ -720,7 +661,7 @@ declare function getWalletClients(): {
|
|
|
720
661
|
[x: string]: Record<string, any>;
|
|
721
662
|
eth_accounts: Record<string, any>;
|
|
722
663
|
}) => Promise<viem.RequestPermissionsReturnType>;
|
|
723
|
-
sendTransaction: <TChainOverride_1 extends viem.Chain<
|
|
664
|
+
sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
|
|
724
665
|
address: `0x${string}`;
|
|
725
666
|
type: "json-rpc";
|
|
726
667
|
}, TChainOverride_1>) => Promise<`0x${string}`>;
|
|
@@ -729,7 +670,7 @@ declare function getWalletClients(): {
|
|
|
729
670
|
type: "json-rpc";
|
|
730
671
|
}>) => Promise<`0x${string}`>;
|
|
731
672
|
signTypedData: <TTypedData extends {
|
|
732
|
-
[x: string]: readonly
|
|
673
|
+
[x: string]: readonly abitype_dist_abi_3a9c20c7.o[];
|
|
733
674
|
[x: `string[${string}]`]: undefined;
|
|
734
675
|
[x: `function[${string}]`]: undefined;
|
|
735
676
|
[x: `address[${string}]`]: undefined;
|
|
@@ -941,7 +882,7 @@ declare function getWalletClients(): {
|
|
|
941
882
|
}>) => Promise<`0x${string}`>;
|
|
942
883
|
switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
|
|
943
884
|
watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
|
|
944
|
-
writeContract: <TAbi_1 extends
|
|
885
|
+
writeContract: <TAbi_1 extends abitype_dist_abi_3a9c20c7.l | readonly unknown[], TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types_formatter.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
|
|
945
886
|
address: `0x${string}`;
|
|
946
887
|
type: "json-rpc";
|
|
947
888
|
}, TChainOverride_2>) => Promise<`0x${string}`>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@wagmi/core",
|
|
3
3
|
"description": "Vanilla JS library for Ethereum",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.0.0
|
|
5
|
+
"version": "1.0.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/wagmi-dev/wagmi.git",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"/dist"
|
|
112
112
|
],
|
|
113
113
|
"peerDependencies": {
|
|
114
|
-
"viem": "~0.3.
|
|
114
|
+
"viem": "~0.3.18",
|
|
115
115
|
"typescript": ">=4.9.4"
|
|
116
116
|
},
|
|
117
117
|
"peerDependenciesMeta": {
|
|
@@ -120,14 +120,14 @@
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
|
-
"abitype": "^0.
|
|
123
|
+
"abitype": "^0.8.2",
|
|
124
124
|
"eventemitter3": "^4.0.7",
|
|
125
125
|
"zustand": "^4.3.1",
|
|
126
|
-
"@wagmi/
|
|
127
|
-
"@wagmi/
|
|
126
|
+
"@wagmi/chains": "0.2.22",
|
|
127
|
+
"@wagmi/connectors": "1.0.0"
|
|
128
128
|
},
|
|
129
129
|
"devDependencies": {
|
|
130
|
-
"viem": "~0.3.
|
|
130
|
+
"viem": "~0.3.18"
|
|
131
131
|
},
|
|
132
132
|
"keywords": [
|
|
133
133
|
"eth",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// are you seeing an error that a default export doesn't exist but your source file has a default export?
|
|
2
|
-
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
|
|
3
|
-
|
|
4
|
-
// curious why you need to?
|
|
5
|
-
// this file exists so that you can import from the entrypoint normally
|
|
6
|
-
// except that it points to your source file and you don't need to run build constantly
|
|
7
|
-
// which means we need to re-export all of the modules from your source file
|
|
8
|
-
// and since export * doesn't include default exports, we need to read your source file
|
|
9
|
-
// to check for a default export and re-export it if it exists
|
|
10
|
-
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
|
|
11
|
-
export * from "../../src/internal";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// this file might look strange and you might be wondering what it's for
|
|
3
|
-
// it's lets you import your source files by importing this entrypoint
|
|
4
|
-
// as you would import it if it was built with preconstruct build
|
|
5
|
-
// this file is slightly different to some others though
|
|
6
|
-
// it has a require hook which compiles your code with Babel
|
|
7
|
-
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
-
// but you can still require this module and it'll be compiled
|
|
9
|
-
|
|
10
|
-
// this bit of code imports the require hook and registers it
|
|
11
|
-
let unregister = require("../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../..", "../..");
|
|
12
|
-
|
|
13
|
-
// this re-exports the source file
|
|
14
|
-
module.exports = require("../../src/internal.ts");
|
|
15
|
-
|
|
16
|
-
unregister();
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// are you seeing an error that a default export doesn't exist but your source file has a default export?
|
|
2
|
-
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
|
|
3
|
-
|
|
4
|
-
// curious why you need to?
|
|
5
|
-
// this file exists so that you can import from the entrypoint normally
|
|
6
|
-
// except that it points to your source file and you don't need to run build constantly
|
|
7
|
-
// which means we need to re-export all of the modules from your source file
|
|
8
|
-
// and since export * doesn't include default exports, we need to read your source file
|
|
9
|
-
// to check for a default export and re-export it if it exists
|
|
10
|
-
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
|
|
11
|
-
export * from "../../../src/providers/alchemy";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// this file might look strange and you might be wondering what it's for
|
|
3
|
-
// it's lets you import your source files by importing this entrypoint
|
|
4
|
-
// as you would import it if it was built with preconstruct build
|
|
5
|
-
// this file is slightly different to some others though
|
|
6
|
-
// it has a require hook which compiles your code with Babel
|
|
7
|
-
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
-
// but you can still require this module and it'll be compiled
|
|
9
|
-
|
|
10
|
-
// this bit of code imports the require hook and registers it
|
|
11
|
-
let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
|
|
12
|
-
|
|
13
|
-
// this re-exports the source file
|
|
14
|
-
module.exports = require("../../../src/providers/alchemy.ts");
|
|
15
|
-
|
|
16
|
-
unregister();
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// are you seeing an error that a default export doesn't exist but your source file has a default export?
|
|
2
|
-
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
|
|
3
|
-
|
|
4
|
-
// curious why you need to?
|
|
5
|
-
// this file exists so that you can import from the entrypoint normally
|
|
6
|
-
// except that it points to your source file and you don't need to run build constantly
|
|
7
|
-
// which means we need to re-export all of the modules from your source file
|
|
8
|
-
// and since export * doesn't include default exports, we need to read your source file
|
|
9
|
-
// to check for a default export and re-export it if it exists
|
|
10
|
-
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
|
|
11
|
-
export * from "../../../src/providers/infura";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// this file might look strange and you might be wondering what it's for
|
|
3
|
-
// it's lets you import your source files by importing this entrypoint
|
|
4
|
-
// as you would import it if it was built with preconstruct build
|
|
5
|
-
// this file is slightly different to some others though
|
|
6
|
-
// it has a require hook which compiles your code with Babel
|
|
7
|
-
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
-
// but you can still require this module and it'll be compiled
|
|
9
|
-
|
|
10
|
-
// this bit of code imports the require hook and registers it
|
|
11
|
-
let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
|
|
12
|
-
|
|
13
|
-
// this re-exports the source file
|
|
14
|
-
module.exports = require("../../../src/providers/infura.ts");
|
|
15
|
-
|
|
16
|
-
unregister();
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// are you seeing an error that a default export doesn't exist but your source file has a default export?
|
|
2
|
-
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
|
|
3
|
-
|
|
4
|
-
// curious why you need to?
|
|
5
|
-
// this file exists so that you can import from the entrypoint normally
|
|
6
|
-
// except that it points to your source file and you don't need to run build constantly
|
|
7
|
-
// which means we need to re-export all of the modules from your source file
|
|
8
|
-
// and since export * doesn't include default exports, we need to read your source file
|
|
9
|
-
// to check for a default export and re-export it if it exists
|
|
10
|
-
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
|
|
11
|
-
export * from "../../../src/providers/jsonRpc";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// this file might look strange and you might be wondering what it's for
|
|
3
|
-
// it's lets you import your source files by importing this entrypoint
|
|
4
|
-
// as you would import it if it was built with preconstruct build
|
|
5
|
-
// this file is slightly different to some others though
|
|
6
|
-
// it has a require hook which compiles your code with Babel
|
|
7
|
-
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
-
// but you can still require this module and it'll be compiled
|
|
9
|
-
|
|
10
|
-
// this bit of code imports the require hook and registers it
|
|
11
|
-
let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
|
|
12
|
-
|
|
13
|
-
// this re-exports the source file
|
|
14
|
-
module.exports = require("../../../src/providers/jsonRpc.ts");
|
|
15
|
-
|
|
16
|
-
unregister();
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// are you seeing an error that a default export doesn't exist but your source file has a default export?
|
|
2
|
-
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
|
|
3
|
-
|
|
4
|
-
// curious why you need to?
|
|
5
|
-
// this file exists so that you can import from the entrypoint normally
|
|
6
|
-
// except that it points to your source file and you don't need to run build constantly
|
|
7
|
-
// which means we need to re-export all of the modules from your source file
|
|
8
|
-
// and since export * doesn't include default exports, we need to read your source file
|
|
9
|
-
// to check for a default export and re-export it if it exists
|
|
10
|
-
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
|
|
11
|
-
export * from "../../../src/providers/public";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// this file might look strange and you might be wondering what it's for
|
|
3
|
-
// it's lets you import your source files by importing this entrypoint
|
|
4
|
-
// as you would import it if it was built with preconstruct build
|
|
5
|
-
// this file is slightly different to some others though
|
|
6
|
-
// it has a require hook which compiles your code with Babel
|
|
7
|
-
// this means that you don't have to set up @babel/register or anything like that
|
|
8
|
-
// but you can still require this module and it'll be compiled
|
|
9
|
-
|
|
10
|
-
// this bit of code imports the require hook and registers it
|
|
11
|
-
let unregister = require("../../../../../node_modules/.pnpm/@preconstruct+hook@0.4.0/node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../../../..", "../../..");
|
|
12
|
-
|
|
13
|
-
// this re-exports the source file
|
|
14
|
-
module.exports = require("../../../src/providers/public.ts");
|
|
15
|
-
|
|
16
|
-
unregister();
|