@onekeyfe/hd-transport 1.2.8-alpha.1 → 1.2.8-alpha.2

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.
@@ -1175,16 +1175,16 @@ describe('Protocol V2 framing and session', () => {
1175
1175
 
1176
1176
  test('probeProtocolV2 rethrows caller-selected fatal errors without treating them as a miss', async () => {
1177
1177
  const onProbeFailed = jest.fn();
1178
- const staleBond = Object.assign(new Error('Bluetooth pairing failed'), { errorCode: 715 });
1178
+ const fatalError = Object.assign(new Error('Bluetooth connection failed'), { errorCode: 715 });
1179
1179
 
1180
1180
  await expect(
1181
1181
  probeProtocolV2({
1182
- call: () => Promise.reject(staleBond),
1182
+ call: () => Promise.reject(fatalError),
1183
1183
  timeoutMs: 1,
1184
1184
  onProbeFailed,
1185
1185
  shouldRethrow: error => error?.errorCode === 715,
1186
1186
  })
1187
- ).rejects.toBe(staleBond);
1187
+ ).rejects.toBe(fatalError);
1188
1188
  expect(onProbeFailed).not.toHaveBeenCalled();
1189
1189
  });
1190
1190
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport",
3
- "version": "1.2.8-alpha.1",
3
+ "version": "1.2.8-alpha.2",
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": "df614dc773e3e1075e5fbcdaee62d10a7a641eed"
31
+ "gitHead": "74ac64464df3806ef44ad54d313378754c3eaed2"
32
32
  }