@onekeyfe/hd-core 1.1.10 → 1.1.11-alpha.0

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 CHANGED
@@ -39349,7 +39349,7 @@ function connectDeviceForBle(method, device) {
39349
39349
  yield device.initialize(parseInitOptions(method));
39350
39350
  }
39351
39351
  catch (err) {
39352
- if (err.errorCode === hdShared.HardwareErrorCode.BleTimeoutError && bleTimeoutRetry <= 5) {
39352
+ if (err.errorCode === hdShared.HardwareErrorCode.BleTimeoutError && bleTimeoutRetry <= 1) {
39353
39353
  bleTimeoutRetry += 1;
39354
39354
  Log.debug(`Bletooth connect timeout and will retry, retry count: ${bleTimeoutRetry}`);
39355
39355
  yield wait(3000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-core",
3
- "version": "1.1.10",
3
+ "version": "1.1.11-alpha.0",
4
4
  "description": "Core processes and APIs for communicating with OneKey hardware devices.",
5
5
  "author": "OneKey",
6
6
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
@@ -25,8 +25,8 @@
25
25
  "url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
26
26
  },
27
27
  "dependencies": {
28
- "@onekeyfe/hd-shared": "1.1.10",
29
- "@onekeyfe/hd-transport": "1.1.10",
28
+ "@onekeyfe/hd-shared": "1.1.11-alpha.0",
29
+ "@onekeyfe/hd-transport": "1.1.11-alpha.0",
30
30
  "axios": "^0.27.2",
31
31
  "bignumber.js": "^9.0.2",
32
32
  "bytebuffer": "^5.0.1",
@@ -46,5 +46,5 @@
46
46
  "@types/web-bluetooth": "^0.0.21",
47
47
  "ripple-keypairs": "^1.3.1"
48
48
  },
49
- "gitHead": "650b885d8e3432d6905d2da29f8064a2a54554d0"
49
+ "gitHead": "48e660625135d9cbed2d5d7c7007bfdcf6493f09"
50
50
  }
package/src/core/index.ts CHANGED
@@ -602,7 +602,7 @@ async function connectDeviceForBle(method: BaseMethod, device: Device) {
602
602
  await device.acquire();
603
603
  await device.initialize(parseInitOptions(method));
604
604
  } catch (err) {
605
- if (err.errorCode === HardwareErrorCode.BleTimeoutError && bleTimeoutRetry <= 5) {
605
+ if (err.errorCode === HardwareErrorCode.BleTimeoutError && bleTimeoutRetry <= 1) {
606
606
  bleTimeoutRetry += 1;
607
607
  Log.debug(`Bletooth connect timeout and will retry, retry count: ${bleTimeoutRetry}`);
608
608
  await wait(3000);