@onekeyfe/hd-transport 1.2.8-alpha.10 → 1.2.8-alpha.11
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
|
|
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(
|
|
1182
|
+
call: () => Promise.reject(fatalError),
|
|
1183
1183
|
timeoutMs: 1,
|
|
1184
1184
|
onProbeFailed,
|
|
1185
1185
|
shouldRethrow: error => error?.errorCode === 715,
|
|
1186
1186
|
})
|
|
1187
|
-
).rejects.toBe(
|
|
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.
|
|
3
|
+
"version": "1.2.8-alpha.11",
|
|
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": "
|
|
31
|
+
"gitHead": "b605c09bab7bf26b969c73820a73b5cf257ce1dc"
|
|
32
32
|
}
|