@onekeyfe/hd-transport-react-native 1.1.29-alpha.1 → 1.1.29-alpha.2
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 +0 -3
- package/package.json +6 -6
- package/src/index.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -495,9 +495,6 @@ class ReactNativeBleTransport {
|
|
|
495
495
|
});
|
|
496
496
|
getConnectedDeviceIds(getBluetoothServiceUuids()).then(devices => {
|
|
497
497
|
for (const device of devices) {
|
|
498
|
-
if (!hdShared.isOnekeyDevice(getBleIdentityName(device), device === null || device === void 0 ? void 0 : device.id)) {
|
|
499
|
-
continue;
|
|
500
|
-
}
|
|
501
498
|
Log === null || Log === void 0 ? void 0 : Log.debug('search connected peripheral: ', device.id);
|
|
502
499
|
addDevice(device);
|
|
503
500
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport-react-native",
|
|
3
|
-
"version": "1.1.29-alpha.
|
|
3
|
+
"version": "1.1.29-alpha.2",
|
|
4
4
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"lint:fix": "eslint . --fix"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@onekeyfe/hd-core": "1.1.29-alpha.
|
|
23
|
-
"@onekeyfe/hd-shared": "1.1.29-alpha.
|
|
24
|
-
"@onekeyfe/hd-transport": "1.1.29-alpha.
|
|
25
|
-
"@onekeyfe/react-native-ble-utils": "^0.1.
|
|
22
|
+
"@onekeyfe/hd-core": "1.1.29-alpha.2",
|
|
23
|
+
"@onekeyfe/hd-shared": "1.1.29-alpha.2",
|
|
24
|
+
"@onekeyfe/hd-transport": "1.1.29-alpha.2",
|
|
25
|
+
"@onekeyfe/react-native-ble-utils": "^0.1.5",
|
|
26
26
|
"react-native-ble-plx": "3.5.1"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "f38cc2a0f28fa72831c459d57cd8218eb42a0feb"
|
|
29
29
|
}
|
package/src/index.ts
CHANGED
|
@@ -406,9 +406,9 @@ export default class ReactNativeBleTransport {
|
|
|
406
406
|
|
|
407
407
|
getConnectedDeviceIds(getBluetoothServiceUuids()).then(devices => {
|
|
408
408
|
for (const device of devices) {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
409
|
+
// Already filtered by the OneKey service UUID via getConnectedDeviceIds;
|
|
410
|
+
// no extra name-based filter (it would drop real OneKey devices that
|
|
411
|
+
// report a null name on iOS).
|
|
412
412
|
Log?.debug('search connected peripheral: ', device.id);
|
|
413
413
|
addDevice(device as unknown as Device);
|
|
414
414
|
}
|