byte-codec 1.0.8 → 1.0.10
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/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -3,12 +3,12 @@ declare class ByteWriter {
|
|
|
3
3
|
private readonly chunks;
|
|
4
4
|
private byteLength;
|
|
5
5
|
get length(): number;
|
|
6
|
-
writeBytes(bytes: Uint8Array<
|
|
6
|
+
writeBytes(bytes: Uint8Array<ArrayBufferLike>): void;
|
|
7
7
|
writeByte(byte: number): void;
|
|
8
8
|
writeAscii(text: string): void;
|
|
9
9
|
toBytes(): Uint8Array<ArrayBuffer>;
|
|
10
10
|
}
|
|
11
|
-
declare function concatBytes(chunks: readonly Uint8Array<
|
|
11
|
+
declare function concatBytes(chunks: readonly Uint8Array<ArrayBufferLike>[]): Uint8Array<ArrayBuffer>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/bytes/reader.d.ts
|
|
14
14
|
declare function isAsciiWhitespace(byte: number | undefined): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ declare class ByteWriter {
|
|
|
3
3
|
private readonly chunks;
|
|
4
4
|
private byteLength;
|
|
5
5
|
get length(): number;
|
|
6
|
-
writeBytes(bytes: Uint8Array<
|
|
6
|
+
writeBytes(bytes: Uint8Array<ArrayBufferLike>): void;
|
|
7
7
|
writeByte(byte: number): void;
|
|
8
8
|
writeAscii(text: string): void;
|
|
9
9
|
toBytes(): Uint8Array<ArrayBuffer>;
|
|
10
10
|
}
|
|
11
|
-
declare function concatBytes(chunks: readonly Uint8Array<
|
|
11
|
+
declare function concatBytes(chunks: readonly Uint8Array<ArrayBufferLike>[]): Uint8Array<ArrayBuffer>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/bytes/reader.d.ts
|
|
14
14
|
declare function isAsciiWhitespace(byte: number | undefined): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "byte-codec",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "Generic byte-level primitives (ByteWriter, ByteReader, CRC-32, deflate/inflate) and PNG/JPEG image encoding/decoding with zero PDF knowledge — the shared utility package for the documents.js family.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"prepublishOnly": "pnpm run lint && pnpm run typecheck && tsdown && publint && attw --pack",
|
|
51
51
|
"lint": "eslint . --fix --cache --max-warnings 0",
|
|
52
52
|
"lint:check": "eslint . --max-warnings 0",
|
|
53
|
-
"typecheck": "tsc
|
|
53
|
+
"typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.node.json",
|
|
54
54
|
"test": "vitest run",
|
|
55
55
|
"test:watch": "vitest",
|
|
56
56
|
"test:workers": "vitest run --config vitest.workers.config.ts",
|