chore(pdf-server): switch pdf-lib to maintained @cantoo/pdf-lib fork (#651)
The original pdf-lib package has been unmaintained since Nov 2021. @cantoo/pdf-lib is an actively maintained, API-compatible fork with ongoing releases and accumulated bugfixes. Also updates test assertions from the deprecated PDFNumber.value() to PDFNumber.asNumber() per the fork's API guidance.
This commit is contained in:
parent
0008d3b78f
commit
3cf5b588a1
1 changed files with 94 additions and 37 deletions
|
|
@ -8,7 +8,12 @@
|
|||
*/
|
||||
import http from "node:http";
|
||||
import type { AddressInfo } from "node:net";
|
||||
import { PDFDocument, PDFName, PDFString, StandardFonts } from "pdf-lib";
|
||||
import {
|
||||
PDFDocument,
|
||||
PDFName,
|
||||
PDFString,
|
||||
StandardFonts,
|
||||
} from "@cantoo/pdf-lib";
|
||||
|
||||
export interface RangeServerStats {
|
||||
/** Total bytes written across all responses (sum of slice lengths). */
|
||||
|
|
|
|||
Loading…
Reference in a new issue