Skip to content

Commit

Permalink
Revert "chore(transport, trezor-user-env-link): remove cross-fetch"
Browse files Browse the repository at this point in the history
This reverts commit e489dce.

(cherry picked from commit 8d92964)
  • Loading branch information
komret committed Mar 28, 2024
1 parent 48fda19 commit bdeb430
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@trezor/protobuf": "workspace:*",
"@trezor/protocol": "workspace:*",
"@trezor/utils": "workspace:*",
"cross-fetch": "^4.0.0",
"json-stable-stringify": "^1.1.1",
"long": "^4.0.0",
"protobufjs": "7.2.6",
Expand Down
2 changes: 2 additions & 0 deletions packages/transport/src/utils/bridgeApiCall.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import fetch from 'cross-fetch';

import { success, error, unknownError } from './result';

import * as ERRORS from '../errors';
Expand Down
1 change: 1 addition & 0 deletions packages/trezor-user-env-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@trezor/utils": "workspace:*",
"cross-fetch": "^4.0.0",
"ws": "^8.16.0"
}
}
1 change: 1 addition & 0 deletions packages/trezor-user-env-link/src/websocket-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import WebSocket from 'ws';
import { EventEmitter } from 'events';
import fetch from 'cross-fetch';

import { createDeferred, Deferred } from '@trezor/utils';

Expand Down
2 changes: 2 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10561,6 +10561,7 @@ __metadata:
"@types/bytebuffer": "npm:^5.0.48"
"@types/sharedworker": "npm:^0.0.111"
"@types/w3c-web-usb": "npm:^1.0.10"
cross-fetch: "npm:^4.0.0"
jest: "npm:29.7.0"
json-stable-stringify: "npm:^1.1.1"
long: "npm:^4.0.0"
Expand All @@ -10578,6 +10579,7 @@ __metadata:
resolution: "@trezor/trezor-user-env-link@workspace:packages/trezor-user-env-link"
dependencies:
"@trezor/utils": "workspace:*"
cross-fetch: "npm:^4.0.0"
ws: "npm:^8.16.0"
languageName: unknown
linkType: soft
Expand Down

0 comments on commit bdeb430

Please sign in to comment.