@onekeyfe/hd-ble-sdk 1.2.0-alpha.1 → 1.2.0-alpha.11
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 +4 -0
- package/package.json +5 -5
- package/src/index.ts +5 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AASpD,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":"AAuBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AASpD,eAAO,MAAM,eAAe,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAA;CAAO,CAAC;AAoJpE,QAAA,MAAM,cAAc,qCAUlB,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -539,6 +539,9 @@ const cancel = (connectId) => {
|
|
|
539
539
|
return;
|
|
540
540
|
_core.handleMessage({ event: HardwareSdk.IFRAME.CANCEL, type: HardwareSdk.IFRAME.CANCEL, payload: { connectId } });
|
|
541
541
|
};
|
|
542
|
+
const cancelOperation = (operationId) => {
|
|
543
|
+
_core === null || _core === void 0 ? void 0 : _core.cancelOperation(operationId);
|
|
544
|
+
};
|
|
542
545
|
function handleMessage(message) {
|
|
543
546
|
var _a;
|
|
544
547
|
const { event, type } = message;
|
|
@@ -647,6 +650,7 @@ const HardwareBleSdk = HardwareSdk__default["default"]({
|
|
|
647
650
|
init,
|
|
648
651
|
call,
|
|
649
652
|
cancel,
|
|
653
|
+
cancelOperation,
|
|
650
654
|
dispose,
|
|
651
655
|
uiResponse,
|
|
652
656
|
updateSettings,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-ble-sdk",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.11",
|
|
4
4
|
"author": "OneKey",
|
|
5
5
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"lint:fix": "eslint . --fix"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@onekeyfe/hd-core": "1.2.0-alpha.
|
|
24
|
-
"@onekeyfe/hd-shared": "1.2.0-alpha.
|
|
25
|
-
"@onekeyfe/hd-transport-react-native": "1.2.0-alpha.
|
|
23
|
+
"@onekeyfe/hd-core": "1.2.0-alpha.11",
|
|
24
|
+
"@onekeyfe/hd-shared": "1.2.0-alpha.11",
|
|
25
|
+
"@onekeyfe/hd-transport-react-native": "1.2.0-alpha.11"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "05d3421ec00e07e99f6665e6436a612503e32dfc"
|
|
28
28
|
}
|
package/src/index.ts
CHANGED
|
@@ -50,6 +50,10 @@ const cancel = (connectId?: string) => {
|
|
|
50
50
|
_core.handleMessage({ event: IFRAME.CANCEL, type: IFRAME.CANCEL, payload: { connectId } });
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
+
const cancelOperation = (operationId: string) => {
|
|
54
|
+
_core?.cancelOperation(operationId);
|
|
55
|
+
};
|
|
56
|
+
|
|
53
57
|
function handleMessage(message: CoreMessage) {
|
|
54
58
|
const { event, type } = message;
|
|
55
59
|
if (!_core) {
|
|
@@ -179,6 +183,7 @@ const HardwareBleSdk = HardwareSdk({
|
|
|
179
183
|
init,
|
|
180
184
|
call,
|
|
181
185
|
cancel,
|
|
186
|
+
cancelOperation,
|
|
182
187
|
dispose,
|
|
183
188
|
uiResponse,
|
|
184
189
|
updateSettings,
|