Skip to content

Commit

Permalink
Revert node-fetch version to 2.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
StefansArya committed Apr 11, 2022
1 parent f3552aa commit 0d3f413
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 43 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@polkadot/extension-inject": "^0.43.0",
"dotenv": "^16.0.0",
"jest": "^27.5.1",
"node-fetch": "^3.2.3",
"node-fetch": "^2.6.7",
"vinyl": "^2.2.1",
"scarletsframe": "0.35.15"
},
Expand Down
43 changes: 2 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/prepare-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ globalThis.URL = function(){return {href:'', pathname:''}};
globalThis.crypto = require('crypto').webcrypto; // required by @polkadot/util-crypto

// Required by @polkadot/util for doing RPC with HTTP
import('node-fetch').then(v => globalThis.fetch = v);
globalThis.fetch = require("node-fetch");

// Test timeout = 40 sec
// This usually needed for waiting for new heads/blocks and waiting transaction to finish
Expand Down

0 comments on commit 0d3f413

Please sign in to comment.