@onekeyfe/hd-transport-react-native 0.3.40-alpha.0 → 0.3.40-alpha.1

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
@@ -37,7 +37,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
37
37
  function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
38
38
  step((generator = generator.apply(thisArg, _arguments || [])).next());
39
39
  });
40
- }
40
+ }
41
+
42
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
43
+ var e = new Error(message);
44
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
45
+ };
41
46
 
42
47
  const initializeBleManager = () => {
43
48
  BleManager__default["default"].start({ showAlert: false });
@@ -107,7 +112,7 @@ const isOnekeyDevice = (name, id) => {
107
112
  if ((_a = id === null || id === void 0 ? void 0 : id.startsWith) === null || _a === void 0 ? void 0 : _a.call(id, 'MI')) {
108
113
  return true;
109
114
  }
110
- const re = /(BixinKey\d{10})|(K\d{4})|(T\d{4})|(Touch\s\w{4})|(Pro\s\w{4})/i;
115
+ const re = /(BixinKey\d{10})|(K\d{4})|(T\d{4})|(Touch\s\w{4})/i;
111
116
  if (name && re.exec(name)) {
112
117
  return true;
113
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport-react-native",
3
- "version": "0.3.40-alpha.0",
3
+ "version": "0.3.40-alpha.1",
4
4
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -19,10 +19,10 @@
19
19
  "lint:fix": "eslint . --fix"
20
20
  },
21
21
  "dependencies": {
22
- "@onekeyfe/hd-shared": "^0.3.40-alpha.0",
23
- "@onekeyfe/hd-transport": "^0.3.40-alpha.0",
22
+ "@onekeyfe/hd-shared": "^0.3.40-alpha.1",
23
+ "@onekeyfe/hd-transport": "^0.3.40-alpha.1",
24
24
  "@onekeyfe/react-native-ble-plx": "3.0.0",
25
25
  "react-native-ble-manager": "^8.1.0"
26
26
  },
27
- "gitHead": "1682b66aae6682f2f31239fed2d941ccb98491ca"
27
+ "gitHead": "455e71107390795e90651ecb46ef32cd8c8be5e2"
28
28
  }
package/src/constants.ts CHANGED
@@ -8,7 +8,7 @@ export const isOnekeyDevice = (name: string | null, id?: string): boolean => {
8
8
 
9
9
  // 过滤 BixinKeyxxx 和 Kxxxx 和 Txxxx
10
10
  // i 忽略大小写模式
11
- const re = /(BixinKey\d{10})|(K\d{4})|(T\d{4})|(Touch\s\w{4})|(Pro\s\w{4})/i;
11
+ const re = /(BixinKey\d{10})|(K\d{4})|(T\d{4})|(Touch\s\w{4})/i;
12
12
  if (name && re.exec(name)) {
13
13
  return true;
14
14
  }