diff --git a/package-lock.json b/package-lock.json index 182443099..d276101b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@scure/base": "~1.1.3", "@scure/starknet": "~1.0.0", "abi-wan-kanabi": "^2.2.1", - "fetch-cookie": "github:NethermindEth/fetch-cookie#export-cookieimpl", + "fetch-cookie": "^3.0.0", "isomorphic-fetch": "^3.0.0", "lossless-json": "^4.0.1", "pako": "^2.0.4", @@ -8387,9 +8387,9 @@ } }, "node_modules/fetch-cookie": { - "version": "2.2.0", - "resolved": "git+ssh://git@github.com/NethermindEth/fetch-cookie.git#91cf2eb4b697fbc4b2356585f43941bbb2ccd567", - "license": "Unlicense", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-3.0.0.tgz", + "integrity": "sha512-Pfh55Pm/f8pWRTtAHwh+072HhE6mao8+6SNzyf2711DOIwUIKc8EVvynYQKBSHCh8syXlM2tnPXpYuWLNfN2xw==", "dependencies": { "set-cookie-parser": "^2.4.8", "tough-cookie": "^4.0.0" diff --git a/package.json b/package.json index 4cc38aff1..7c95b66c1 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "@scure/base": "~1.1.3", "@scure/starknet": "~1.0.0", "abi-wan-kanabi": "^2.2.1", - "fetch-cookie": "github:NethermindEth/fetch-cookie#export-cookieimpl", + "fetch-cookie": "^3.0.0", "isomorphic-fetch": "^3.0.0", "lossless-json": "^4.0.1", "pako": "^2.0.4", diff --git a/src/utils/fetchPonyfill.ts b/src/utils/fetchPonyfill.ts index 4091683b0..35db800e9 100644 --- a/src/utils/fetchPonyfill.ts +++ b/src/utils/fetchPonyfill.ts @@ -1,3 +1,5 @@ +// the ts-ignore suppresses an esm to cjs import error that is resolved with entry point resolution +// @ts-ignore import makeFetchCookie from 'fetch-cookie'; import isomorphicFetch from 'isomorphic-fetch'; diff --git a/src/utils/json.ts b/src/utils/json.ts index 10300730f..20d9a2801 100644 --- a/src/utils/json.ts +++ b/src/utils/json.ts @@ -1,5 +1,3 @@ -// the ts-ignore suppresses an esm to cjs import error that is resolved with bundling -// @ts-ignore import * as json from 'lossless-json'; /**