@onekeyfe/hd-transport-react-native 0.3.40-alpha.2 → 0.3.40-alpha.3

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
@@ -112,7 +112,7 @@ const isOnekeyDevice = (name, id) => {
112
112
  if ((_a = id === null || id === void 0 ? void 0 : id.startsWith) === null || _a === void 0 ? void 0 : _a.call(id, 'MI')) {
113
113
  return true;
114
114
  }
115
- const re = /(BixinKey\d{10})|(K\d{4})|(T\d{4})|(Touch\s\w{4})/i;
115
+ const re = /(BixinKey\d{10})|(K\d{4})|(T\d{4})|(Touch\s\w{4})|(Pro\s\w{4})/i;
116
116
  if (name && re.exec(name)) {
117
117
  return true;
118
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.2",
3
+ "version": "0.3.40-alpha.3",
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.2",
23
- "@onekeyfe/hd-transport": "^0.3.40-alpha.2",
22
+ "@onekeyfe/hd-shared": "^0.3.40-alpha.3",
23
+ "@onekeyfe/hd-transport": "^0.3.40-alpha.3",
24
24
  "@onekeyfe/react-native-ble-plx": "3.0.0",
25
25
  "react-native-ble-manager": "^8.1.0"
26
26
  },
27
- "gitHead": "d8f28d911d6acf1dcc0d6bfdae53aee23ee9f4de"
27
+ "gitHead": "90037549836946f2d2422dd39a349b23edcd8aa6"
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})/i;
11
+ const re = /(BixinKey\d{10})|(K\d{4})|(T\d{4})|(Touch\s\w{4})|(Pro\s\w{4})/i;
12
12
  if (name && re.exec(name)) {
13
13
  return true;
14
14
  }