@onekeyfe/hd-shared 0.2.32 → 0.2.34
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 +1 -0
- package/dist/HardwareError.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
- package/src/HardwareError.ts +2 -0
package/dist/HardwareError.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ export declare const HardwareErrorCode: {
|
|
|
66
66
|
readonly BleAlreadyConnected: 711;
|
|
67
67
|
readonly BleLocationServicesDisabled: 712;
|
|
68
68
|
readonly BleTimeoutError: 713;
|
|
69
|
+
readonly BleForceCleanRunPromise: 714;
|
|
69
70
|
readonly RuntimeError: 800;
|
|
70
71
|
readonly PinInvalid: 801;
|
|
71
72
|
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;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoRpB,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,+BAsG7B,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
|
@@ -75,6 +75,7 @@ declare const HardwareErrorCode: {
|
|
|
75
75
|
readonly BleAlreadyConnected: 711;
|
|
76
76
|
readonly BleLocationServicesDisabled: 712;
|
|
77
77
|
readonly BleTimeoutError: 713;
|
|
78
|
+
readonly BleForceCleanRunPromise: 714;
|
|
78
79
|
readonly RuntimeError: 800;
|
|
79
80
|
readonly PinInvalid: 801;
|
|
80
81
|
readonly PinCancelled: 802;
|
package/dist/index.js
CHANGED
|
@@ -135,6 +135,7 @@ const HardwareErrorCode = {
|
|
|
135
135
|
BleAlreadyConnected: 711,
|
|
136
136
|
BleLocationServicesDisabled: 712,
|
|
137
137
|
BleTimeoutError: 713,
|
|
138
|
+
BleForceCleanRunPromise: 714,
|
|
138
139
|
RuntimeError: 800,
|
|
139
140
|
PinInvalid: 801,
|
|
140
141
|
PinCancelled: 802,
|
|
@@ -202,6 +203,7 @@ const HardwareErrorCodeMessage = {
|
|
|
202
203
|
[HardwareErrorCode.BleAlreadyConnected]: 'Already connected to device',
|
|
203
204
|
[HardwareErrorCode.BleLocationServicesDisabled]: 'Location Services disabled',
|
|
204
205
|
[HardwareErrorCode.BleTimeoutError]: 'The connection has timed out unexpectedly.',
|
|
206
|
+
[HardwareErrorCode.BleForceCleanRunPromise]: 'Force clean Bluetooth run promise',
|
|
205
207
|
[HardwareErrorCode.RuntimeError]: 'Runtime error',
|
|
206
208
|
[HardwareErrorCode.PinInvalid]: 'Pin invalid',
|
|
207
209
|
[HardwareErrorCode.PinCancelled]: 'Pin cancelled',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-shared",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.34",
|
|
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": "938bb02e6417dd94caaea4719933a33575705add"
|
|
29
29
|
}
|
package/src/HardwareError.ts
CHANGED
|
@@ -251,6 +251,7 @@ export const HardwareErrorCode = {
|
|
|
251
251
|
BleAlreadyConnected: 711,
|
|
252
252
|
BleLocationServicesDisabled: 712,
|
|
253
253
|
BleTimeoutError: 713,
|
|
254
|
+
BleForceCleanRunPromise: 714,
|
|
254
255
|
|
|
255
256
|
/**
|
|
256
257
|
* Hardware runtiome errors
|
|
@@ -403,6 +404,7 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
|
403
404
|
[HardwareErrorCode.BleAlreadyConnected]: 'Already connected to device',
|
|
404
405
|
[HardwareErrorCode.BleLocationServicesDisabled]: 'Location Services disabled',
|
|
405
406
|
[HardwareErrorCode.BleTimeoutError]: 'The connection has timed out unexpectedly.',
|
|
407
|
+
[HardwareErrorCode.BleForceCleanRunPromise]: 'Force clean Bluetooth run promise',
|
|
406
408
|
|
|
407
409
|
/**
|
|
408
410
|
* Runtime Error
|