@onekeyfe/hwk-adapter-core 1.2.8-alpha.119 → 1.2.8-alpha.120

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.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  UI_REQUEST_TIMEOUT_TAG,
11
11
  UI_RESPONSE,
12
12
  UiRequestRegistry
13
- } from "./chunk-VWVDPWNI.mjs";
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-V2OHL2JS.mjs";
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
- /** Only an explicitly supplied operation job key owns the call's UI requests. */
361
+ /** Map a job queue key (an operation id or a connection key) to its live operation id. */
362
362
  findOperationIdByJobKey(jobKey) {
363
- return isHardwareOperationId(jobKey) ? jobKey : void 0;
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