@onekeyfe/hd-transport-electron 1.1.27-alpha.36 → 1.1.27-alpha.38

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-a1af4c83.js'); });
35
+ const { setupNobleBleHandlers } = yield Promise.resolve().then(function () { return require('./noble-ble-handler-94c42077.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-c4cb52d7.js');
5
+ var index = require('./index-02fc07fe.js');
6
6
 
7
7
 
8
8
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-c4cb52d7.js');
3
+ var index = require('./index-02fc07fe.js');
4
4
  var hdShared = require('@onekeyfe/hd-shared');
5
5
  var pRetry = require('p-retry');
6
6
 
@@ -74,7 +74,7 @@ const BLUETOOTH_INIT_TIMEOUT = 10000;
74
74
  const DEVICE_SCAN_TIMEOUT = 8000;
75
75
  const FAST_SCAN_TIMEOUT = 8000;
76
76
  const DEVICE_CHECK_INTERVAL = 500;
77
- const CONNECTION_TIMEOUT = 3000;
77
+ const CONNECTION_TIMEOUT = 8000;
78
78
  const SERVICE_DISCOVERY_TIMEOUT = 10000;
79
79
  const BLE_PACKET_SIZE = 192;
80
80
  const UNIFIED_WRITE_DELAY = 5;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport-electron",
3
- "version": "1.1.27-alpha.36",
3
+ "version": "1.1.27-alpha.38",
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.1.27-alpha.36",
29
- "@onekeyfe/hd-shared": "1.1.27-alpha.36",
30
- "@onekeyfe/hd-transport": "1.1.27-alpha.36",
28
+ "@onekeyfe/hd-core": "1.1.27-alpha.38",
29
+ "@onekeyfe/hd-shared": "1.1.27-alpha.38",
30
+ "@onekeyfe/hd-transport": "1.1.27-alpha.38",
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": "1aaff42d7dd10933009ba7e0c0b7324e91d8e993"
39
+ "gitHead": "71f3b20e3ec0d2c4b21b444501115dc8c0eba20b"
40
40
  }
@@ -70,7 +70,7 @@ const BLUETOOTH_INIT_TIMEOUT = 10000; // 10 seconds for Bluetooth initialization
70
70
  const DEVICE_SCAN_TIMEOUT = 8000; // 8 seconds for device scanning (Pro2 has longer advertising interval)
71
71
  const FAST_SCAN_TIMEOUT = 8000; // 8 seconds for targeted scanning (Pro2 has longer advertising interval)
72
72
  const DEVICE_CHECK_INTERVAL = 500; // 500ms interval for periodic device checks
73
- const CONNECTION_TIMEOUT = 3000; // 3 seconds for device connection
73
+ const CONNECTION_TIMEOUT = 8000; // 8 seconds for device connection (BLE reconnect after release can be slow)
74
74
  const SERVICE_DISCOVERY_TIMEOUT = 10000; // 10 seconds for service discovery
75
75
 
76
76
  // Write-related constants