@onekeyfe/hd-shared 1.0.4-alpha.2 → 1.0.4-alpha.4

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