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.
  • Loading branch information
komret committed Mar 28, 2024
1 parent e814f2f commit 8d92964
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 @@ -66,6 +66,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"
},
"devDependencies": {
Expand Down
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 @@ -11176,6 +11176,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 @@ -11194,6 +11195,7 @@ __metadata:
dependencies:
"@trezor/utils": "workspace:*"
"@types/ws": "npm:^8.5.5"
cross-fetch: "npm:^4.0.0"
ws: "npm:^8.16.0"
languageName: unknown
linkType: soft
Expand Down

0 comments on commit 8d92964

Please sign in to comment.