@onekeyfe/hd-shared 0.1.21 → 0.1.22
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/HardwareError.d.ts +1 -0
- package/dist/HardwareError.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
- package/src/HardwareError.ts +9 -0
package/dist/HardwareError.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export declare const HardwareErrorCode: {
|
|
|
24
24
|
readonly DeviceUnexpectedBootloaderMode: 108;
|
|
25
25
|
readonly DeviceInterruptedFromUser: 109;
|
|
26
26
|
readonly DeviceCheckDeviceIdError: 110;
|
|
27
|
+
readonly DeviceNotSupportPassphrase: 111;
|
|
27
28
|
readonly NotInitialized: 200;
|
|
28
29
|
readonly IFrameNotInitialized: 300;
|
|
29
30
|
readonly IFrameAleradyInitialized: 301;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HardwareError.d.ts","sourceRoot":"","sources":["../src/HardwareError.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,aAAK,OAAO,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE5C,aAAK,+BAA+B,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,OAAO,iBAAiB,CAAC,GAAG,MAAM;CAAE,CAAC;AAE5F,aAAK,cAAc,GAAG,OAAO,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAOxD,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAS,EAAE,cAAc,CAAkC;IAE3D,OAAO,SAAM;gBAED,aAAa,EAAE,cAAc,GAAG,MAAM;CAkBnD;AAED,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"HardwareError.d.ts","sourceRoot":"","sources":["../src/HardwareError.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,aAAK,OAAO,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE5C,aAAK,+BAA+B,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,OAAO,iBAAiB,CAAC,GAAG,MAAM;CAAE,CAAC;AAE5F,aAAK,cAAc,GAAG,OAAO,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAOxD,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAS,EAAE,cAAc,CAAkC;IAE3D,OAAO,SAAM;gBAED,aAAa,EAAE,cAAc,GAAG,MAAM;CAkBnD;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6MpB,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,+BAgF7B,CAAC;AAEX,eAAO,MAAM,UAAU,kBAAmB,cAAc,GAAG,MAAM,gDAKhE,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,GAAG,QAQ1C,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAAa,MAAM,KAAG,aAOtD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ declare const HardwareErrorCode: {
|
|
|
33
33
|
readonly DeviceUnexpectedBootloaderMode: 108;
|
|
34
34
|
readonly DeviceInterruptedFromUser: 109;
|
|
35
35
|
readonly DeviceCheckDeviceIdError: 110;
|
|
36
|
+
readonly DeviceNotSupportPassphrase: 111;
|
|
36
37
|
readonly NotInitialized: 200;
|
|
37
38
|
readonly IFrameNotInitialized: 300;
|
|
38
39
|
readonly IFrameAleradyInitialized: 301;
|
package/dist/index.js
CHANGED
|
@@ -93,6 +93,7 @@ const HardwareErrorCode = {
|
|
|
93
93
|
DeviceUnexpectedBootloaderMode: 108,
|
|
94
94
|
DeviceInterruptedFromUser: 109,
|
|
95
95
|
DeviceCheckDeviceIdError: 110,
|
|
96
|
+
DeviceNotSupportPassphrase: 111,
|
|
96
97
|
NotInitialized: 200,
|
|
97
98
|
IFrameNotInitialized: 300,
|
|
98
99
|
IFrameAleradyInitialized: 301,
|
|
@@ -142,6 +143,7 @@ const HardwareErrorCodeMessage = {
|
|
|
142
143
|
[HardwareErrorCode.DeviceInterruptedFromUser]: 'Device interrupted',
|
|
143
144
|
[HardwareErrorCode.DeviceUnexpectedBootloaderMode]: 'Device should be in bootloader mode',
|
|
144
145
|
[HardwareErrorCode.DeviceCheckDeviceIdError]: 'Device Id in the features is not same.',
|
|
146
|
+
[HardwareErrorCode.DeviceNotSupportPassphrase]: 'Device not support passphrase',
|
|
145
147
|
[HardwareErrorCode.NotInitialized]: 'Not initialized',
|
|
146
148
|
[HardwareErrorCode.IFrameNotInitialized]: 'IFrame not initialized',
|
|
147
149
|
[HardwareErrorCode.IFrameAleradyInitialized]: 'IFrame alerady initialized',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-shared",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "Hardware SDK's shared tool library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Hardware-SDK",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"lint": "eslint .",
|
|
26
26
|
"lint:fix": "eslint . --fix"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "ebc730c7be2b0d11fc8ec5f3ee08b1440d345c7a"
|
|
29
29
|
}
|
package/src/HardwareError.ts
CHANGED
|
@@ -91,8 +91,16 @@ export const HardwareErrorCode = {
|
|
|
91
91
|
*/
|
|
92
92
|
DeviceInterruptedFromUser: 109,
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Check device id is same
|
|
96
|
+
*/
|
|
94
97
|
DeviceCheckDeviceIdError: 110,
|
|
95
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Do not support passphrase
|
|
101
|
+
*/
|
|
102
|
+
DeviceNotSupportPassphrase: 111,
|
|
103
|
+
|
|
96
104
|
/**
|
|
97
105
|
* Not initialized
|
|
98
106
|
*/
|
|
@@ -254,6 +262,7 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
|
254
262
|
[HardwareErrorCode.DeviceInterruptedFromUser]: 'Device interrupted',
|
|
255
263
|
[HardwareErrorCode.DeviceUnexpectedBootloaderMode]: 'Device should be in bootloader mode',
|
|
256
264
|
[HardwareErrorCode.DeviceCheckDeviceIdError]: 'Device Id in the features is not same.',
|
|
265
|
+
[HardwareErrorCode.DeviceNotSupportPassphrase]: 'Device not support passphrase',
|
|
257
266
|
|
|
258
267
|
/**
|
|
259
268
|
* Node Errors
|