pdf-parser.js 5.2.16 → 5.2.17
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/cff.cjs +1 -2
- package/dist/cff.js +1 -2
- package/package.json +1 -1
package/dist/cff.cjs
CHANGED
|
@@ -32,7 +32,6 @@ const REAL_NIBBLE_DECIMAL_POINT = 10;
|
|
|
32
32
|
const REAL_NIBBLE_EXPONENT = 11;
|
|
33
33
|
const REAL_NIBBLE_NEGATIVE_EXPONENT = 12;
|
|
34
34
|
const REAL_NIBBLE_RESERVED = 13;
|
|
35
|
-
const REAL_NIBBLE_MINUS = 14;
|
|
36
35
|
const REAL_NIBBLE_TERMINATOR = 15;
|
|
37
36
|
const NIBBLES_PER_BYTE = 2;
|
|
38
37
|
const HIGH_NIBBLE_SHIFT = 4;
|
|
@@ -85,7 +84,7 @@ function readRealOperand(data, start) {
|
|
|
85
84
|
else if (nibble === REAL_NIBBLE_DECIMAL_POINT) text += ".";
|
|
86
85
|
else if (nibble === REAL_NIBBLE_EXPONENT) text += "E";
|
|
87
86
|
else if (nibble === REAL_NIBBLE_NEGATIVE_EXPONENT) text += "E-";
|
|
88
|
-
else
|
|
87
|
+
else text += "-";
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
90
|
}
|
package/dist/cff.js
CHANGED
|
@@ -31,7 +31,6 @@ const REAL_NIBBLE_DECIMAL_POINT = 10;
|
|
|
31
31
|
const REAL_NIBBLE_EXPONENT = 11;
|
|
32
32
|
const REAL_NIBBLE_NEGATIVE_EXPONENT = 12;
|
|
33
33
|
const REAL_NIBBLE_RESERVED = 13;
|
|
34
|
-
const REAL_NIBBLE_MINUS = 14;
|
|
35
34
|
const REAL_NIBBLE_TERMINATOR = 15;
|
|
36
35
|
const NIBBLES_PER_BYTE = 2;
|
|
37
36
|
const HIGH_NIBBLE_SHIFT = 4;
|
|
@@ -84,7 +83,7 @@ function readRealOperand(data, start) {
|
|
|
84
83
|
else if (nibble === REAL_NIBBLE_DECIMAL_POINT) text += ".";
|
|
85
84
|
else if (nibble === REAL_NIBBLE_EXPONENT) text += "E";
|
|
86
85
|
else if (nibble === REAL_NIBBLE_NEGATIVE_EXPONENT) text += "E-";
|
|
87
|
-
else
|
|
86
|
+
else text += "-";
|
|
88
87
|
}
|
|
89
88
|
}
|
|
90
89
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdf-parser.js",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.17",
|
|
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": {
|