@onekeyfe/hd-transport-react-native 1.2.0-alpha.113 → 1.2.0-alpha.115
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/dist/index.js +1 -1
- package/package.json +5 -5
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -274,7 +274,7 @@ const getFirmwareUploadWriteRetryType = (error) => {
|
|
|
274
274
|
return text.includes('GATT_CONGESTED') || hasGattCongestedStatus(text) ? 'congested' : null;
|
|
275
275
|
};
|
|
276
276
|
const resolveFirmwareUploadRetryDelay = (attempt, baseDelayMs = 200, maxDelayMs = 1200) => Math.min(baseDelayMs * Math.pow(2, attempt), maxDelayMs);
|
|
277
|
-
const PROTOCOL_PROBE_TIMEOUT_MS =
|
|
277
|
+
const PROTOCOL_PROBE_TIMEOUT_MS = 3000;
|
|
278
278
|
const PROTOCOL_V2_PROBE_TIMEOUT_MS = 10000;
|
|
279
279
|
const BLE_WRITE_PACKET_TIMEOUT_MS = 10000;
|
|
280
280
|
const WEDGED_WRITE_MESSAGE = 'BLE write timeout after';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport-react-native",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.115",
|
|
4
4
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"lint:fix": "eslint . --fix"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@onekeyfe/hd-core": "1.2.0-alpha.
|
|
24
|
-
"@onekeyfe/hd-shared": "1.2.0-alpha.
|
|
25
|
-
"@onekeyfe/hd-transport": "1.2.0-alpha.
|
|
23
|
+
"@onekeyfe/hd-core": "1.2.0-alpha.115",
|
|
24
|
+
"@onekeyfe/hd-shared": "1.2.0-alpha.115",
|
|
25
|
+
"@onekeyfe/hd-transport": "1.2.0-alpha.115",
|
|
26
26
|
"@onekeyfe/react-native-ble-utils": "^0.1.6",
|
|
27
27
|
"react-native-ble-plx": "3.5.1"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "24c7cf18659ba9e49ce0630ef16863e136bfec72"
|
|
30
30
|
}
|
package/src/index.ts
CHANGED
|
@@ -139,7 +139,7 @@ export const getFirmwareUploadWriteRetryType = (
|
|
|
139
139
|
|
|
140
140
|
const resolveFirmwareUploadRetryDelay = (attempt: number, baseDelayMs = 200, maxDelayMs = 1200) =>
|
|
141
141
|
Math.min(baseDelayMs * 2 ** attempt, maxDelayMs);
|
|
142
|
-
const PROTOCOL_PROBE_TIMEOUT_MS =
|
|
142
|
+
const PROTOCOL_PROBE_TIMEOUT_MS = 3000;
|
|
143
143
|
const PROTOCOL_V2_PROBE_TIMEOUT_MS = 10_000;
|
|
144
144
|
/**
|
|
145
145
|
* Per-packet write budget. iOS only resolves writeWithoutResponse once CoreBluetooth
|