Skip to content

Commit 9abee31

Browse files
authored
chore: update dependencies and improve documentation (#9)
1 parent 32af451 commit 9abee31

File tree

5 files changed

+323
-3872
lines changed

5 files changed

+323
-3872
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ coverage/
55
ts3.4/
66
build/
77
dist/
8+
cjs/
89
es/
10+
.idea/
911

1012
tsBuildInfo.json
1113
flamegraph.html
@@ -15,4 +17,4 @@ isolate*.log
1517
out.pdf
1618
*.tgz
1719

18-
.vscode/settings.json
20+
.vscode/settings.json

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,3 +1502,8 @@ See this [StackOverflow answer](https://stackoverflow.com/a/48268766) for a grea
15021502
## License
15031503

15041504
[MIT](LICENSE.md)
1505+
1506+
## Forks
1507+
1508+
https://github.com/Hopding/pdf-lib -> original fork
1509+
https://github.com/ParadoxAi/pdf-lib -> sync with this fork with latest deps patch 2025-10-07

cjs/utils/arrays.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export declare const reverseArray: (array: Uint8Array) => Uint8Array;
1111
export declare const sum: (array: number[] | Uint8Array) => number;
1212
export declare const range: (start: number, end: number) => number[];
1313
export declare const pluckIndices: <T>(arr: T[], indices: number[]) => T[];
14-
export declare const canBeConvertedToUint8Array: (input: any) => input is string | Uint8Array | ArrayBuffer;
14+
export declare const canBeConvertedToUint8Array: (input: any) => input is string | ArrayBuffer | Uint8Array;
1515
export declare const toUint8Array: (input: string | ArrayBuffer | Uint8Array) => Uint8Array;
1616
//# sourceMappingURL=arrays.d.ts.map

package.json

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,7 @@
5656
"build:downlevel-dts": "rimraf ts3.4 && yarn downlevel-dts . ts3.4 && rimraf ts3.4/scratchpad",
5757
"scratchpad:start": "ttsc --build scratchpad/tsconfig.json --watch",
5858
"scratchpad:run": "node scratchpad/build/scratchpad/index.js",
59-
"scratchpad:flame": "rimraf isolate*.log && node --prof scratchpad/build/scratchpad/index.js && node --prof-process --preprocess -j isolate*.log | flamebearer",
60-
"apps:node": "ttsc --build apps/node/tsconfig.json && node apps/node-build/index.js",
61-
"apps:deno": "deno run --allow-read --allow-write --allow-run apps/deno/index.ts",
62-
"apps:web": "http-server -c-1 .",
63-
"apps:web:mac": "bash -c 'sleep 1 && open http://localhost:8080/apps/web/test1.html' & yarn apps:web",
64-
"apps:rn:ios": "cd apps/rn && yarn add ./../.. --force && react-native run-ios",
65-
"apps:rn:android": "yarn apps:rn:emulator & cd apps/rn && yarn add ./../.. --force && react-native run-android",
66-
"apps:rn:emulator": "emulator -avd \"$(emulator -list-avds | head -n 1)\" & bash -c 'sleep 5 && adb reverse tcp:8080 tcp:8080 && adb reverse tcp:8081 tcp:8081'"
59+
"scratchpad:flame": "rimraf isolate*.log && node --prof scratchpad/build/scratchpad/index.js && node --prof-process --preprocess -j isolate*.log | flamebearer"
6760
},
6861
"main": "cjs/index.js",
6962
"module": "es/index.js",
@@ -95,34 +88,31 @@
9588
},
9689
"devDependencies": {
9790
"@pdf-lib/fontkit": "^1.1.0",
98-
"@rollup/plugin-commonjs": "^13.0.0",
99-
"@rollup/plugin-json": "^4.1.0",
100-
"@rollup/plugin-node-resolve": "^8.0.1",
101-
"@types/jest": "^26.0.0",
102-
"@types/node-fetch": "^2.5.7",
91+
"@rollup/plugin-commonjs": "^23.0.2",
92+
"@rollup/plugin-json": "^6.1.0",
93+
"@rollup/plugin-node-resolve": "^14.1.0",
94+
"@types/node-fetch": "^2.6.13",
10395
"@types/pako": "^1.0.1",
10496
"@zerollup/ts-transform-paths": "^1.7.18",
105-
"downlevel-dts": "^0.5.0",
97+
"downlevel-dts": "^0.11.0",
10698
"flamebearer": "^1.1.3",
107-
"http-server": "^0.12.3",
108-
"jest": "^26.0.1",
109-
"node-fetch": "^2.6.0",
110-
"prettier": "^2.0.5",
99+
"node-fetch": "^2.6.7",
100+
"prettier": "^2.8.8",
111101
"rimraf": "^3.0.2",
112-
"rollup": "^2.17.1",
102+
"rollup": "2.79.2",
113103
"rollup-plugin-terser": "^6.1.0",
114-
"ts-jest": "^26.1.0",
115-
"tslint": "^6.1.2",
116-
"tslint-config-prettier": "^1.18.0",
117-
"ttypescript": "^1.5.10",
104+
"ttypescript": "^1.5.15",
118105
"typescript": "^3.9.5"
119106
},
120107
"license": "MIT",
121108
"private": false,
122109
"homepage": "https://pdf-lib.js.org",
123-
"repository": "git+https://github.com/Hopding/pdf-lib.git",
110+
"repository": {
111+
"type": "git",
112+
"url": "git+https://github.com/mattrglobal/pdf-lib"
113+
},
124114
"bugs": {
125-
"url": "https://github.com/Hopding/pdf-lib/issues"
115+
"url": "https://github.com/mattrglobal/pdf-lib/issues"
126116
},
127117
"keywords": [
128118
"pdf-lib",
@@ -137,5 +127,9 @@
137127
"typescript",
138128
"javascript",
139129
"library"
140-
]
130+
],
131+
"directories": {
132+
"doc": "docs",
133+
"test": "tests"
134+
}
141135
}

0 commit comments

Comments
 (0)