@onekeyfe/hd-transport-electron 1.2.0-alpha.153 → 1.2.0-alpha.154

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.
@@ -32,7 +32,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
32
32
 
33
33
  function initNobleBleSupport(webContents) {
34
34
  return __awaiter(this, void 0, void 0, function* () {
35
- const { setupNobleBleHandlers } = yield Promise.resolve().then(function () { return require('./noble-ble-handler-78adadea.js'); });
35
+ const { setupNobleBleHandlers } = yield Promise.resolve().then(function () { return require('./noble-ble-handler-26159b70.js'); });
36
36
  setupNobleBleHandlers(webContents);
37
37
  });
38
38
  }
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-c28cc24a.js');
5
+ var index = require('./index-40be8e99.js');
6
6
 
7
7
 
8
8
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-c28cc24a.js');
3
+ var index = require('./index-40be8e99.js');
4
4
  var hdShared = require('@onekeyfe/hd-shared');
5
5
  var pRetry = require('p-retry');
6
6
 
@@ -117,7 +117,7 @@ const DEVICE_CHECK_INTERVAL = 500;
117
117
  const SERVICE_DISCOVERY_TIMEOUT = 10000;
118
118
  const BLE_CLEANUP_TIMEOUT = 250;
119
119
  const BLE_DISCONNECT_CONFIRM_TIMEOUT_MS = 3000;
120
- const BLE_IDLE_DISCONNECT_MS = 3 * 60000;
120
+ const BLE_IDLE_DISCONNECT_MS = 20000;
121
121
  const BLE_BUSY_BACKSTOP_MS = 10 * 60000;
122
122
  const BLE_PACKET_SIZE_FALLBACK = 192;
123
123
  const BLE_PACKET_SIZE_MAXIMUM = 244;
@@ -1 +1 @@
1
- {"version":3,"file":"noble-ble-handler.d.ts","sourceRoot":"","sources":["../src/noble-ble-handler.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAA+B,WAAW,EAAE,MAAM,UAAU,CAAC;AAEzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AA8EhE,wBAAgB,+BAA+B,CAAC,OAAO,CAAC,EAAE,oBAAoB,UAI7E;AAwnDD,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAkMpE"}
1
+ {"version":3,"file":"noble-ble-handler.d.ts","sourceRoot":"","sources":["../src/noble-ble-handler.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAA+B,WAAW,EAAE,MAAM,UAAU,CAAC;AAEzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAoFhE,wBAAgB,+BAA+B,CAAC,OAAO,CAAC,EAAE,oBAAoB,UAI7E;AAwnDD,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAkMpE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport-electron",
3
- "version": "1.2.0-alpha.153",
3
+ "version": "1.2.0-alpha.154",
4
4
  "author": "OneKey",
5
5
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
6
6
  "license": "MIT",
@@ -25,9 +25,9 @@
25
25
  "electron-log": ">=4.0.0"
26
26
  },
27
27
  "dependencies": {
28
- "@onekeyfe/hd-core": "1.2.0-alpha.153",
29
- "@onekeyfe/hd-shared": "1.2.0-alpha.153",
30
- "@onekeyfe/hd-transport": "1.2.0-alpha.153",
28
+ "@onekeyfe/hd-core": "1.2.0-alpha.154",
29
+ "@onekeyfe/hd-shared": "1.2.0-alpha.154",
30
+ "@onekeyfe/hd-transport": "1.2.0-alpha.154",
31
31
  "@stoprocent/noble": "2.3.16",
32
32
  "p-retry": "^4.6.2"
33
33
  },
@@ -36,5 +36,5 @@
36
36
  "electron": "^25.0.0",
37
37
  "typescript": "^5.3.3"
38
38
  },
39
- "gitHead": "2544b0bde0835515911c2c1b8c8b631788557300"
39
+ "gitHead": "0b81bf264b2b33e00550b1008264c02e0a049b68"
40
40
  }
@@ -94,7 +94,13 @@ const BLE_CLEANUP_TIMEOUT = 250;
94
94
  // still disconnecting, leaving no trace when the teardown never completed.
95
95
  const BLE_DISCONNECT_CONFIRM_TIMEOUT_MS = 3000;
96
96
  // Renderer release is logical only; this timer physically frees the device.
97
- const BLE_IDLE_DISCONNECT_MS = 3 * 60_000;
97
+ // Keep it SHORT: the Classic 1S goes protocol-deaf when a link is dropped
98
+ // after sitting idle for minutes (field logs 2026-08-19: every deaf window
99
+ // followed a 3-minute-idle disconnect, while disconnects right after traffic
100
+ // have never produced one across 6.5.0's per-call teardown history). A hot
101
+ // disconnect ~20s after the last operation stays inside the proven-safe
102
+ // pattern and also shrinks the window in which phones cannot see the device.
103
+ const BLE_IDLE_DISCONNECT_MS = 20_000;
98
104
  // Ceiling while a call is in flight: no outstanding write, but not forever.
99
105
  const BLE_BUSY_BACKSTOP_MS = 10 * 60_000;
100
106