@onekeyfe/hardware-cli 1.2.0-alpha.21 → 1.2.0-alpha.23
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.
|
|
3
|
+
"version": "1.2.0-alpha.23",
|
|
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.
|
|
35
|
-
"@onekeyfe/hd-core": "1.2.0-alpha.
|
|
36
|
-
"@onekeyfe/hd-shared": "1.2.0-alpha.
|
|
37
|
-
"@onekeyfe/hd-transport-usb": "1.2.0-alpha.
|
|
34
|
+
"@onekeyfe/hd-common-connect-sdk": "1.2.0-alpha.23",
|
|
35
|
+
"@onekeyfe/hd-core": "1.2.0-alpha.23",
|
|
36
|
+
"@onekeyfe/hd-shared": "1.2.0-alpha.23",
|
|
37
|
+
"@onekeyfe/hd-transport-usb": "1.2.0-alpha.23",
|
|
38
38
|
"@stoprocent/noble": "2.3.16",
|
|
39
39
|
"commander": "^12.0.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "7cadb40ca6414053a488756f28a9f413164b235d"
|
|
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(
|
|
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 () => {
|