@trezor/connect 9.5.2-beta.2 → 9.5.3-beta.1

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.
@@ -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 { BridgeTransport, NodeUsbTransport, Transport, UdpTransport } from '@trezor/transport';
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[]) => (Transport | NodeUsbTransport | BridgeTransport | UdpTransport)[];
7
+ export declare const createTransportList: (params: Params) => (existing: Transport[], transports?: ConnectSettingsTransport[]) => Transport[];
8
8
  export {};
9
9
  //# sourceMappingURL=TransportList.d.ts.map