@onekeyfe/hd-shared 1.1.2 → 1.1.3-alpha.0
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 +7 -0
package/dist/HardwareError.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export declare const HardwareErrorCode: {
|
|
|
55
55
|
readonly NewFirmwareForceUpdate: 414;
|
|
56
56
|
readonly DeviceNotSupportMethod: 415;
|
|
57
57
|
readonly ForbiddenKeyPath: 416;
|
|
58
|
+
readonly RepeatUnlocking: 417;
|
|
58
59
|
readonly NetworkError: 500;
|
|
59
60
|
readonly TransportNotConfigured: 600;
|
|
60
61
|
readonly TransportCallInProgress: 601;
|
|
@@ -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;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED,KAAK,OAAO,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE5C,KAAK,+BAA+B,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,OAAO,iBAAiB,CAAC,GAAG,MAAM;CAAE,CAAC;AAE5F,KAAK,cAAc,GAAG,OAAO,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAOxD,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAS,EAAE,cAAc,CAAkC;IAE3D,OAAO,SAAM;IAEb,MAAM,EAAE,GAAG,CAAM;gBAEL,aAAa,EAAE,cAAc,GAAG,MAAM;CAmBnD;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yC,cAClC,MAAM,GAAG,SAAS,YACnB,MAAM,GAAG,SAAS,kBAM3B,CAAC;AAEJ,QAAA,MAAM,6BAA6B,mBAAoB,MAAM,qBAAqB,MAAM,kBAKrF,CAAC;AAEJ,OAAO,EACL,uCAAuC,EACvC,sCAAsC,EACtC,yCAAyC,EACzC,6BAA6B,GAC9B,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ declare const HardwareErrorCode: {
|
|
|
97
97
|
readonly NewFirmwareForceUpdate: 414;
|
|
98
98
|
readonly DeviceNotSupportMethod: 415;
|
|
99
99
|
readonly ForbiddenKeyPath: 416;
|
|
100
|
+
readonly RepeatUnlocking: 417;
|
|
100
101
|
readonly NetworkError: 500;
|
|
101
102
|
readonly TransportNotConfigured: 600;
|
|
102
103
|
readonly TransportCallInProgress: 601;
|
package/dist/index.js
CHANGED
|
@@ -187,6 +187,7 @@ const HardwareErrorCode = {
|
|
|
187
187
|
NewFirmwareForceUpdate: 414,
|
|
188
188
|
DeviceNotSupportMethod: 415,
|
|
189
189
|
ForbiddenKeyPath: 416,
|
|
190
|
+
RepeatUnlocking: 417,
|
|
190
191
|
NetworkError: 500,
|
|
191
192
|
TransportNotConfigured: 600,
|
|
192
193
|
TransportCallInProgress: 601,
|
|
@@ -280,6 +281,7 @@ const HardwareErrorCodeMessage = {
|
|
|
280
281
|
[HardwareErrorCode.UseDesktopToUpdateFirmware]: 'Please use OneKey desktop client to update the firmware',
|
|
281
282
|
[HardwareErrorCode.DeviceNotSupportMethod]: 'Device not support this method',
|
|
282
283
|
[HardwareErrorCode.ForbiddenKeyPath]: 'Forbidden key path',
|
|
284
|
+
[HardwareErrorCode.RepeatUnlocking]: 'Repeat unlocking',
|
|
283
285
|
[HardwareErrorCode.NetworkError]: 'Network request error',
|
|
284
286
|
[HardwareErrorCode.TransportNotConfigured]: 'Transport not configured',
|
|
285
287
|
[HardwareErrorCode.TransportCallInProgress]: 'Transport call in progress',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-shared",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3-alpha.0",
|
|
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": "9ab5f65116d2ad199ee7ee745fc818a1e8452309"
|
|
29
29
|
}
|
package/src/HardwareError.ts
CHANGED
|
@@ -250,6 +250,12 @@ export const HardwareErrorCode = {
|
|
|
250
250
|
*/
|
|
251
251
|
ForbiddenKeyPath: 416,
|
|
252
252
|
|
|
253
|
+
/**
|
|
254
|
+
* Repeat unlocking
|
|
255
|
+
* all network get address by loop need repeat unlocking
|
|
256
|
+
*/
|
|
257
|
+
RepeatUnlocking: 417,
|
|
258
|
+
|
|
253
259
|
/**
|
|
254
260
|
* Netword request error
|
|
255
261
|
*/
|
|
@@ -474,6 +480,7 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
|
474
480
|
'Please use OneKey desktop client to update the firmware',
|
|
475
481
|
[HardwareErrorCode.DeviceNotSupportMethod]: 'Device not support this method',
|
|
476
482
|
[HardwareErrorCode.ForbiddenKeyPath]: 'Forbidden key path',
|
|
483
|
+
[HardwareErrorCode.RepeatUnlocking]: 'Repeat unlocking',
|
|
477
484
|
|
|
478
485
|
/**
|
|
479
486
|
* Network Errors
|