@thi.ng/bitstream 2.2.30 → 2.2.33

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-10-23T07:37:37Z
3
+ - **Last updated**: 2023-11-24T09:35:46Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -57,7 +57,7 @@ For Node.js REPL:
57
57
  const bitstream = await import("@thi.ng/bitstream");
58
58
  ```
59
59
 
60
- Package sizes (brotli'd, pre-treeshake): ESM: 1.21 KB
60
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.33 KB
61
61
 
62
62
  ## Dependencies
63
63
 
package/input.js CHANGED
@@ -2,6 +2,12 @@ import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
2
2
  import { illegalState } from "@thi.ng/errors/illegal-state";
3
3
  const U32 = Math.pow(2, 32);
4
4
  export class BitInputStream {
5
+ buffer;
6
+ start;
7
+ limit;
8
+ pos;
9
+ bitPos;
10
+ bit;
5
11
  constructor(buffer, offset = 0, limit = buffer.length << 3) {
6
12
  this.buffer = buffer;
7
13
  this.start = offset;
package/output.js CHANGED
@@ -3,6 +3,11 @@ import { BitInputStream } from "./input.js";
3
3
  const DEFAULT_BUF_SIZE = 0x10;
4
4
  const U32 = Math.pow(2, 32);
5
5
  export class BitOutputStream {
6
+ buffer;
7
+ start;
8
+ pos;
9
+ bit;
10
+ bitPos;
6
11
  constructor(buffer, offset = 0) {
7
12
  this.buffer =
8
13
  typeof buffer === "undefined"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/bitstream",
3
- "version": "2.2.30",
3
+ "version": "2.2.33",
4
4
  "description": "ES6 iterator based read/write bit streams with support for variable word widths",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -28,21 +28,20 @@
28
28
  "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc",
29
29
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && tools:readme",
32
- "doc:stats": "tools:module-stats",
31
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
33
32
  "pub": "yarn npm publish --access public",
34
- "test": "testament test"
33
+ "test": "bun test"
35
34
  },
36
35
  "dependencies": {
37
- "@thi.ng/errors": "^2.4.0"
36
+ "@thi.ng/errors": "^2.4.3"
38
37
  },
39
38
  "devDependencies": {
40
- "@microsoft/api-extractor": "^7.38.0",
41
- "@thi.ng/testament": "^0.3.24",
39
+ "@microsoft/api-extractor": "^7.38.3",
40
+ "@thi.ng/testament": "^0.4.2",
42
41
  "rimraf": "^5.0.5",
43
42
  "tools": "^0.0.1",
44
- "typedoc": "^0.25.2",
45
- "typescript": "^5.2.2"
43
+ "typedoc": "^0.25.3",
44
+ "typescript": "^5.3.2"
46
45
  },
47
46
  "keywords": [
48
47
  "binary",
@@ -81,5 +80,5 @@
81
80
  "rle-pack"
82
81
  ]
83
82
  },
84
- "gitHead": "dc7eeaba72f3c3977f2d6cc201e595ed6d68e2ad\n"
83
+ "gitHead": "f6de41f4991704fdbbb2899bb430ed4f4f6efab0\n"
85
84
  }