@onekeyfe/hwk-adapter-core 1.2.8-alpha.121 → 1.2.8-alpha.122
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-PY5FNLTS.js → chunk-AYS7A7Z3.js} +3 -7
- package/dist/chunk-AYS7A7Z3.js.map +1 -0
- package/dist/{chunk-Y7NVGPPY.mjs → chunk-G5EU7VRW.mjs} +2 -6
- package/dist/chunk-G5EU7VRW.mjs.map +1 -0
- package/dist/{chunk-V2OHL2JS.mjs → chunk-KTRQZ5AJ.mjs} +1 -4
- package/dist/chunk-KTRQZ5AJ.mjs.map +1 -0
- package/dist/{chunk-UFNTICCX.js → chunk-T5HIQPNG.js} +1 -4
- package/dist/chunk-T5HIQPNG.js.map +1 -0
- package/dist/{errors-DednD9bG.d.ts → errors-BgJ4kzRx.d.mts} +0 -5
- package/dist/{errors-DednD9bG.d.mts → errors-BgJ4kzRx.d.ts} +0 -5
- 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 +279 -300
- package/dist/index.d.ts +279 -300
- package/dist/index.js +49 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/dist/{ui-events-D_lCGgCk.d.mts → ui-events-C61GTilK.d.mts} +0 -13
- package/dist/{ui-events-D_lCGgCk.d.ts → ui-events-C61GTilK.d.ts} +0 -13
- 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-PY5FNLTS.js.map +0 -1
- package/dist/chunk-UFNTICCX.js.map +0 -1
- package/dist/chunk-V2OHL2JS.mjs.map +0 -1
- package/dist/chunk-Y7NVGPPY.mjs.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-G5EU7VRW.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-KTRQZ5AJ.mjs";
|
|
23
23
|
|
|
24
24
|
// src/types/response.ts
|
|
25
25
|
function success(payload) {
|
|
@@ -358,9 +358,11 @@ var OperationRegistry = class {
|
|
|
358
358
|
(operation) => operation.connectionKeys.includes(connectionKey)
|
|
359
359
|
);
|
|
360
360
|
}
|
|
361
|
-
/**
|
|
361
|
+
/** Map a job queue key (an operation id or a connection key) to its live operation id. */
|
|
362
362
|
findOperationIdByJobKey(jobKey) {
|
|
363
|
-
|
|
363
|
+
if (!jobKey) return void 0;
|
|
364
|
+
if (isHardwareOperationId(jobKey)) return jobKey;
|
|
365
|
+
return this.findActiveByConnectionKey(jobKey)?.operationId;
|
|
364
366
|
}
|
|
365
367
|
/**
|
|
366
368
|
* End an operation on the caller's explicit release. Throws for an unknown id; returns undefined
|