@onekeyfe/hd-transport-react-native 1.2.0-alpha.0 → 1.2.0-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 +1 -1
- package/package.json +5 -5
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1553,7 +1553,7 @@ class ReactNativeBleTransport {
|
|
|
1553
1553
|
if (!this._messages || !this._messagesV2) {
|
|
1554
1554
|
throw hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.TransportNotConfigured);
|
|
1555
1555
|
}
|
|
1556
|
-
const forceRun = name === 'Initialize' || name === 'Cancel' || name === '
|
|
1556
|
+
const forceRun = name === 'Initialize' || name === 'Cancel' || name === 'Ping';
|
|
1557
1557
|
if (this.runPromise) {
|
|
1558
1558
|
if (!forceRun) {
|
|
1559
1559
|
throw hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.TransportCallInProgress);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport-react-native",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.1",
|
|
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.2.0-alpha.
|
|
23
|
-
"@onekeyfe/hd-shared": "1.2.0-alpha.
|
|
24
|
-
"@onekeyfe/hd-transport": "1.2.0-alpha.
|
|
22
|
+
"@onekeyfe/hd-core": "1.2.0-alpha.1",
|
|
23
|
+
"@onekeyfe/hd-shared": "1.2.0-alpha.1",
|
|
24
|
+
"@onekeyfe/hd-transport": "1.2.0-alpha.1",
|
|
25
25
|
"@onekeyfe/react-native-ble-utils": "^0.1.4",
|
|
26
26
|
"react-native-ble-plx": "3.5.1"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "4f4aae3a47be7bd54b4db4a10c400056784e01bd"
|
|
29
29
|
}
|
package/src/index.ts
CHANGED
|
@@ -1680,7 +1680,7 @@ export default class ReactNativeBleTransport {
|
|
|
1680
1680
|
throw ERRORS.TypedError(HardwareErrorCode.TransportNotConfigured);
|
|
1681
1681
|
}
|
|
1682
1682
|
|
|
1683
|
-
const forceRun = name === 'Initialize' || name === 'Cancel' || name === '
|
|
1683
|
+
const forceRun = name === 'Initialize' || name === 'Cancel' || name === 'Ping';
|
|
1684
1684
|
if (this.runPromise) {
|
|
1685
1685
|
if (!forceRun) {
|
|
1686
1686
|
throw ERRORS.TypedError(HardwareErrorCode.TransportCallInProgress);
|