@onekeyfe/hd-transport-react-native 0.3.39 → 0.3.40-alpha.0
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 +1 -1
- package/package.json +4 -4
- package/src/constants.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -107,7 +107,7 @@ const isOnekeyDevice = (name, id) => {
|
|
|
107
107
|
if ((_a = id === null || id === void 0 ? void 0 : id.startsWith) === null || _a === void 0 ? void 0 : _a.call(id, 'MI')) {
|
|
108
108
|
return true;
|
|
109
109
|
}
|
|
110
|
-
const re = /(BixinKey\d{10})|(K\d{4})|(T\d{4})|(Touch\s\w{4})/i;
|
|
110
|
+
const re = /(BixinKey\d{10})|(K\d{4})|(T\d{4})|(Touch\s\w{4})|(Pro\s\w{4})/i;
|
|
111
111
|
if (name && re.exec(name)) {
|
|
112
112
|
return true;
|
|
113
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport-react-native",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.40-alpha.0",
|
|
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.
|
|
23
|
-
"@onekeyfe/hd-transport": "^0.3.
|
|
22
|
+
"@onekeyfe/hd-shared": "^0.3.40-alpha.0",
|
|
23
|
+
"@onekeyfe/hd-transport": "^0.3.40-alpha.0",
|
|
24
24
|
"@onekeyfe/react-native-ble-plx": "3.0.0",
|
|
25
25
|
"react-native-ble-manager": "^8.1.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "1682b66aae6682f2f31239fed2d941ccb98491ca"
|
|
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
|
}
|