fix(connect): add @trezor/type-utils to dependencies

This commit is contained in:
Tomas Martykan
2025-05-12 08:17:59 +02:00
committed by Tomáš Martykán
parent bf0c2cdee2
commit 4dbd53281b
20 changed files with 34 additions and 14 deletions

View File

@@ -19,10 +19,10 @@
"prepublish": "yarn tsx ../../scripts/prepublish.js"
},
"dependencies": {
"@trezor/type-utils": "workspace:*",
"@trezor/utxo-lib": "workspace:*"
},
"devDependencies": {
"@trezor/type-utils": "workspace:*",
"tsx": "^4.19.3"
},
"peerDependencies": {

View File

@@ -2,7 +2,7 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": { "outDir": "libDev" },
"references": [
{ "path": "../type-utils" },
{ "path": "../utxo-lib" }
{ "path": "../utxo-lib" },
{ "path": "../type-utils" }
]
}

View File

@@ -6,10 +6,10 @@
"include": ["./src"],
"references": [
{
"path": "../type-utils"
"path": "../utxo-lib"
},
{
"path": "../utxo-lib"
"path": "../type-utils"
}
]
}

View File

@@ -34,5 +34,8 @@
"cross-fetch": "^4.0.0",
"golomb": "1.2.0",
"n64": "^0.2.10"
},
"devDependencies": {
"@trezor/type-utils": "workspace:*"
}
}

View File

@@ -1,4 +1,4 @@
import { ImmediateId, TimerId } from '@trezor/type-utils';
import type { ImmediateId, TimerId } from '@trezor/type-utils';
import { TypedEmitter } from '@trezor/utils';
import { WabiSabiProtocolErrorCode } from '../enums';

View File

@@ -1,4 +1,4 @@
import { TimerId } from '@trezor/type-utils';
import type { TimerId } from '@trezor/type-utils';
import { TypedEmitter } from '@trezor/utils';
import * as coordinator from './coordinator';

View File

@@ -10,6 +10,7 @@
{ "path": "../blockchain-link-utils" },
{ "path": "../eslint" },
{ "path": "../utils" },
{ "path": "../utxo-lib" }
{ "path": "../utxo-lib" },
{ "path": "../type-utils" }
]
}

View File

@@ -40,6 +40,7 @@
"@trezor/eslint": "workspace:*",
"@trezor/node-utils": "workspace:*",
"@trezor/trezor-user-env-link": "workspace:*",
"@trezor/type-utils": "workspace:*",
"@types/react": "18.2.55",
"babel-loader": "^10.0.0",
"copy-webpack-plugin": "^12.0.2",

View File

@@ -29,7 +29,7 @@ import { parseConnectSettings } from '@trezor/connect-iframe/src/connectSettings
import { initLogWriterWithSrcPath } from '@trezor/connect-iframe/src/sharedLoggerUtils';
import { reactEventBus } from '@trezor/connect-ui/src/utils/eventBus';
import { ErrorViewProps } from '@trezor/connect-ui/src/views/Error';
import { TimerId } from '@trezor/type-utils';
import type { TimerId } from '@trezor/type-utils';
import { isPhishingDomain } from './utils/isPhishingDomain';
import * as view from './view';

View File

@@ -9,7 +9,7 @@ import { InfoPanel } from '@trezor/connect-ui/src/components/InfoPanel';
import { View } from '@trezor/connect-ui/src/components/View';
import { ErrorBoundary } from '@trezor/connect-ui/src/support/ErrorBoundary';
import { GlobalStyle } from '@trezor/connect-ui/src/support/GlobalStyle';
import { TimerId } from '@trezor/type-utils';
import type { TimerId } from '@trezor/type-utils';
interface ReactWrapperProps {
children: React.ReactNode;

View File

@@ -19,6 +19,7 @@
{ "path": "../utils" },
{ "path": "../eslint" },
{ "path": "../node-utils" },
{ "path": "../trezor-user-env-link" }
{ "path": "../trezor-user-env-link" },
{ "path": "../type-utils" }
]
}

View File

@@ -53,6 +53,7 @@
"@playwright/browser-webkit": "^1.51.0",
"@playwright/test": "^1.51.0",
"@trezor/eslint": "workspace:*",
"@trezor/type-utils": "workspace:*",
"@types/chrome": "^0.0.299",
"@types/w3c-web-usb": "^1.0.10",
"babel-loader": "^10.0.0",

View File

@@ -18,7 +18,7 @@ import {
AbstractMessageChannel,
Message,
} from '@trezor/connect-common/src/messageChannel/abstract';
import { IntervalId, TimerId } from '@trezor/type-utils';
import type { IntervalId, TimerId } from '@trezor/type-utils';
import { Deferred, createDeferred, scheduleAction } from '@trezor/utils';
import { showPopupRequest } from './showPopupRequest';

View File

@@ -25,6 +25,7 @@
{ "path": "../connect" },
{ "path": "../connect-common" },
{ "path": "../utils" },
{ "path": "../eslint" }
{ "path": "../eslint" },
{ "path": "../type-utils" }
]
}

View File

@@ -17,6 +17,9 @@
},
{
"path": "../eslint"
},
{
"path": "../type-utils"
}
]
}

View File

@@ -90,6 +90,7 @@
"@trezor/protocol": "workspace:*",
"@trezor/schema-utils": "workspace:*",
"@trezor/transport": "workspace:*",
"@trezor/type-utils": "workspace:*",
"@trezor/utils": "workspace:*",
"@trezor/utxo-lib": "workspace:*",
"blakejs": "^1.2.1",

View File

@@ -1,4 +1,4 @@
import { TimerId } from '@trezor/type-utils';
import type { TimerId } from '@trezor/type-utils';
import { ERRORS } from '../constants';
import { Blockchain, BlockchainOptions } from './Blockchain';

View File

@@ -13,6 +13,7 @@
{ "path": "../protocol" },
{ "path": "../schema-utils" },
{ "path": "../transport" },
{ "path": "../type-utils" },
{ "path": "../utils" },
{ "path": "../utxo-lib" },
{ "path": "../eslint" },

View File

@@ -36,6 +36,9 @@
{
"path": "../transport"
},
{
"path": "../type-utils"
},
{
"path": "../utils"
},

View File

@@ -11496,6 +11496,7 @@ __metadata:
"@trezor/blockchain-link-types": "workspace:*"
"@trezor/blockchain-link-utils": "workspace:*"
"@trezor/eslint": "workspace:*"
"@trezor/type-utils": "workspace:*"
"@trezor/utils": "workspace:*"
"@trezor/utxo-lib": "workspace:*"
cross-fetch: "npm:^4.0.0"
@@ -11763,6 +11764,7 @@ __metadata:
"@trezor/node-utils": "workspace:*"
"@trezor/transport": "workspace:*"
"@trezor/trezor-user-env-link": "workspace:*"
"@trezor/type-utils": "workspace:*"
"@trezor/urls": "workspace:*"
"@trezor/utils": "workspace:*"
"@types/react": "npm:18.2.55"
@@ -11827,6 +11829,7 @@ __metadata:
"@trezor/connect": "workspace:*"
"@trezor/connect-common": "workspace:*"
"@trezor/eslint": "workspace:*"
"@trezor/type-utils": "workspace:*"
"@trezor/utils": "workspace:*"
"@types/chrome": "npm:^0.0.299"
"@types/w3c-web-usb": "npm:^1.0.10"
@@ -11899,6 +11902,7 @@ __metadata:
"@trezor/schema-utils": "workspace:*"
"@trezor/transport": "workspace:*"
"@trezor/trezor-user-env-link": "workspace:*"
"@trezor/type-utils": "workspace:*"
"@trezor/utils": "workspace:*"
"@trezor/utxo-lib": "workspace:*"
"@types/karma": "npm:^6.3.9"