Skip to content

Commit

Permalink
fix: remove cross-fetch (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero authored Oct 4, 2023
1 parent 5004152 commit 86d52b1
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 85 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
env: {
browser: true,
es2021: true,
'shared-node-browser': true,
},
Expand Down
82 changes: 0 additions & 82 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"dependencies": {
"algo-msgpack-with-bigint": "^2.1.1",
"buffer": "^6.0.3",
"cross-fetch": "^4.0.0",
"hi-base32": "^0.5.1",
"js-sha256": "^0.9.0",
"js-sha3": "^0.8.0",
Expand Down
1 change: 0 additions & 1 deletion src/client/urlTokenBaseHTTPClient.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Buffer } from 'buffer';
import { fetch, Response, Headers } from 'cross-fetch';
import {
BaseHTTPClient,
BaseHTTPClientResponse,
Expand Down
2 changes: 2 additions & 0 deletions tests/cucumber/steps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ if (browser) {
} else if (browser === 'chrome') {
require('chromedriver');
browserHeaders = [
'accept-language',
'origin',
'referer',
'sec-ch-ua',
Expand All @@ -77,6 +78,7 @@ if (browser) {

console.log('Testing in browser');
} else {
browserHeaders = ['sec-fetch-mode', 'accept-language'];
console.log('Testing in node');
}

Expand Down
1 change: 0 additions & 1 deletion tests/cucumber/unit.tags
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
@unit.atomic_transaction_composer
@unit.blocksummary
@unit.blocktxids
@unit.client-no-headers
@unit.dryrun
@unit.dryrun.trace.application
@unit.feetest
Expand Down

0 comments on commit 86d52b1

Please sign in to comment.