@onekeyfe/hwk-adapter-core 1.2.8-alpha.120 → 1.2.8-alpha.121
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/{chunk-AYS7A7Z3.js → chunk-PY5FNLTS.js} +7 -3
- package/dist/chunk-PY5FNLTS.js.map +1 -0
- package/dist/{chunk-T5HIQPNG.js → chunk-UFNTICCX.js} +4 -1
- package/dist/chunk-UFNTICCX.js.map +1 -0
- package/dist/{chunk-KTRQZ5AJ.mjs → chunk-V2OHL2JS.mjs} +4 -1
- package/dist/chunk-V2OHL2JS.mjs.map +1 -0
- package/dist/{chunk-G5EU7VRW.mjs → chunk-Y7NVGPPY.mjs} +6 -2
- package/dist/chunk-Y7NVGPPY.mjs.map +1 -0
- package/dist/{errors-BgJ4kzRx.d.ts → errors-DednD9bG.d.mts} +5 -0
- package/dist/{errors-BgJ4kzRx.d.mts → errors-DednD9bG.d.ts} +5 -0
- package/dist/errors.d.mts +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +2 -2
- package/dist/errors.mjs +1 -1
- package/dist/index.d.mts +295 -274
- package/dist/index.d.ts +295 -274
- package/dist/index.js +47 -49
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{ui-events-C61GTilK.d.ts → ui-events-D_lCGgCk.d.mts} +13 -0
- package/dist/{ui-events-C61GTilK.d.mts → ui-events-D_lCGgCk.d.ts} +13 -0
- package/dist/ui-events.d.mts +1 -1
- package/dist/ui-events.d.ts +1 -1
- package/dist/ui-events.js +3 -3
- package/dist/ui-events.mjs +2 -2
- package/package.json +2 -2
- package/dist/chunk-AYS7A7Z3.js.map +0 -1
- package/dist/chunk-G5EU7VRW.mjs.map +0 -1
- package/dist/chunk-KTRQZ5AJ.mjs.map +0 -1
- package/dist/chunk-T5HIQPNG.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
UI_REQUEST_TIMEOUT_TAG,
|
|
11
11
|
UI_RESPONSE,
|
|
12
12
|
UiRequestRegistry
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Y7NVGPPY.mjs";
|
|
14
14
|
import {
|
|
15
15
|
HardwareErrorCode,
|
|
16
16
|
ORPHAN_ELIGIBLE_ERROR_CODES,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
defaultRecoveryForCode,
|
|
20
20
|
isHwkRecoveryHint,
|
|
21
21
|
operationMayHaveCompletedParams
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-V2OHL2JS.mjs";
|
|
23
23
|
|
|
24
24
|
// src/types/response.ts
|
|
25
25
|
function success(payload) {
|
|
@@ -358,11 +358,9 @@ var OperationRegistry = class {
|
|
|
358
358
|
(operation) => operation.connectionKeys.includes(connectionKey)
|
|
359
359
|
);
|
|
360
360
|
}
|
|
361
|
-
/**
|
|
361
|
+
/** Only an explicitly supplied operation job key owns the call's UI requests. */
|
|
362
362
|
findOperationIdByJobKey(jobKey) {
|
|
363
|
-
|
|
364
|
-
if (isHardwareOperationId(jobKey)) return jobKey;
|
|
365
|
-
return this.findActiveByConnectionKey(jobKey)?.operationId;
|
|
363
|
+
return isHardwareOperationId(jobKey) ? jobKey : void 0;
|
|
366
364
|
}
|
|
367
365
|
/**
|
|
368
366
|
* End an operation on the caller's explicit release. Throws for an unknown id; returns undefined
|