@onekeyfe/hd-shared 1.1.2-alpha.3 → 1.1.2
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 +0 -1
- package/dist/HardwareError.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -2
- package/package.json +2 -2
- package/src/HardwareError.ts +0 -7
package/dist/HardwareError.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ export declare const HardwareErrorCode: {
|
|
|
55
55
|
readonly NewFirmwareForceUpdate: 414;
|
|
56
56
|
readonly DeviceNotSupportMethod: 415;
|
|
57
57
|
readonly ForbiddenKeyPath: 416;
|
|
58
|
-
readonly RepeatUnlocking: 417;
|
|
59
58
|
readonly NetworkError: 500;
|
|
60
59
|
readonly TransportNotConfigured: 600;
|
|
61
60
|
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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C,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,7 +97,6 @@ declare const HardwareErrorCode: {
|
|
|
97
97
|
readonly NewFirmwareForceUpdate: 414;
|
|
98
98
|
readonly DeviceNotSupportMethod: 415;
|
|
99
99
|
readonly ForbiddenKeyPath: 416;
|
|
100
|
-
readonly RepeatUnlocking: 417;
|
|
101
100
|
readonly NetworkError: 500;
|
|
102
101
|
readonly TransportNotConfigured: 600;
|
|
103
102
|
readonly TransportCallInProgress: 601;
|
package/dist/index.js
CHANGED
|
@@ -187,7 +187,6 @@ const HardwareErrorCode = {
|
|
|
187
187
|
NewFirmwareForceUpdate: 414,
|
|
188
188
|
DeviceNotSupportMethod: 415,
|
|
189
189
|
ForbiddenKeyPath: 416,
|
|
190
|
-
RepeatUnlocking: 417,
|
|
191
190
|
NetworkError: 500,
|
|
192
191
|
TransportNotConfigured: 600,
|
|
193
192
|
TransportCallInProgress: 601,
|
|
@@ -281,7 +280,6 @@ const HardwareErrorCodeMessage = {
|
|
|
281
280
|
[HardwareErrorCode.UseDesktopToUpdateFirmware]: 'Please use OneKey desktop client to update the firmware',
|
|
282
281
|
[HardwareErrorCode.DeviceNotSupportMethod]: 'Device not support this method',
|
|
283
282
|
[HardwareErrorCode.ForbiddenKeyPath]: 'Forbidden key path',
|
|
284
|
-
[HardwareErrorCode.RepeatUnlocking]: 'Repeat unlocking',
|
|
285
283
|
[HardwareErrorCode.NetworkError]: 'Network request error',
|
|
286
284
|
[HardwareErrorCode.TransportNotConfigured]: 'Transport not configured',
|
|
287
285
|
[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.2
|
|
3
|
+
"version": "1.1.2",
|
|
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": "b508ccb9c68a8cd9f097ae534372be3d8901f530"
|
|
29
29
|
}
|
package/src/HardwareError.ts
CHANGED
|
@@ -250,12 +250,6 @@ 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
|
-
|
|
259
253
|
/**
|
|
260
254
|
* Netword request error
|
|
261
255
|
*/
|
|
@@ -480,7 +474,6 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
|
480
474
|
'Please use OneKey desktop client to update the firmware',
|
|
481
475
|
[HardwareErrorCode.DeviceNotSupportMethod]: 'Device not support this method',
|
|
482
476
|
[HardwareErrorCode.ForbiddenKeyPath]: 'Forbidden key path',
|
|
483
|
-
[HardwareErrorCode.RepeatUnlocking]: 'Repeat unlocking',
|
|
484
477
|
|
|
485
478
|
/**
|
|
486
479
|
* Network Errors
|