@onekeyfe/hd-shared 0.3.23-alpha.3 → 0.3.24
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 -10
package/dist/HardwareError.d.ts
CHANGED
|
@@ -85,7 +85,6 @@ export declare const HardwareErrorCode: {
|
|
|
85
85
|
readonly FileAlreadyExists: 813;
|
|
86
86
|
readonly CheckDownloadFileError: 814;
|
|
87
87
|
readonly NotInSigningMode: 815;
|
|
88
|
-
readonly LowlevelTrasnportConnectError: 900;
|
|
89
88
|
};
|
|
90
89
|
export declare const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping;
|
|
91
90
|
export declare const TypedError: (hardwareError: ErrorCodeUnion | string, message?: string | undefined, params?: any) => HardwareError;
|
|
@@ -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,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;IAEb,MAAM,EAAE,GAAG,CAAM;gBAEL,aAAa,EAAE,cAAc,GAAG,MAAM;CAmBnD;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;IACjB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;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;IAEb,MAAM,EAAE,GAAG,CAAM;gBAEL,aAAa,EAAE,cAAc,GAAG,MAAM;CAmBnD;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqSpB,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,+BA0G7B,CAAC;AAEX,eAAO,MAAM,UAAU,kBACN,cAAc,GAAG,MAAM,yCAE7B,GAAG,kBAMb,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,GAAG,QAY1C,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAAa,MAAM,KAAG,aAOtD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -94,7 +94,6 @@ declare const HardwareErrorCode: {
|
|
|
94
94
|
readonly FileAlreadyExists: 813;
|
|
95
95
|
readonly CheckDownloadFileError: 814;
|
|
96
96
|
readonly NotInSigningMode: 815;
|
|
97
|
-
readonly LowlevelTrasnportConnectError: 900;
|
|
98
97
|
};
|
|
99
98
|
declare const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping;
|
|
100
99
|
declare const TypedError: (hardwareError: ErrorCodeUnion | string, message?: string | undefined, params?: any) => HardwareError;
|
package/dist/index.js
CHANGED
|
@@ -154,7 +154,6 @@ const HardwareErrorCode = {
|
|
|
154
154
|
FileAlreadyExists: 813,
|
|
155
155
|
CheckDownloadFileError: 814,
|
|
156
156
|
NotInSigningMode: 815,
|
|
157
|
-
LowlevelTrasnportConnectError: 900,
|
|
158
157
|
};
|
|
159
158
|
const HardwareErrorCodeMessage = {
|
|
160
159
|
[HardwareErrorCode.UnknownError]: 'Unknown error occurred. Check message property.',
|
|
@@ -227,7 +226,6 @@ const HardwareErrorCodeMessage = {
|
|
|
227
226
|
[HardwareErrorCode.FileAlreadyExists]: 'File already exists',
|
|
228
227
|
[HardwareErrorCode.CheckDownloadFileError]: 'Check download file error',
|
|
229
228
|
[HardwareErrorCode.NotInSigningMode]: 'not in signing mode',
|
|
230
|
-
[HardwareErrorCode.LowlevelTrasnportConnectError]: 'Lowlevel transport connect error',
|
|
231
229
|
};
|
|
232
230
|
const TypedError = (hardwareError, message, params) => {
|
|
233
231
|
if (typeof hardwareError === 'string') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.24",
|
|
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": "cf0501a0a46436855b6a34f23b31ee97777a644e"
|
|
29
29
|
}
|
package/src/HardwareError.ts
CHANGED
|
@@ -336,11 +336,6 @@ export const HardwareErrorCode = {
|
|
|
336
336
|
* not in signing mode
|
|
337
337
|
*/
|
|
338
338
|
NotInSigningMode: 815,
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Lowlevel transport connect error
|
|
342
|
-
*/
|
|
343
|
-
LowlevelTrasnportConnectError: 900,
|
|
344
339
|
} as const;
|
|
345
340
|
|
|
346
341
|
export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
@@ -449,11 +444,6 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
|
449
444
|
[HardwareErrorCode.FileAlreadyExists]: 'File already exists',
|
|
450
445
|
[HardwareErrorCode.CheckDownloadFileError]: 'Check download file error',
|
|
451
446
|
[HardwareErrorCode.NotInSigningMode]: 'not in signing mode',
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Lowlevel transport
|
|
455
|
-
*/
|
|
456
|
-
[HardwareErrorCode.LowlevelTrasnportConnectError]: 'Lowlevel transport connect error',
|
|
457
447
|
} as const;
|
|
458
448
|
|
|
459
449
|
export const TypedError = (
|