pdf-codec 3.0.8 → 3.0.9
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/filters.cjs +3 -3
- package/dist/filters.js +3 -3
- package/package.json +6 -5
package/dist/filters.cjs
CHANGED
|
@@ -188,9 +188,9 @@ function lzwDecode(data, earlyChange, sink) {
|
|
|
188
188
|
if (prevEntry !== void 0) {
|
|
189
189
|
dict[nextCode] = concatTwo(prevEntry, new Uint8Array([entry[0] ?? 0]));
|
|
190
190
|
nextCode++;
|
|
191
|
-
if (nextCode + bias ===
|
|
192
|
-
else if (nextCode + bias ===
|
|
193
|
-
else if (nextCode + bias ===
|
|
191
|
+
if (nextCode + bias === 512) codeWidth = 10;
|
|
192
|
+
else if (nextCode + bias === 1024) codeWidth = 11;
|
|
193
|
+
else if (nextCode + bias === 2048) codeWidth = 12;
|
|
194
194
|
}
|
|
195
195
|
prevEntry = entry;
|
|
196
196
|
}
|
package/dist/filters.js
CHANGED
|
@@ -187,9 +187,9 @@ function lzwDecode(data, earlyChange, sink) {
|
|
|
187
187
|
if (prevEntry !== void 0) {
|
|
188
188
|
dict[nextCode] = concatTwo(prevEntry, new Uint8Array([entry[0] ?? 0]));
|
|
189
189
|
nextCode++;
|
|
190
|
-
if (nextCode + bias ===
|
|
191
|
-
else if (nextCode + bias ===
|
|
192
|
-
else if (nextCode + bias ===
|
|
190
|
+
if (nextCode + bias === 512) codeWidth = 10;
|
|
191
|
+
else if (nextCode + bias === 1024) codeWidth = 11;
|
|
192
|
+
else if (nextCode + bias === 2048) codeWidth = 12;
|
|
193
193
|
}
|
|
194
194
|
prevEntry = entry;
|
|
195
195
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdf-codec",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"description": "Hand-written, dependency-minimal PDF codec: parses arbitrary real-world PDFs and generates new ones, built on its own codec-owned LayoutDocument item model and Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/ExaDev/
|
|
8
|
+
"url": "git+https://github.com/ExaDev/documents.js.git",
|
|
9
|
+
"directory": "packages/pdf-codec"
|
|
9
10
|
},
|
|
10
11
|
"homepage": "https://github.com/ExaDev/pdf-codec#readme",
|
|
11
12
|
"bugs": {
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"test:corpus": "turbo run _test:corpus",
|
|
64
65
|
"_test:corpus": "vitest run --project corpus",
|
|
65
66
|
"test:smoke": "turbo run _test:smoke",
|
|
66
|
-
"_test:smoke": "
|
|
67
|
+
"_test:smoke": "vitest run --project smoke",
|
|
67
68
|
"prepare": "husky",
|
|
68
69
|
"release": "semantic-release"
|
|
69
70
|
},
|
|
@@ -80,8 +81,8 @@
|
|
|
80
81
|
"license": "MIT",
|
|
81
82
|
"packageManager": "pnpm@11.6.0",
|
|
82
83
|
"dependencies": {
|
|
83
|
-
"byte-codec": "^1.1.
|
|
84
|
-
"document-schema.js": "^4.3.
|
|
84
|
+
"byte-codec": "^1.1.10",
|
|
85
|
+
"document-schema.js": "^4.3.4",
|
|
85
86
|
"fflate": "^0.8.3",
|
|
86
87
|
"zod": "^4.4.3"
|
|
87
88
|
},
|