@onekeyfe/hd-transport-web-device 1.2.0-alpha.179 → 1.2.0-alpha.180

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.
@@ -387,6 +387,13 @@ describe('WebUsbTransport Protocol V2 timeout recovery', () => {
387
387
  webusb.callProtocolV2(path, 'Ping', { message: 'short' }, { timeoutMs: 25 }),
388
388
  ]);
389
389
 
390
- expect(readTimeouts).toEqual([1_000, 25]);
390
+ // Each call keeps its own budget instead of inheriting the other's. The
391
+ // queued one is a deadline, so it arrives with whatever the first call left
392
+ // of its 25ms — asserting the exact remainder makes this fail on a loaded
393
+ // machine, which is timing, not behaviour.
394
+ expect(readTimeouts).toHaveLength(2);
395
+ expect(readTimeouts[0]).toBe(1_000);
396
+ expect(readTimeouts[1]).toBeGreaterThan(0);
397
+ expect(readTimeouts[1]).toBeLessThanOrEqual(25);
391
398
  });
392
399
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport-web-device",
3
- "version": "1.2.0-alpha.179",
3
+ "version": "1.2.0-alpha.180",
4
4
  "author": "OneKey",
5
5
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
6
6
  "license": "MIT",
@@ -21,13 +21,13 @@
21
21
  "lint:fix": "eslint . --fix"
22
22
  },
23
23
  "dependencies": {
24
- "@onekeyfe/hd-shared": "1.2.0-alpha.179",
25
- "@onekeyfe/hd-transport": "1.2.0-alpha.179"
24
+ "@onekeyfe/hd-shared": "1.2.0-alpha.180",
25
+ "@onekeyfe/hd-transport": "1.2.0-alpha.180"
26
26
  },
27
27
  "devDependencies": {
28
- "@onekeyfe/hd-transport-electron": "1.2.0-alpha.179",
28
+ "@onekeyfe/hd-transport-electron": "1.2.0-alpha.180",
29
29
  "@types/w3c-web-usb": "^1.0.6",
30
30
  "@types/web-bluetooth": "^0.0.17"
31
31
  },
32
- "gitHead": "dcdc4387e00db0beb5b4adba53a9408537549578"
32
+ "gitHead": "37976e13bb904ec6167ccba67a7b497e5a3744a2"
33
33
  }