pdf-parser.js 5.3.0 → 5.3.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.
|
@@ -260,7 +260,8 @@ const SYMBOL_GLYPH_NAMES = [
|
|
|
260
260
|
];
|
|
261
261
|
function symbolGlyphName(code) {
|
|
262
262
|
const name = SYMBOL_GLYPH_NAMES[code];
|
|
263
|
-
|
|
263
|
+
if (name === void 0) return;
|
|
264
|
+
return name === "" ? void 0 : name;
|
|
264
265
|
}
|
|
265
266
|
const ZAPFDINGBATS_GLYPH_NAMES = [
|
|
266
267
|
"",
|
|
@@ -522,7 +523,8 @@ const ZAPFDINGBATS_GLYPH_NAMES = [
|
|
|
522
523
|
];
|
|
523
524
|
function zapfDingbatsGlyphName(code) {
|
|
524
525
|
const name = ZAPFDINGBATS_GLYPH_NAMES[code];
|
|
525
|
-
|
|
526
|
+
if (name === void 0) return;
|
|
527
|
+
return name === "" ? void 0 : name;
|
|
526
528
|
}
|
|
527
529
|
//#endregion
|
|
528
530
|
exports.SYMBOL_GLYPH_NAMES = SYMBOL_GLYPH_NAMES;
|
|
@@ -259,7 +259,8 @@ const SYMBOL_GLYPH_NAMES = [
|
|
|
259
259
|
];
|
|
260
260
|
function symbolGlyphName(code) {
|
|
261
261
|
const name = SYMBOL_GLYPH_NAMES[code];
|
|
262
|
-
|
|
262
|
+
if (name === void 0) return;
|
|
263
|
+
return name === "" ? void 0 : name;
|
|
263
264
|
}
|
|
264
265
|
const ZAPFDINGBATS_GLYPH_NAMES = [
|
|
265
266
|
"",
|
|
@@ -521,7 +522,8 @@ const ZAPFDINGBATS_GLYPH_NAMES = [
|
|
|
521
522
|
];
|
|
522
523
|
function zapfDingbatsGlyphName(code) {
|
|
523
524
|
const name = ZAPFDINGBATS_GLYPH_NAMES[code];
|
|
524
|
-
|
|
525
|
+
if (name === void 0) return;
|
|
526
|
+
return name === "" ? void 0 : name;
|
|
525
527
|
}
|
|
526
528
|
//#endregion
|
|
527
529
|
export { SYMBOL_GLYPH_NAMES, ZAPFDINGBATS_GLYPH_NAMES, symbolGlyphName, zapfDingbatsGlyphName };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdf-parser.js",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.1",
|
|
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": {
|