@onekeyfe/hd-transport 0.0.6 → 0.0.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.
@@ -2,4 +2,5 @@ export declare const MESSAGE_TOP_CHAR = 63;
2
2
  export declare const MESSAGE_HEADER_BYTE = 35;
3
3
  export declare const HEADER_SIZE: number;
4
4
  export declare const BUFFER_SIZE = 63;
5
+ export declare const COMMON_HEADER_SIZE = 6;
5
6
  //# sourceMappingURL=constants.d.ts.map
@@ -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.6",
3
+ "version": "0.0.7",
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": "b37ddf4e02812f40a01ec38ffef2ff6cdcad4bbc"
27
+ "gitHead": "7be7677368fcb50f411891f009367424ea77df33"
28
28
  }
package/src/constants.ts CHANGED
@@ -2,3 +2,7 @@ export const MESSAGE_TOP_CHAR = 0x003f;
2
2
  export const MESSAGE_HEADER_BYTE = 0x23;
3
3
  export const HEADER_SIZE = 1 + 1 + 4 + 2;
4
4
  export const BUFFER_SIZE = 63;
5
+ /**
6
+ * exclude ?##
7
+ */
8
+ export const COMMON_HEADER_SIZE = 6;