@onekeyfe/hd-ble-sdk 0.0.2 → 0.0.5
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.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/package.json +4 -4
- package/src/index.ts +4 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAoB,EAWlB,QAAQ,EAKT,MAAM,mBAAmB,CAAC;AAU3B,eAAO,MAAM,eAAe,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAA;CAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAoB,EAWlB,QAAQ,EAKT,MAAM,mBAAmB,CAAC;AAU3B,eAAO,MAAM,eAAe,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAA;CAAO,CAAC;AAuFpE,QAAA,MAAM,cAAc,qCAOlB,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -565,9 +565,11 @@ const init = (settings) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
565
565
|
try {
|
|
566
566
|
_core = yield HardwareSdk.initCore(_settings, ReactNativeTransport__default["default"]);
|
|
567
567
|
_core === null || _core === void 0 ? void 0 : _core.on(HardwareSdk.CORE_EVENT, handleMessage);
|
|
568
|
+
return true;
|
|
568
569
|
}
|
|
569
570
|
catch (error) {
|
|
570
571
|
Log.error(HardwareSdk.createErrorMessage(error));
|
|
572
|
+
return false;
|
|
571
573
|
}
|
|
572
574
|
});
|
|
573
575
|
const call = (params) => __awaiter(void 0, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-ble-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"author": "OneKey",
|
|
5
5
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"lint:fix": "eslint . --fix"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@onekeyfe/hd-core": "^0.0.
|
|
24
|
-
"@onekeyfe/hd-transport-react-native": "^0.0.
|
|
23
|
+
"@onekeyfe/hd-core": "^0.0.5",
|
|
24
|
+
"@onekeyfe/hd-transport-react-native": "^0.0.5"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "24d2a28fd3f2e7fda4c21742e968bce764985615"
|
|
27
27
|
}
|
package/src/index.ts
CHANGED
|
@@ -86,8 +86,12 @@ const init = async (settings: Partial<ConnectSettings>) => {
|
|
|
86
86
|
try {
|
|
87
87
|
_core = await initCore(_settings, ReactNativeTransport);
|
|
88
88
|
_core?.on(CORE_EVENT, handleMessage);
|
|
89
|
+
|
|
90
|
+
return true;
|
|
89
91
|
} catch (error) {
|
|
90
92
|
Log.error(createErrorMessage(error));
|
|
93
|
+
|
|
94
|
+
return false;
|
|
91
95
|
}
|
|
92
96
|
};
|
|
93
97
|
|