@onekeyfe/hd-shared 0.1.6 → 0.1.7

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.
@@ -45,6 +45,7 @@ export declare const HardwareErrorCode: {
45
45
  readonly BleServiceNotFound: 706;
46
46
  readonly BleCharacteristicNotFound: 707;
47
47
  readonly BleMonitorError: 708;
48
+ readonly BleCharacteristicNotifyError: 709;
48
49
  readonly RuntimeError: 800;
49
50
  readonly PinInvalid: 801;
50
51
  readonly PinCancelled: 802;
@@ -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;CAClB;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;AAMxD,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAS,EAAE,cAAc,CAAkC;IAE3D,OAAO,SAAM;gBAED,aAAa,EAAE,cAAc,GAAG,MAAM;CAkBnD;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0JpB,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,+BAqE7B,CAAC;AAEX,eAAO,MAAM,UAAU,kBAAmB,cAAc,GAAG,MAAM,gDAKhE,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,GAAG,QAQ1C,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;CAClB;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;AAMxD,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAS,EAAE,cAAc,CAAkC;IAE3D,OAAO,SAAM;gBAED,aAAa,EAAE,cAAc,GAAG,MAAM;CAkBnD;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2JpB,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,+BAsE7B,CAAC;AAEX,eAAO,MAAM,UAAU,kBAAmB,cAAc,GAAG,MAAM,gDAKhE,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,GAAG,QAQ1C,CAAC"}
package/dist/index.d.ts CHANGED
@@ -54,6 +54,7 @@ declare const HardwareErrorCode: {
54
54
  readonly BleServiceNotFound: 706;
55
55
  readonly BleCharacteristicNotFound: 707;
56
56
  readonly BleMonitorError: 708;
57
+ readonly BleCharacteristicNotifyError: 709;
57
58
  readonly RuntimeError: 800;
58
59
  readonly PinInvalid: 801;
59
60
  readonly PinCancelled: 802;
package/dist/index.js CHANGED
@@ -112,6 +112,7 @@ const HardwareErrorCode = {
112
112
  BleServiceNotFound: 706,
113
113
  BleCharacteristicNotFound: 707,
114
114
  BleMonitorError: 708,
115
+ BleCharacteristicNotifyError: 709,
115
116
  RuntimeError: 800,
116
117
  PinInvalid: 801,
117
118
  PinCancelled: 802,
@@ -151,6 +152,7 @@ const HardwareErrorCodeMessage = {
151
152
  [HardwareErrorCode.BleServiceNotFound]: 'BLEServiceNotFound: service not found',
152
153
  [HardwareErrorCode.BleCharacteristicNotFound]: 'BLEServiceNotFound: service not found',
153
154
  [HardwareErrorCode.BleMonitorError]: 'Monitor Error: characteristic not found',
155
+ [HardwareErrorCode.BleCharacteristicNotifyError]: 'Characteristic Notify Error',
154
156
  [HardwareErrorCode.RuntimeError]: 'Runtime error',
155
157
  [HardwareErrorCode.PinInvalid]: 'Pin invalid',
156
158
  [HardwareErrorCode.PinCancelled]: 'Pin cancelled',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-shared",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
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": "ebe2789fa24cbfb798c9be445678e71e67e33d71"
28
+ "gitHead": "1d3889d02e41afd60cd0388b6e01d7f2ac7c5399"
29
29
  }
@@ -167,6 +167,7 @@ export const HardwareErrorCode = {
167
167
  BleServiceNotFound: 706,
168
168
  BleCharacteristicNotFound: 707,
169
169
  BleMonitorError: 708,
170
+ BleCharacteristicNotifyError: 709,
170
171
 
171
172
  /**
172
173
  * Hardware runtiome errors
@@ -254,6 +255,7 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
254
255
  [HardwareErrorCode.BleServiceNotFound]: 'BLEServiceNotFound: service not found',
255
256
  [HardwareErrorCode.BleCharacteristicNotFound]: 'BLEServiceNotFound: service not found',
256
257
  [HardwareErrorCode.BleMonitorError]: 'Monitor Error: characteristic not found',
258
+ [HardwareErrorCode.BleCharacteristicNotifyError]: 'Characteristic Notify Error',
257
259
 
258
260
  /**
259
261
  * Runtime Error