@onekeyfe/hd-shared 1.0.4-alpha.0 → 1.0.4-alpha.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 -6
package/dist/HardwareError.d.ts
CHANGED
|
@@ -37,7 +37,6 @@ export declare const HardwareErrorCode: {
|
|
|
37
37
|
readonly IFrameLoadFail: 302;
|
|
38
38
|
readonly IframeTimeout: 303;
|
|
39
39
|
readonly IframeBlocked: 304;
|
|
40
|
-
readonly IframeDistrust: 305;
|
|
41
40
|
readonly CallMethodError: 400;
|
|
42
41
|
readonly CallMethodNotResponse: 404;
|
|
43
42
|
readonly CallMethodInvalidParameter: 405;
|
|
@@ -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;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,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;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoTpB,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,+BAiH7B,CAAC;AAEX,eAAO,MAAM,UAAU,kBACN,cAAc,GAAG,MAAM,YAC5B,MAAM,WACP,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
|
@@ -46,7 +46,6 @@ declare const HardwareErrorCode: {
|
|
|
46
46
|
readonly IFrameLoadFail: 302;
|
|
47
47
|
readonly IframeTimeout: 303;
|
|
48
48
|
readonly IframeBlocked: 304;
|
|
49
|
-
readonly IframeDistrust: 305;
|
|
50
49
|
readonly CallMethodError: 400;
|
|
51
50
|
readonly CallMethodNotResponse: 404;
|
|
52
51
|
readonly CallMethodInvalidParameter: 405;
|
package/dist/index.js
CHANGED
|
@@ -111,7 +111,6 @@ const HardwareErrorCode = {
|
|
|
111
111
|
IFrameLoadFail: 302,
|
|
112
112
|
IframeTimeout: 303,
|
|
113
113
|
IframeBlocked: 304,
|
|
114
|
-
IframeDistrust: 305,
|
|
115
114
|
CallMethodError: 400,
|
|
116
115
|
CallMethodNotResponse: 404,
|
|
117
116
|
CallMethodInvalidParameter: 405,
|
|
@@ -187,7 +186,6 @@ const HardwareErrorCodeMessage = {
|
|
|
187
186
|
[HardwareErrorCode.IFrameLoadFail]: 'IFrame load fail',
|
|
188
187
|
[HardwareErrorCode.IframeTimeout]: 'init iframe time out',
|
|
189
188
|
[HardwareErrorCode.IframeBlocked]: 'IFrame blocked',
|
|
190
|
-
[HardwareErrorCode.IframeDistrust]: 'IFrame host not trust',
|
|
191
189
|
[HardwareErrorCode.CallMethodError]: 'Runtime errors during method execution',
|
|
192
190
|
[HardwareErrorCode.CallMethodNotResponse]: 'Method does not responding',
|
|
193
191
|
[HardwareErrorCode.CallMethodInvalidParameter]: 'Call method invalid parameter',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-shared",
|
|
3
|
-
"version": "1.0.4-alpha.
|
|
3
|
+
"version": "1.0.4-alpha.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": "5290ab9abdd74576660ed15e6da550128ff81c0a"
|
|
29
29
|
}
|
package/src/HardwareError.ts
CHANGED
|
@@ -156,11 +156,6 @@ export const HardwareErrorCode = {
|
|
|
156
156
|
*/
|
|
157
157
|
IframeBlocked: 304,
|
|
158
158
|
|
|
159
|
-
/**
|
|
160
|
-
* iframe host not trust
|
|
161
|
-
*/
|
|
162
|
-
IframeDistrust: 305,
|
|
163
|
-
|
|
164
159
|
/**
|
|
165
160
|
* Runtime errors during method execution
|
|
166
161
|
*/
|
|
@@ -392,7 +387,6 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
|
392
387
|
[HardwareErrorCode.IFrameLoadFail]: 'IFrame load fail',
|
|
393
388
|
[HardwareErrorCode.IframeTimeout]: 'init iframe time out',
|
|
394
389
|
[HardwareErrorCode.IframeBlocked]: 'IFrame blocked',
|
|
395
|
-
[HardwareErrorCode.IframeDistrust]: 'IFrame host not trust',
|
|
396
390
|
|
|
397
391
|
/**
|
|
398
392
|
* Method Errors
|