@onekeyfe/hd-transport 0.0.5 → 0.0.8
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/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/package.json +2 -2
- package/src/constants.ts +4 -0
package/dist/constants.d.ts
CHANGED
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,KAAS,CAAC;AACvC,eAAO,MAAM,mBAAmB,KAAO,CAAC;AACxC,eAAO,MAAM,WAAW,QAAgB,CAAC;AACzC,eAAO,MAAM,WAAW,KAAK,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,KAAS,CAAC;AACvC,eAAO,MAAM,mBAAmB,KAAO,CAAC;AACxC,eAAO,MAAM,WAAW,QAAgB,CAAC;AACzC,eAAO,MAAM,WAAW,KAAK,CAAC;AAI9B,eAAO,MAAM,kBAAkB,IAAI,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2776,6 +2776,7 @@ declare const MESSAGE_TOP_CHAR = 63;
|
|
|
2776
2776
|
declare const MESSAGE_HEADER_BYTE = 35;
|
|
2777
2777
|
declare const HEADER_SIZE: number;
|
|
2778
2778
|
declare const BUFFER_SIZE = 63;
|
|
2779
|
+
declare const COMMON_HEADER_SIZE = 6;
|
|
2779
2780
|
|
|
2780
2781
|
declare const _default: {
|
|
2781
2782
|
check: typeof check;
|
|
@@ -2785,4 +2786,4 @@ declare const _default: {
|
|
|
2785
2786
|
parseConfigure: typeof parseConfigure;
|
|
2786
2787
|
};
|
|
2787
2788
|
|
|
2788
|
-
export { AcquireInput, BUFFER_SIZE, HEADER_SIZE, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, MessageFromOneKey, messages as Messages, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyMobileDeviceInfo, Transport, _default as default };
|
|
2789
|
+
export { AcquireInput, BUFFER_SIZE, COMMON_HEADER_SIZE, HEADER_SIZE, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, MessageFromOneKey, messages as Messages, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyMobileDeviceInfo, Transport, _default as default };
|
package/dist/index.js
CHANGED
|
@@ -225,6 +225,7 @@ const MESSAGE_TOP_CHAR = 0x003f;
|
|
|
225
225
|
const MESSAGE_HEADER_BYTE = 0x23;
|
|
226
226
|
const HEADER_SIZE = 1 + 1 + 4 + 2;
|
|
227
227
|
const BUFFER_SIZE = 63;
|
|
228
|
+
const COMMON_HEADER_SIZE = 6;
|
|
228
229
|
|
|
229
230
|
const readHeader = (buffer) => {
|
|
230
231
|
const typeId = buffer.readUint16();
|
|
@@ -739,6 +740,7 @@ var index = {
|
|
|
739
740
|
};
|
|
740
741
|
|
|
741
742
|
exports.BUFFER_SIZE = BUFFER_SIZE;
|
|
743
|
+
exports.COMMON_HEADER_SIZE = COMMON_HEADER_SIZE;
|
|
742
744
|
exports.HEADER_SIZE = HEADER_SIZE;
|
|
743
745
|
exports.MESSAGE_HEADER_BYTE = MESSAGE_HEADER_BYTE;
|
|
744
746
|
exports.MESSAGE_TOP_CHAR = MESSAGE_TOP_CHAR;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "OneKey",
|
|
6
6
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"long": "^4.0.0",
|
|
25
25
|
"protobufjs": "^6.11.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "edfa30382fdf36182bc389c8ff1dd1a689096592"
|
|
28
28
|
}
|