libshv-js 3.6.0 → 3.6.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libshv-js",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "description": "Typescript implementation of libshv",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
package/src/chainpack.ts CHANGED
@@ -85,7 +85,7 @@ const significantBitsCount = (num: bigint) => {
85
85
  class ChainPackReader {
86
86
  ctx: UnpackContext;
87
87
 
88
- constructor(data: ArrayBuffer | Uint8Array | UnpackContext) {
88
+ constructor(data: ArrayBuffer | UnpackContext) {
89
89
  this.ctx = data instanceof UnpackContext ? data : new UnpackContext(data);
90
90
  }
91
91
 
package/src/cpcontext.ts CHANGED
@@ -2,7 +2,7 @@ class UnpackContext {
2
2
  index: number;
3
3
  private readonly data: Uint8Array;
4
4
 
5
- constructor(buf: ArrayBuffer) {
5
+ constructor(buf: ArrayBufferLike) {
6
6
  this.data = new Uint8Array(buf);
7
7
  this.index = 0;
8
8
  }