@trezor/connect 9.5.2 → 9.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -4
- package/README.md +1 -1
- package/lib/api/cardano/api/cardanoSignTransaction.d.ts +4 -4
- package/lib/api/cipherKeyValue.js +3 -1
- package/lib/api/ethereum/ethereumDefinitions.js +2 -2
- package/lib/api/firmware/getBinary.d.ts +1 -1
- package/lib/api/firmware/getBinaryForFirmwareUpgrade.d.ts +1 -1
- package/lib/api/firmware/verifyAuthenticityProof.d.ts +1 -1
- package/lib/api/firmware/verifyEntropy.d.ts +1 -1
- package/lib/api/firmware/x509certificate.d.ts +3 -3
- package/lib/api/getAccountDescriptor.js +0 -2
- package/lib/api/getAccountInfo.js +0 -2
- package/lib/api/resetDevice.js +1 -1
- package/lib/api/solana/solanaUtils.js +17 -7
- package/lib/api/tezos/tezosSignTx.d.ts +11 -11
- package/lib/data/connectSettings.js +0 -1
- package/lib/data/getLanguage.d.ts +1 -1
- package/lib/data/udevInfo.js +9 -9
- package/lib/data/version.d.ts +1 -1
- package/lib/data/version.js +1 -1
- package/lib/device/DeviceCommands.d.ts +4510 -18
- package/lib/device/DeviceCommands.js +3 -3
- package/lib/device/TransportList.d.ts +2 -2
- package/lib/device/prompts.d.ts +838 -1
- package/lib/device/prompts.js +3 -2
- package/lib/tsconfig.lib.tsbuildinfo +1 -0
- package/lib/utils/accountUtils.js +2 -2
- package/lib/utils/uiPromiseManager.d.ts +2 -2
- package/lib/utils/versionCheck.d.ts +3 -0
- package/lib/utils/versionCheck.js +16 -0
- package/lib/workers/workers.js +17 -7
- package/package.json +14 -14
|
@@ -218,7 +218,7 @@ class DeviceCommands {
|
|
|
218
218
|
getDeviceState() {
|
|
219
219
|
return this._getAddress();
|
|
220
220
|
}
|
|
221
|
-
async call(type, msg
|
|
221
|
+
async call(type, msg) {
|
|
222
222
|
logger.debug('Sending', type, filterForLog(type, msg));
|
|
223
223
|
this.callPromise = this.transport.call({
|
|
224
224
|
session: this.transportSession,
|
|
@@ -235,11 +235,11 @@ class DeviceCommands {
|
|
|
235
235
|
logger.debug('Received', res.payload.type, filterForLog(res.payload.type, res.payload.message));
|
|
236
236
|
return res.payload;
|
|
237
237
|
}
|
|
238
|
-
async typedCall(type, resType, msg) {
|
|
238
|
+
async typedCall(type, resType, msg = {}) {
|
|
239
239
|
if (this.disposed) {
|
|
240
240
|
throw constants_1.ERRORS.TypedError('Runtime', 'typedCall: DeviceCommands already disposed');
|
|
241
241
|
}
|
|
242
|
-
(0, schema_utils_1.Assert)(protobuf_1.MessagesSchema.MessageType.properties[type], msg
|
|
242
|
+
(0, schema_utils_1.Assert)(protobuf_1.MessagesSchema.MessageType.properties[type], msg);
|
|
243
243
|
const response = await this._commonCall(type, msg);
|
|
244
244
|
try {
|
|
245
245
|
assertType(response, resType);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Transport } from '@trezor/transport';
|
|
2
2
|
import type { AbstractTransportParams } from '@trezor/transport/lib/transports/abstract';
|
|
3
3
|
import { ConnectSettingsTransport } from '../types';
|
|
4
4
|
type Params = AbstractTransportParams & {
|
|
5
5
|
sessionsBackgroundUrl?: string | null;
|
|
6
6
|
};
|
|
7
|
-
export declare const createTransportList: (params: Params) => (existing: Transport[], transports?: ConnectSettingsTransport[]) =>
|
|
7
|
+
export declare const createTransportList: (params: Params) => (existing: Transport[], transports?: ConnectSettingsTransport[]) => Transport[];
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=TransportList.d.ts.map
|