@onekeyfe/hd-transport 1.2.0-alpha.4 → 1.2.0-alpha.6

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.
@@ -477,7 +477,7 @@ describe('Protocol V2 framing and session', () => {
477
477
  test('session consumes intermediate response frames before returning the final response', async () => {
478
478
  const written = [];
479
479
  const progress = ProtocolV2.encodeFrame(schemas, 'DeviceFirmwareUpdateStatus', {
480
- records: [{ target_id: 3, status: 1 }],
480
+ records: [{ target_id: 4, status: 1 }],
481
481
  });
482
482
  const success = ProtocolV2.encodeFrame(schemas, 'Success', {
483
483
  message: 'ok',
@@ -502,7 +502,7 @@ describe('Protocol V2 framing and session', () => {
502
502
 
503
503
  const result = await session.call(
504
504
  'DeviceFirmwareUpdateRequest',
505
- { targets: [{ target_id: 3, path: 'vol1:firmware.bin' }] },
505
+ { targets: [{ target_id: 4, path: 'vol1:firmware.bin' }] },
506
506
  {
507
507
  intermediateTypes: ['DeviceFirmwareUpdateStatus'],
508
508
  onIntermediateResponse,
@@ -513,7 +513,7 @@ describe('Protocol V2 framing and session', () => {
513
513
  expect(onIntermediateResponse).toHaveBeenCalledWith({
514
514
  type: 'DeviceFirmwareUpdateStatus',
515
515
  message: {
516
- records: [{ target_id: 3, status: 1, payload_version: null, path: null }],
516
+ records: [{ target_id: 4, status: 1, payload_version: null, path: null }],
517
517
  },
518
518
  });
519
519
  expect(result).toEqual({
@@ -107,6 +107,8 @@
107
107
  "MessageType_FirmwareHash": 89,
108
108
  "MessageType_UnlockPath": 93,
109
109
  "MessageType_UnlockedPathRequest": 94,
110
+ "MessageType_UnLockDevice": 10030,
111
+ "MessageType_UnLockDeviceResponse": 10031,
110
112
  "MessageType_SetU2FCounter": 63,
111
113
  "MessageType_GetNextU2FCounter": 80,
112
114
  "MessageType_NextU2FCounter": 81,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport",
3
- "version": "1.2.0-alpha.4",
3
+ "version": "1.2.0-alpha.6",
4
4
  "description": "Transport layer abstractions and utilities for OneKey hardware SDK.",
5
5
  "author": "OneKey",
6
6
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
@@ -28,5 +28,5 @@
28
28
  "long": "^4.0.0",
29
29
  "protobufjs": "^6.11.2"
30
30
  },
31
- "gitHead": "6f83d130f022a75003385bc4b2386cd0b2b539b5"
31
+ "gitHead": "b0a8d032546250b02bc737d72ac23932bdc07a61"
32
32
  }