@aurigami/sdk 1.4.3 → 1.4.4
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/sdk.cjs.development.js +6 -2
- package/dist/sdk.cjs.development.js.map +1 -1
- package/dist/sdk.cjs.production.min.js +1 -1
- package/dist/sdk.cjs.production.min.js.map +1 -1
- package/dist/sdk.esm.js +5 -2
- package/dist/sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/aurora-api-helpers.ts +2 -2
package/dist/sdk.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import BigNumber from 'bignumber.js';
|
|
|
2
2
|
import { BigNumber as BigNumber$1, utils, Contract, ethers } from 'ethers';
|
|
3
3
|
import { Logger } from 'ethers/lib/utils';
|
|
4
4
|
import { Signer } from '@ethersproject/abstract-signer';
|
|
5
|
-
import fetch from 'node-fetch';
|
|
5
|
+
import fetch, { Headers, Request, Response } from 'node-fetch';
|
|
6
6
|
import AuErc20ABI from '@aurigami/contracts/artifacts/contracts/AuErc20.sol/AuErc20.json';
|
|
7
7
|
import AuETHABI from '@aurigami/contracts/artifacts/contracts/AuETH.sol/AuETH.json';
|
|
8
8
|
import ComptrollerABI from '@aurigami/contracts/artifacts/contracts/Comptroller.sol/Comptroller.json';
|
|
@@ -1035,7 +1035,10 @@ function _getQuery() {
|
|
|
1035
1035
|
|
|
1036
1036
|
if (!globalThis.fetch) {
|
|
1037
1037
|
Object.assign(globalThis, {
|
|
1038
|
-
fetch: fetch
|
|
1038
|
+
fetch: fetch,
|
|
1039
|
+
Headers: Headers,
|
|
1040
|
+
Request: Request,
|
|
1041
|
+
Response: Response
|
|
1039
1042
|
});
|
|
1040
1043
|
}
|
|
1041
1044
|
|