@onekeyfe/hd-common-connect-sdk 1.2.0-alpha.10 → 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.js +4 -0
- package/package.json +9 -9
- package/src/index.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -627,6 +627,9 @@ var cancel = function (connectId) {
|
|
|
627
627
|
return;
|
|
628
628
|
_core.handleMessage({ event: HardwareSdk.IFRAME.CANCEL, type: HardwareSdk.IFRAME.CANCEL, payload: { connectId: connectId } });
|
|
629
629
|
};
|
|
630
|
+
var cancelOperation = function (operationId) {
|
|
631
|
+
_core === null || _core === void 0 ? void 0 : _core.cancelOperation(operationId);
|
|
632
|
+
};
|
|
630
633
|
function handleMessage(message) {
|
|
631
634
|
var event = message.event;
|
|
632
635
|
if (!_core) {
|
|
@@ -759,6 +762,7 @@ var HardwareCommonConnectSdk = HardwareSdk__default["default"]({
|
|
|
759
762
|
init: init,
|
|
760
763
|
call: call,
|
|
761
764
|
cancel: cancel,
|
|
765
|
+
cancelOperation: cancelOperation,
|
|
762
766
|
dispose: dispose,
|
|
763
767
|
uiResponse: uiResponse,
|
|
764
768
|
updateSettings: updateSettings,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-common-connect-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,13 +20,13 @@
|
|
|
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-emulator": "1.2.0-alpha.
|
|
26
|
-
"@onekeyfe/hd-transport-http": "1.2.0-alpha.
|
|
27
|
-
"@onekeyfe/hd-transport-lowlevel": "1.2.0-alpha.
|
|
28
|
-
"@onekeyfe/hd-transport-usb": "1.2.0-alpha.
|
|
29
|
-
"@onekeyfe/hd-transport-web-device": "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-emulator": "1.2.0-alpha.11",
|
|
26
|
+
"@onekeyfe/hd-transport-http": "1.2.0-alpha.11",
|
|
27
|
+
"@onekeyfe/hd-transport-lowlevel": "1.2.0-alpha.11",
|
|
28
|
+
"@onekeyfe/hd-transport-usb": "1.2.0-alpha.11",
|
|
29
|
+
"@onekeyfe/hd-transport-web-device": "1.2.0-alpha.11"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "05d3421ec00e07e99f6665e6436a612503e32dfc"
|
|
32
32
|
}
|
package/src/index.ts
CHANGED
|
@@ -79,6 +79,10 @@ const cancel = (connectId?: string) => {
|
|
|
79
79
|
_core.handleMessage({ event: IFRAME.CANCEL, type: IFRAME.CANCEL, payload: { connectId } });
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
+
const cancelOperation = (operationId: string) => {
|
|
83
|
+
_core?.cancelOperation(operationId);
|
|
84
|
+
};
|
|
85
|
+
|
|
82
86
|
function handleMessage(message: CoreMessage) {
|
|
83
87
|
const { event } = message;
|
|
84
88
|
if (!_core) {
|
|
@@ -199,6 +203,7 @@ const HardwareCommonConnectSdk = HardwareSdk({
|
|
|
199
203
|
init,
|
|
200
204
|
call,
|
|
201
205
|
cancel,
|
|
206
|
+
cancelOperation,
|
|
202
207
|
dispose,
|
|
203
208
|
uiResponse,
|
|
204
209
|
updateSettings,
|