@onekeyfe/hd-shared 0.3.9 → 0.3.11
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
|
@@ -68,6 +68,7 @@ export declare const HardwareErrorCode: {
|
|
|
68
68
|
readonly BleLocationServicesDisabled: 712;
|
|
69
69
|
readonly BleTimeoutError: 713;
|
|
70
70
|
readonly BleForceCleanRunPromise: 714;
|
|
71
|
+
readonly BleDeviceBondError: 715;
|
|
71
72
|
readonly RuntimeError: 800;
|
|
72
73
|
readonly PinInvalid: 801;
|
|
73
74
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
@@ -77,6 +77,7 @@ declare const HardwareErrorCode: {
|
|
|
77
77
|
readonly BleLocationServicesDisabled: 712;
|
|
78
78
|
readonly BleTimeoutError: 713;
|
|
79
79
|
readonly BleForceCleanRunPromise: 714;
|
|
80
|
+
readonly BleDeviceBondError: 715;
|
|
80
81
|
readonly RuntimeError: 800;
|
|
81
82
|
readonly PinInvalid: 801;
|
|
82
83
|
readonly PinCancelled: 802;
|
package/dist/index.js
CHANGED
|
@@ -137,6 +137,7 @@ const HardwareErrorCode = {
|
|
|
137
137
|
BleLocationServicesDisabled: 712,
|
|
138
138
|
BleTimeoutError: 713,
|
|
139
139
|
BleForceCleanRunPromise: 714,
|
|
140
|
+
BleDeviceBondError: 715,
|
|
140
141
|
RuntimeError: 800,
|
|
141
142
|
PinInvalid: 801,
|
|
142
143
|
PinCancelled: 802,
|
|
@@ -208,6 +209,7 @@ const HardwareErrorCodeMessage = {
|
|
|
208
209
|
[HardwareErrorCode.BleLocationServicesDisabled]: 'Location Services disabled',
|
|
209
210
|
[HardwareErrorCode.BleTimeoutError]: 'The connection has timed out unexpectedly.',
|
|
210
211
|
[HardwareErrorCode.BleForceCleanRunPromise]: 'Force clean Bluetooth run promise',
|
|
212
|
+
[HardwareErrorCode.BleDeviceBondError]: 'Bluetooth pairing failed',
|
|
211
213
|
[HardwareErrorCode.RuntimeError]: 'Runtime error',
|
|
212
214
|
[HardwareErrorCode.PinInvalid]: 'Pin invalid',
|
|
213
215
|
[HardwareErrorCode.PinCancelled]: 'Pin cancelled',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
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": "15813366c00e813f8a7e06b4d8ffa70a2862e67d"
|
|
29
29
|
}
|
package/src/HardwareError.ts
CHANGED
|
@@ -258,6 +258,7 @@ export const HardwareErrorCode = {
|
|
|
258
258
|
BleLocationServicesDisabled: 712,
|
|
259
259
|
BleTimeoutError: 713,
|
|
260
260
|
BleForceCleanRunPromise: 714,
|
|
261
|
+
BleDeviceBondError: 715,
|
|
261
262
|
|
|
262
263
|
/**
|
|
263
264
|
* Hardware runtiome errors
|
|
@@ -422,6 +423,7 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
|
422
423
|
[HardwareErrorCode.BleLocationServicesDisabled]: 'Location Services disabled',
|
|
423
424
|
[HardwareErrorCode.BleTimeoutError]: 'The connection has timed out unexpectedly.',
|
|
424
425
|
[HardwareErrorCode.BleForceCleanRunPromise]: 'Force clean Bluetooth run promise',
|
|
426
|
+
[HardwareErrorCode.BleDeviceBondError]: 'Bluetooth pairing failed',
|
|
425
427
|
|
|
426
428
|
/**
|
|
427
429
|
* Runtime Error
|