@onekeyfe/hardware-cli 1.2.0-alpha.20 → 1.2.0-alpha.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hardware-cli",
3
- "version": "1.2.0-alpha.20",
3
+ "version": "1.2.0-alpha.22",
4
4
  "description": "OneKey hardware wallet CLI for testing device communication",
5
5
  "author": "OneKey",
6
6
  "license": "Apache-2.0",
@@ -31,12 +31,12 @@
31
31
  "test": "jest"
32
32
  },
33
33
  "dependencies": {
34
- "@onekeyfe/hd-common-connect-sdk": "1.2.0-alpha.20",
35
- "@onekeyfe/hd-core": "1.2.0-alpha.20",
36
- "@onekeyfe/hd-shared": "1.2.0-alpha.20",
37
- "@onekeyfe/hd-transport-usb": "1.2.0-alpha.20",
34
+ "@onekeyfe/hd-common-connect-sdk": "1.2.0-alpha.22",
35
+ "@onekeyfe/hd-core": "1.2.0-alpha.22",
36
+ "@onekeyfe/hd-shared": "1.2.0-alpha.22",
37
+ "@onekeyfe/hd-transport-usb": "1.2.0-alpha.22",
38
38
  "@stoprocent/noble": "2.3.16",
39
39
  "commander": "^12.0.0"
40
40
  },
41
- "gitHead": "5fbc1ada90fd3cfda7e5ef08be368cb452018733"
41
+ "gitHead": "ce94a5ebbe141b0c15db7c68d08085ca1ddb0166"
42
42
  }
@@ -5,9 +5,7 @@ describe('firmware-update-legacy CLI command', () => {
5
5
  const command = program.commands.find(item => item.name() === 'firmware-update-legacy');
6
6
 
7
7
  expect(command).toBeDefined();
8
- expect(command?.description()).toBe(
9
- 'Update Classic/Pure firmware through the legacy protocol'
10
- );
8
+ expect(command?.description()).toBe('Update Classic/Pure firmware through the legacy protocol');
11
9
  expect(command?.options.find(option => option.long === '--binary')?.mandatory).toBe(true);
12
10
  expect(command?.options.some(option => option.long === '--device-name')).toBe(true);
13
11
  expect(command?.options.some(option => option.long === '--update-type')).toBe(true);
@@ -163,7 +163,11 @@ describe('Noble BLE plugin notification routing', () => {
163
163
 
164
164
  await (plugin.send as any)('device-a', 'aa', { withoutResponse: false });
165
165
 
166
- expect(device.write.write).toHaveBeenCalledWith(expect.any(Buffer), false, expect.any(Function));
166
+ expect(device.write.write).toHaveBeenCalledWith(
167
+ expect.any(Buffer),
168
+ false,
169
+ expect.any(Function)
170
+ );
167
171
  });
168
172
 
169
173
  test('does not add a fixed delay between 192-byte writes', async () => {