@onekeyfe/hd-shared 0.1.59 → 0.2.0
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
|
@@ -64,6 +64,7 @@ export declare const HardwareErrorCode: {
|
|
|
64
64
|
readonly BleWriteCharacteristicError: 710;
|
|
65
65
|
readonly BleAlreadyConnected: 711;
|
|
66
66
|
readonly BleLocationServicesDisabled: 712;
|
|
67
|
+
readonly BleTimeoutError: 713;
|
|
67
68
|
readonly RuntimeError: 800;
|
|
68
69
|
readonly PinInvalid: 801;
|
|
69
70
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwQpB,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,+BAkG7B,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
|
@@ -73,6 +73,7 @@ declare const HardwareErrorCode: {
|
|
|
73
73
|
readonly BleWriteCharacteristicError: 710;
|
|
74
74
|
readonly BleAlreadyConnected: 711;
|
|
75
75
|
readonly BleLocationServicesDisabled: 712;
|
|
76
|
+
readonly BleTimeoutError: 713;
|
|
76
77
|
readonly RuntimeError: 800;
|
|
77
78
|
readonly PinInvalid: 801;
|
|
78
79
|
readonly PinCancelled: 802;
|
package/dist/index.js
CHANGED
|
@@ -133,6 +133,7 @@ const HardwareErrorCode = {
|
|
|
133
133
|
BleWriteCharacteristicError: 710,
|
|
134
134
|
BleAlreadyConnected: 711,
|
|
135
135
|
BleLocationServicesDisabled: 712,
|
|
136
|
+
BleTimeoutError: 713,
|
|
136
137
|
RuntimeError: 800,
|
|
137
138
|
PinInvalid: 801,
|
|
138
139
|
PinCancelled: 802,
|
|
@@ -197,6 +198,7 @@ const HardwareErrorCodeMessage = {
|
|
|
197
198
|
[HardwareErrorCode.BleWriteCharacteristicError]: 'Write Characteristic Error',
|
|
198
199
|
[HardwareErrorCode.BleAlreadyConnected]: 'Already connected to device',
|
|
199
200
|
[HardwareErrorCode.BleLocationServicesDisabled]: 'Location Services disabled',
|
|
201
|
+
[HardwareErrorCode.BleTimeoutError]: 'The connection has timed out unexpectedly.',
|
|
200
202
|
[HardwareErrorCode.RuntimeError]: 'Runtime error',
|
|
201
203
|
[HardwareErrorCode.PinInvalid]: 'Pin invalid',
|
|
202
204
|
[HardwareErrorCode.PinCancelled]: 'Pin cancelled',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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": "7d63bbcdd05b277e361b8f6ed52c9c59973c40fa"
|
|
29
29
|
}
|
package/src/HardwareError.ts
CHANGED
|
@@ -244,6 +244,7 @@ export const HardwareErrorCode = {
|
|
|
244
244
|
BleWriteCharacteristicError: 710,
|
|
245
245
|
BleAlreadyConnected: 711,
|
|
246
246
|
BleLocationServicesDisabled: 712,
|
|
247
|
+
BleTimeoutError: 713,
|
|
247
248
|
|
|
248
249
|
/**
|
|
249
250
|
* Hardware runtiome errors
|
|
@@ -388,6 +389,7 @@ export const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping = {
|
|
|
388
389
|
[HardwareErrorCode.BleWriteCharacteristicError]: 'Write Characteristic Error',
|
|
389
390
|
[HardwareErrorCode.BleAlreadyConnected]: 'Already connected to device',
|
|
390
391
|
[HardwareErrorCode.BleLocationServicesDisabled]: 'Location Services disabled',
|
|
392
|
+
[HardwareErrorCode.BleTimeoutError]: 'The connection has timed out unexpectedly.',
|
|
391
393
|
|
|
392
394
|
/**
|
|
393
395
|
* Runtime Error
|