@onekeyfe/hd-transport-react-native 1.2.0-alpha.113 → 1.2.0-alpha.114

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAIL,UAAU,IAAI,aAAa,EAG5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,SAAS,EAAE,EAChB,KAAK,oBAAoB,EAIzB,KAAK,YAAY,EAKjB,KAAK,oBAAoB,EAI1B,MAAM,wBAAwB,CAAC;AA2BhC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAI1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAgBjE,KAAK,4BAA4B,GAAG,WAAW,CAAC;AAChD,KAAK,0BAA0B,GAAG;IAChC,mBAAmB,EAAE,cAAc,CAAC;IACpC,oBAAoB,EAAE,cAAc,CAAC;CACtC,CAAC;AAkCF,eAAO,MAAM,+BAA+B,UACnC,OAAO,KACb,4BAA4B,GAAG,IAsBjC,CAAC;AAcF,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAOlD,eAAO,MAAM,yCAAyC,IAAI,CAAC;AAI3D,MAAM,MAAM,mBAAmB,GAAG;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAiBF,wBAAgB,4BAA4B,CAAC,MAAM,GAAE,mBAAwB,QAY5E;AAED,wBAAgB,wBAAwB,SAGvC;AAED,wBAAgB,sBAAsB;;;EAErC;AAsCD,eAAO,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) => {
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 = 1000;
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';
@@ -1304,13 +1304,13 @@ class ReactNativeBleTransport {
1304
1304
  return check.call(jsonData);
1305
1305
  }
1306
1306
  catch (e) {
1307
- if (name === 'GetFeatures' && (options === null || options === void 0 ? void 0 : options.timeoutMs) === PROTOCOL_PROBE_TIMEOUT_MS) {
1308
- Log === null || Log === void 0 ? void 0 : Log.debug('[ReactNativeBleTransport] Protocol V1 GetFeatures probe call failed:', e);
1307
+ if (name === 'Initialize' && (options === null || options === void 0 ? void 0 : options.timeoutMs) === PROTOCOL_PROBE_TIMEOUT_MS) {
1308
+ Log === null || Log === void 0 ? void 0 : Log.debug('[ReactNativeBleTransport] Protocol V1 Initialize probe call failed:', e);
1309
1309
  }
1310
1310
  else {
1311
1311
  Log === null || Log === void 0 ? void 0 : Log.error('call error: ', e);
1312
1312
  }
1313
- const isProbeTimeout = name === 'GetFeatures' && (options === null || options === void 0 ? void 0 : options.timeoutMs) === PROTOCOL_PROBE_TIMEOUT_MS;
1313
+ const isProbeTimeout = name === 'Initialize' && (options === null || options === void 0 ? void 0 : options.timeoutMs) === PROTOCOL_PROBE_TIMEOUT_MS;
1314
1314
  const isStaleCall = this.runPromise !== runPromise;
1315
1315
  if (!isProbeTimeout &&
1316
1316
  !isStaleCall &&
@@ -1582,7 +1582,7 @@ class ReactNativeBleTransport {
1582
1582
  return hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.RuntimeError, `Device protocol mismatch: expected ${expected}, but device did not respond to expected protocol`);
1583
1583
  }
1584
1584
  createProtocolDetectionError() {
1585
- return hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.BleTimeoutError, 'Unable to detect BLE protocol: device did not respond to Protocol V1 GetFeatures or Protocol V2 Ping');
1585
+ return hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.BleTimeoutError, 'Unable to detect BLE protocol: device did not respond to Protocol V1 Initialize or Protocol V2 Ping');
1586
1586
  }
1587
1587
  clearProbeProtocol(uuid, protocol) {
1588
1588
  if (this.probingProtocols.get(uuid) === protocol) {
@@ -1725,13 +1725,13 @@ class ReactNativeBleTransport {
1725
1725
  }
1726
1726
  try {
1727
1727
  this.probingProtocols.set(uuid, 'V1');
1728
- yield this.callProtocolV1(uuid, 'GetFeatures', {}, { timeoutMs: PROTOCOL_PROBE_TIMEOUT_MS });
1728
+ yield this.callProtocolV1(uuid, 'Initialize', {}, { timeoutMs: PROTOCOL_PROBE_TIMEOUT_MS });
1729
1729
  this.probingProtocols.delete(uuid);
1730
1730
  return true;
1731
1731
  }
1732
1732
  catch (error) {
1733
1733
  this.clearProbeProtocol(uuid, 'V1');
1734
- Log === null || Log === void 0 ? void 0 : Log.debug('[ReactNativeBleTransport] Protocol V1 GetFeatures probe failed:', error);
1734
+ Log === null || Log === void 0 ? void 0 : Log.debug('[ReactNativeBleTransport] Protocol V1 Initialize probe failed:', error);
1735
1735
  if (isWedgedWriteError(error)) {
1736
1736
  throw error;
1737
1737
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport-react-native",
3
- "version": "1.2.0-alpha.113",
3
+ "version": "1.2.0-alpha.114",
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.113",
24
- "@onekeyfe/hd-shared": "1.2.0-alpha.113",
25
- "@onekeyfe/hd-transport": "1.2.0-alpha.113",
23
+ "@onekeyfe/hd-core": "1.2.0-alpha.114",
24
+ "@onekeyfe/hd-shared": "1.2.0-alpha.114",
25
+ "@onekeyfe/hd-transport": "1.2.0-alpha.114",
26
26
  "@onekeyfe/react-native-ble-utils": "^0.1.6",
27
27
  "react-native-ble-plx": "3.5.1"
28
28
  },
29
- "gitHead": "859d0105877f964acb536cd6f337d2d3999d22d5"
29
+ "gitHead": "7035991e1c0237e375dec03e5b9d99f45d4aa550"
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 = 1000;
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
@@ -1518,13 +1518,13 @@ export default class ReactNativeBleTransport {
1518
1518
  const jsonData = ProtocolV1.decodeMessage(messages, response);
1519
1519
  return check.call(jsonData);
1520
1520
  } catch (e) {
1521
- if (name === 'GetFeatures' && options?.timeoutMs === PROTOCOL_PROBE_TIMEOUT_MS) {
1522
- Log?.debug('[ReactNativeBleTransport] Protocol V1 GetFeatures probe call failed:', e);
1521
+ if (name === 'Initialize' && options?.timeoutMs === PROTOCOL_PROBE_TIMEOUT_MS) {
1522
+ Log?.debug('[ReactNativeBleTransport] Protocol V1 Initialize probe call failed:', e);
1523
1523
  } else {
1524
1524
  Log?.error('call error: ', e);
1525
1525
  }
1526
1526
  const isProbeTimeout =
1527
- name === 'GetFeatures' && options?.timeoutMs === PROTOCOL_PROBE_TIMEOUT_MS;
1527
+ name === 'Initialize' && options?.timeoutMs === PROTOCOL_PROBE_TIMEOUT_MS;
1528
1528
  // A call that has been superseded (forceRun) or cleaned up no longer owns the
1529
1529
  // transport; its late timeout must not tear down the connection the current
1530
1530
  // call is actively using.
@@ -1868,7 +1868,7 @@ export default class ReactNativeBleTransport {
1868
1868
  private createProtocolDetectionError() {
1869
1869
  return ERRORS.TypedError(
1870
1870
  HardwareErrorCode.BleTimeoutError,
1871
- 'Unable to detect BLE protocol: device did not respond to Protocol V1 GetFeatures or Protocol V2 Ping'
1871
+ 'Unable to detect BLE protocol: device did not respond to Protocol V1 Initialize or Protocol V2 Ping'
1872
1872
  );
1873
1873
  }
1874
1874
 
@@ -2044,14 +2044,12 @@ export default class ReactNativeBleTransport {
2044
2044
 
2045
2045
  try {
2046
2046
  this.probingProtocols.set(uuid, 'V1');
2047
- // GetFeatures identifies Protocol V1 without resetting an existing wallet
2048
- // session before Core has a chance to restore a hidden wallet.
2049
- await this.callProtocolV1(uuid, 'GetFeatures', {}, { timeoutMs: PROTOCOL_PROBE_TIMEOUT_MS });
2047
+ await this.callProtocolV1(uuid, 'Initialize', {}, { timeoutMs: PROTOCOL_PROBE_TIMEOUT_MS });
2050
2048
  this.probingProtocols.delete(uuid);
2051
2049
  return true;
2052
2050
  } catch (error) {
2053
2051
  this.clearProbeProtocol(uuid, 'V1');
2054
- Log?.debug('[ReactNativeBleTransport] Protocol V1 GetFeatures probe failed:', error);
2052
+ Log?.debug('[ReactNativeBleTransport] Protocol V1 Initialize probe failed:', error);
2055
2053
  // A wedged write already dropped the link, so probing another protocol on it
2056
2054
  // would only fail against a torn-down transport: surface the real cause.
2057
2055
  if (isWedgedWriteError(error)) {