@onekeyfe/hwk-trezor-connector 1.2.8-alpha.13 → 1.2.8-alpha.131
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 +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -8034,7 +8034,11 @@ var TrezorConnectorBase = class {
|
|
|
8034
8034
|
durationMs: Date.now() - startedAt,
|
|
8035
8035
|
error: errorToLog(error)
|
|
8036
8036
|
});
|
|
8037
|
-
|
|
8037
|
+
const serialized = (0, import_hwk_adapter_core3.serializeConnectorError)(error);
|
|
8038
|
+
if (error?.code === "ThpPairingFailed") {
|
|
8039
|
+
serialized.code = import_hwk_adapter_core3.HardwareErrorCode.ThpPairingFailed;
|
|
8040
|
+
}
|
|
8041
|
+
return { success: false, error: serialized };
|
|
8038
8042
|
}
|
|
8039
8043
|
}
|
|
8040
8044
|
async dispatchCall(sessionId, method, params) {
|