@onekeyfe/hd-shared
Advanced tools
Comparing version 0.1.17 to 0.1.18
@@ -25,2 +25,4 @@ export interface IHardwareError { | ||
readonly DeviceUnexpectedBootloaderMode: 108; | ||
readonly DeviceInterruptedFromUser: 109; | ||
readonly DeviceCheckDeviceIdError: 110; | ||
readonly NotInitialized: 200; | ||
@@ -59,2 +61,3 @@ readonly IFrameNotInitialized: 300; | ||
readonly BridgeTimeoutError: 807; | ||
readonly BridgeNotInstalled: 808; | ||
}; | ||
@@ -61,0 +64,0 @@ export declare const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping; |
@@ -34,2 +34,4 @@ declare type Deferred<T, I = any, D = any> = { | ||
readonly DeviceUnexpectedBootloaderMode: 108; | ||
readonly DeviceInterruptedFromUser: 109; | ||
readonly DeviceCheckDeviceIdError: 110; | ||
readonly NotInitialized: 200; | ||
@@ -68,2 +70,3 @@ readonly IFrameNotInitialized: 300; | ||
readonly BridgeTimeoutError: 807; | ||
readonly BridgeNotInstalled: 808; | ||
}; | ||
@@ -70,0 +73,0 @@ declare const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping; |
@@ -94,2 +94,4 @@ 'use strict'; | ||
DeviceUnexpectedBootloaderMode: 108, | ||
DeviceInterruptedFromUser: 109, | ||
DeviceCheckDeviceIdError: 110, | ||
NotInitialized: 200, | ||
@@ -128,2 +130,3 @@ IFrameNotInitialized: 300, | ||
BridgeTimeoutError: 807, | ||
BridgeNotInstalled: 808, | ||
}; | ||
@@ -139,3 +142,5 @@ const HardwareErrorCodeMessage = { | ||
[HardwareErrorCode.DeviceInterruptedFromOutside]: 'Device interrupted', | ||
[HardwareErrorCode.DeviceInterruptedFromUser]: 'Device interrupted', | ||
[HardwareErrorCode.DeviceUnexpectedBootloaderMode]: 'Device should be in bootloader mode', | ||
[HardwareErrorCode.DeviceCheckDeviceIdError]: 'Device Id in the features is not same.', | ||
[HardwareErrorCode.NotInitialized]: 'Not initialized', | ||
@@ -174,2 +179,3 @@ [HardwareErrorCode.IFrameNotInitialized]: 'IFrame not initialized', | ||
[HardwareErrorCode.BridgeTimeoutError]: 'Bridge network timeout', | ||
[HardwareErrorCode.BridgeNotInstalled]: 'Bridge not installed', | ||
}; | ||
@@ -176,0 +182,0 @@ const TypedError = (hardwareError, message) => { |
{ | ||
"name": "@onekeyfe/hd-shared", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"description": "Hardware SDK's shared tool library", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "65350a66c7f2b1e80cb1d413ee56da4aef507fa3" | ||
"gitHead": "eebfd1dd46b146c64a8bfda691dc4d8402fa105b" | ||
} |
@@ -90,2 +90,9 @@ export interface IHardwareError { | ||
/** | ||
* Device interrupted from user | ||
*/ | ||
DeviceInterruptedFromUser: 109, | ||
DeviceCheckDeviceIdError: 110, | ||
/** | ||
* Not initialized | ||
@@ -218,2 +225,7 @@ */ | ||
BridgeTimeoutError: 807, | ||
/** | ||
* Bridge not installed | ||
*/ | ||
BridgeNotInstalled: 808, | ||
} as const; | ||
@@ -234,3 +246,5 @@ | ||
[HardwareErrorCode.DeviceInterruptedFromOutside]: 'Device interrupted', | ||
[HardwareErrorCode.DeviceInterruptedFromUser]: 'Device interrupted', | ||
[HardwareErrorCode.DeviceUnexpectedBootloaderMode]: 'Device should be in bootloader mode', | ||
[HardwareErrorCode.DeviceCheckDeviceIdError]: 'Device Id in the features is not same.', | ||
@@ -296,2 +310,3 @@ /** | ||
[HardwareErrorCode.BridgeTimeoutError]: 'Bridge network timeout', | ||
[HardwareErrorCode.BridgeNotInstalled]: 'Bridge not installed', | ||
} as const; | ||
@@ -298,0 +313,0 @@ |
Sorry, the diff of this file is not supported yet
28723
697