unpdf 0.9.0 → 0.10.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.
@@ -519,9 +519,9 @@ export type PDFWorkerParameters = {
519
519
  /** @type {string} */
520
520
  export const build: string;
521
521
  export const DefaultCanvasFactory: typeof DOMCanvasFactory | typeof NodeCanvasFactory;
522
- export const DefaultCMapReaderFactory: typeof DOMCMapReaderFactory;
522
+ export const DefaultCMapReaderFactory: typeof NodeCMapReaderFactory;
523
523
  export const DefaultFilterFactory: typeof DOMFilterFactory | typeof NodeFilterFactory;
524
- export const DefaultStandardFontDataFactory: typeof DOMStandardFontDataFactory;
524
+ export const DefaultStandardFontDataFactory: typeof NodeStandardFontDataFactory;
525
525
  /**
526
526
  * @typedef { Int8Array | Uint8Array | Uint8ClampedArray |
527
527
  * Int16Array | Uint16Array |
@@ -736,7 +736,7 @@ export class PDFDataRangeTransport {
736
736
  * after which individual pages can be rendered.
737
737
  */
738
738
  export class PDFDocumentLoadingTask {
739
- static "__#33@#docId": number;
739
+ static "__#34@#docId": number;
740
740
  _capability: PromiseCapability;
741
741
  _transport: any;
742
742
  _worker: any;
@@ -1334,7 +1334,7 @@ export class PDFPageProxy {
1334
1334
  * @param {PDFWorkerParameters} params - The worker initialization parameters.
1335
1335
  */
1336
1336
  export class PDFWorker {
1337
- static "__#36@#workerPorts": any;
1337
+ static "__#37@#workerPorts": any;
1338
1338
  /**
1339
1339
  * @param {PDFWorkerParameters} params - The worker initialization parameters.
1340
1340
  */
@@ -1344,7 +1344,7 @@ export class PDFWorker {
1344
1344
  * @type {string}
1345
1345
  */
1346
1346
  static get workerSrc(): string;
1347
- static get "__#36@#mainThreadWorkerMessageHandler"(): any;
1347
+ static get "__#37@#mainThreadWorkerMessageHandler"(): any;
1348
1348
  static get _setupFakeWorkerGlobal(): any;
1349
1349
  constructor({ name, port, verbosity, }?: {
1350
1350
  name?: null | undefined;
@@ -1424,10 +1424,10 @@ import { OptionalContentConfig } from "./optional_content_config.js";
1424
1424
  import { PrintAnnotationStorage } from "./annotation_storage.js";
1425
1425
  import { DOMCanvasFactory } from "./display_utils.js";
1426
1426
  import { NodeCanvasFactory } from "./node_utils";
1427
- import { DOMCMapReaderFactory } from "./display_utils.js";
1427
+ import { NodeCMapReaderFactory } from "./node_utils";
1428
1428
  import { DOMFilterFactory } from "./display_utils.js";
1429
1429
  import { NodeFilterFactory } from "./node_utils";
1430
- import { DOMStandardFontDataFactory } from "./display_utils.js";
1430
+ import { NodeStandardFontDataFactory } from "./node_utils";
1431
1431
  import { PromiseCapability } from "../shared/util.js";
1432
1432
  import { AnnotationStorage } from "./annotation_storage.js";
1433
1433
  import { info } from "../shared/util.js";
@@ -71,7 +71,7 @@ export class DOMCMapReaderFactory extends BaseCMapReaderFactory {
71
71
  * @ignore
72
72
  */
73
73
  _fetchData(url: any, compressionType: any): Promise<{
74
- cMapData: any;
74
+ cMapData: Uint8Array;
75
75
  compressionType: any;
76
76
  }>;
77
77
  }
@@ -98,7 +98,7 @@ export class DOMStandardFontDataFactory extends BaseStandardFontDataFactory {
98
98
  /**
99
99
  * @ignore
100
100
  */
101
- _fetchData(url: any): Promise<any>;
101
+ _fetchData(url: any): Promise<Uint8Array>;
102
102
  }
103
103
  export class DOMSVGFactory extends BaseSVGFactory {
104
104
  /**
@@ -106,6 +106,7 @@ export class DOMSVGFactory extends BaseSVGFactory {
106
106
  */
107
107
  _createSVG(type: any): any;
108
108
  }
109
+ export function fetchData(url: any, type?: string): Promise<any>;
109
110
  export function getColorValues(colors: any): void;
110
111
  export function getCurrentTransform(ctx: any): any[];
111
112
  export function getCurrentTransformInverse(ctx: any): any[];
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Manage the SVGs drawn on top of the page canvas.
3
+ * It's important to have them directly on top of the canvas because we want to
4
+ * be able to use mix-blend-mode for some of them.
5
+ */
6
+ export class DrawLayer {
7
+ static get _svgFactory(): any;
8
+ static "__#42@#setBox"(element: any, { x, y, width, height }: {
9
+ x: any;
10
+ y: any;
11
+ width: any;
12
+ height: any;
13
+ }): void;
14
+ static "__#42@#extractPathFromHighlightOutlines"(polygons: any): string;
15
+ constructor({ pageIndex }: {
16
+ pageIndex: any;
17
+ });
18
+ pageIndex: any;
19
+ setParent(parent: any): void;
20
+ highlight({ outlines, box }: {
21
+ outlines: any;
22
+ box: any;
23
+ }, color: any, opacity: any): {
24
+ id: number;
25
+ clipPathId: string;
26
+ };
27
+ highlightOutline({ outlines, box }: {
28
+ outlines: any;
29
+ box: any;
30
+ }): number;
31
+ updateBox(id: any, box: any): void;
32
+ rotate(id: any, angle: any): void;
33
+ changeColor(id: any, color: any): void;
34
+ changeOpacity(id: any, opacity: any): void;
35
+ addClass(id: any, className: any): void;
36
+ removeClass(id: any, className: any): void;
37
+ remove(id: any): void;
38
+ destroy(): void;
39
+ #private;
40
+ }
@@ -70,7 +70,7 @@ export class AnnotationEditor {
70
70
  * @param {AnnotationEditorLayer} parent
71
71
  */
72
72
  static paste(item: DataTransferItem, parent: AnnotationEditorLayer): void;
73
- static "__#24@#rotatePoint"(x: any, y: any, angle: any): any[];
73
+ static "__#25@#rotatePoint"(x: any, y: any, angle: any): any[];
74
74
  /**
75
75
  * Deserialize the editor.
76
76
  * The result of the deserialization is a new editor.
@@ -114,7 +114,7 @@ export class AnnotationEditor {
114
114
  * @returns {Array}
115
115
  */
116
116
  get propertiesToUpdate(): any[];
117
- set _isDraggable(arg: boolean);
117
+ set _isDraggable(value: boolean);
118
118
  get _isDraggable(): boolean;
119
119
  /**
120
120
  * @returns {boolean} true if the editor handles the Enter key itself.
@@ -203,11 +203,13 @@ export class AnnotationEditor {
203
203
  getInitialTranslation(): Array<number>;
204
204
  addAltTextButton(): Promise<void>;
205
205
  altTextFinish(): void;
206
+ addEditToolbar(): void;
207
+ removeEditToolbar(): void;
206
208
  getClientDimensions(): DOMRect;
207
209
  /**
208
210
  * Set the alt text data.
209
211
  */
210
- set altTextData(arg: {
212
+ set altTextData({ altText, decorative }: {
211
213
  altText: string;
212
214
  decorative: boolean;
213
215
  });
@@ -343,7 +345,7 @@ export class AnnotationEditor {
343
345
  * When set to true, it means that this editor is currently edited.
344
346
  * @param {boolean} value
345
347
  */
346
- set isEditing(arg: boolean);
348
+ set isEditing(value: boolean);
347
349
  /**
348
350
  * If true then the editor is currently edited.
349
351
  * @type {boolean}
@@ -0,0 +1,26 @@
1
+ export class Outliner {
2
+ /**
3
+ * Construct an outliner.
4
+ * @param {Array<Object>} boxes - An array of axis-aligned rectangles.
5
+ * @param {number} borderWidth - The width of the border of the boxes, it
6
+ * allows to make the boxes bigger (or smaller).
7
+ * @param {number} innerMargin - The margin between the boxes and the
8
+ * outlines. It's important to not have a null innerMargin when we want to
9
+ * draw the outline else the stroked outline could be clipped because of its
10
+ * width.
11
+ * @param {boolean} isLTR - true if we're in LTR mode. It's used to determine
12
+ * the last point of the boxes.
13
+ */
14
+ constructor(boxes: Array<Object>, borderWidth?: number, innerMargin?: number, isLTR?: boolean);
15
+ getOutlines(): {
16
+ outlines: any[][];
17
+ box: {
18
+ x: number;
19
+ y: number;
20
+ width: number;
21
+ height: number;
22
+ lastPoint: any[];
23
+ };
24
+ };
25
+ #private;
26
+ }
@@ -0,0 +1,9 @@
1
+ export class EditorToolbar {
2
+ static "__#24@#pointerDown"(e: any): void;
3
+ constructor(editor: any);
4
+ render(): HTMLDivElement;
5
+ hide(): void;
6
+ show(): void;
7
+ remove(): void;
8
+ #private;
9
+ }
@@ -16,7 +16,9 @@ import { build } from "./display/api.js";
16
16
  import { CMapCompressionType } from "./shared/util.js";
17
17
  import { createValidAbsoluteUrl } from "./shared/util.js";
18
18
  import { DOMSVGFactory } from "./display/display_utils.js";
19
+ import { DrawLayer } from "./display/draw_layer.js";
19
20
  import { FeatureTest } from "./shared/util.js";
21
+ import { fetchData } from "./display/display_utils.js";
20
22
  import { getDocument } from "./display/api.js";
21
23
  import { getFilenameFromUrl } from "./display/display_utils.js";
22
24
  import { getPdfFilenameFromUrl } from "./display/display_utils.js";
@@ -30,6 +32,7 @@ import { MissingPDFException } from "./shared/util.js";
30
32
  import { noContextMenu } from "./display/display_utils.js";
31
33
  import { normalizeUnicode } from "./shared/util.js";
32
34
  import { OPS } from "./shared/util.js";
35
+ import { Outliner } from "./display/editor/outliner.js";
33
36
  import { PasswordResponses } from "./shared/util.js";
34
37
  import { PDFDataRangeTransport } from "./display/api.js";
35
38
  import { PDFDateString } from "./display/display_utils.js";
@@ -47,4 +50,4 @@ import { Util } from "./shared/util.js";
47
50
  import { VerbosityLevel } from "./shared/util.js";
48
51
  import { version } from "./display/api.js";
49
52
  import { XfaLayer } from "./display/xfa_layer.js";
50
- export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, build, CMapCompressionType, createValidAbsoluteUrl, DOMSVGFactory, FeatureTest, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getXfaPageViewport, GlobalWorkerOptions, ImageKind, InvalidPDFException, isDataScheme, isPdfFile, MissingPDFException, noContextMenu, normalizeUnicode, OPS, PasswordResponses, PDFDataRangeTransport, PDFDateString, PDFWorker, PermissionFlag, PixelsPerInch, PromiseCapability, RenderingCancelledException, renderTextLayer, setLayerDimensions, shadow, UnexpectedResponseException, updateTextLayer, Util, VerbosityLevel, version, XfaLayer };
53
+ export { AbortException, AnnotationEditorLayer, AnnotationEditorParamsType, AnnotationEditorType, AnnotationEditorUIManager, AnnotationLayer, AnnotationMode, build, CMapCompressionType, createValidAbsoluteUrl, DOMSVGFactory, DrawLayer, FeatureTest, fetchData, getDocument, getFilenameFromUrl, getPdfFilenameFromUrl, getXfaPageViewport, GlobalWorkerOptions, ImageKind, InvalidPDFException, isDataScheme, isPdfFile, MissingPDFException, noContextMenu, normalizeUnicode, OPS, Outliner, PasswordResponses, PDFDataRangeTransport, PDFDateString, PDFWorker, PermissionFlag, PixelsPerInch, PromiseCapability, RenderingCancelledException, renderTextLayer, setLayerDimensions, shadow, UnexpectedResponseException, updateTextLayer, Util, VerbosityLevel, version, XfaLayer };
@@ -44,6 +44,7 @@ export namespace AnnotationEditorType {
44
44
  let DISABLE: number;
45
45
  let NONE: number;
46
46
  let FREETEXT: number;
47
+ let HIGHLIGHT: number;
47
48
  let STAMP: number;
48
49
  let INK: number;
49
50
  }
@@ -103,7 +104,8 @@ export namespace AnnotationType {
103
104
  export let CIRCLE: number;
104
105
  export let POLYGON: number;
105
106
  export let POLYLINE: number;
106
- export let HIGHLIGHT: number;
107
+ let HIGHLIGHT_1: number;
108
+ export { HIGHLIGHT_1 as HIGHLIGHT };
107
109
  let UNDERLINE_1: number;
108
110
  export { UNDERLINE_1 as UNDERLINE };
109
111
  export let SQUIGGLY: number;
@@ -9,9 +9,9 @@ export class GenericL10n extends L10n implements IL10n {
9
9
  * translations.
10
10
  * @param {String} baseLang - The base language to use for translations.
11
11
  */
12
- static "__#47@#generateBundles"(defaultLang: string, baseLang: string): AsyncGenerator<any, void, unknown>;
13
- static "__#47@#createBundle"(lang: any, baseURL: any, paths: any): Promise<any>;
14
- static "__#47@#getPaths"(): Promise<{
12
+ static "__#50@#generateBundles"(defaultLang: string, baseLang: string): AsyncGenerator<any, void, unknown>;
13
+ static "__#50@#createBundle"(lang: any, baseURL: any, paths: any): Promise<any>;
14
+ static "__#50@#getPaths"(): Promise<{
15
15
  baseURL: any;
16
16
  paths: any;
17
17
  }>;
@@ -83,7 +83,7 @@ export class IPDFLinkService {
83
83
  /**
84
84
  * @param {number} value
85
85
  */
86
- set page(arg: number);
86
+ set page(value: number);
87
87
  /**
88
88
  * @type {number}
89
89
  */
@@ -91,7 +91,7 @@ export class IPDFLinkService {
91
91
  /**
92
92
  * @param {number} value
93
93
  */
94
- set rotation(arg: number);
94
+ set rotation(value: number);
95
95
  /**
96
96
  * @type {number}
97
97
  */
@@ -103,7 +103,7 @@ export class IPDFLinkService {
103
103
  /**
104
104
  * @param {boolean} value
105
105
  */
106
- set externalLinkEnabled(arg: boolean);
106
+ set externalLinkEnabled(value: boolean);
107
107
  /**
108
108
  * @type {boolean}
109
109
  */
@@ -1,11 +1,13 @@
1
1
  export type IL10n = import("./interfaces").IL10n;
2
2
  /** @typedef {import("./interfaces").IL10n} IL10n */
3
3
  /**
4
+ * NOTE: The L10n-implementations should use lowercase language-codes
5
+ * internally.
4
6
  * @implements {IL10n}
5
7
  */
6
8
  export class L10n implements IL10n {
7
- static "__#46@#fixupLangCode"(langCode: any): any;
8
- static "__#46@#isRTL"(lang: any): boolean;
9
+ static "__#49@#fixupLangCode"(langCode: any): any;
10
+ static "__#49@#isRTL"(lang: any): boolean;
9
11
  constructor({ lang, isRTL }: {
10
12
  lang: any;
11
13
  isRTL: any;
@@ -75,7 +75,7 @@ export namespace LinkTarget {
75
75
  * @implements {IPDFLinkService}
76
76
  */
77
77
  export class PDFLinkService implements IPDFLinkService {
78
- static "__#43@#isValidExplicitDestination"(dest: any): boolean;
78
+ static "__#46@#isValidExplicitDestination"(dest: any): boolean;
79
79
  /**
80
80
  * @param {PDFLinkServiceOptions} options
81
81
  */
@@ -99,7 +99,7 @@ export class PDFLinkService implements IPDFLinkService {
99
99
  /**
100
100
  * @param {number} value
101
101
  */
102
- set page(arg: number);
102
+ set page(value: number);
103
103
  /**
104
104
  * @type {number}
105
105
  */
@@ -107,7 +107,7 @@ export class PDFLinkService implements IPDFLinkService {
107
107
  /**
108
108
  * @param {number} value
109
109
  */
110
- set rotation(arg: number);
110
+ set rotation(value: number);
111
111
  /**
112
112
  * @type {number}
113
113
  */
@@ -182,7 +182,7 @@ export class SimpleLinkService implements IPDFLinkService {
182
182
  /**
183
183
  * @param {number} value
184
184
  */
185
- set page(arg: number);
185
+ set page(value: number);
186
186
  /**
187
187
  * @type {number}
188
188
  */
@@ -190,7 +190,7 @@ export class SimpleLinkService implements IPDFLinkService {
190
190
  /**
191
191
  * @param {number} value
192
192
  */
193
- set rotation(arg: number);
193
+ set rotation(value: number);
194
194
  /**
195
195
  * @type {number}
196
196
  */
@@ -124,7 +124,7 @@ export class PDFPageView implements IRenderableView {
124
124
  xfaLayer: XfaLayerBuilder | null;
125
125
  structTreeLayer: any;
126
126
  div: HTMLDivElement;
127
- set renderingState(arg: number);
127
+ set renderingState(state: number);
128
128
  get renderingState(): number;
129
129
  setPdfPage(pdfPage: any): void;
130
130
  destroy(): void;
@@ -1,7 +1,7 @@
1
1
  export class PDFSinglePageViewer extends PDFViewer {
2
- set scrollMode(arg: any);
2
+ set scrollMode(mode: any);
3
3
  _updateScrollMode(): void;
4
- set spreadMode(arg: any);
4
+ set spreadMode(mode: any);
5
5
  _updateSpreadMode(): void;
6
6
  }
7
7
  import { PDFViewer } from "./pdf_viewer.js";
@@ -118,7 +118,7 @@ export class PDFThumbnailView implements IRenderableView {
118
118
  * mode.
119
119
  */
120
120
  export class TempImageFactory {
121
- static "__#55@#tempCanvas": null;
121
+ static "__#58@#tempCanvas": null;
122
122
  static getCanvas(width: any, height: any): (HTMLCanvasElement | CanvasRenderingContext2D | null)[];
123
123
  static destroyCanvas(): void;
124
124
  }
@@ -70,7 +70,7 @@ export class PDFThumbnailViewer {
70
70
  private _getVisibleThumbs;
71
71
  scrollThumbnailIntoView(pageNumber: any): void;
72
72
  _currentPageNumber: any;
73
- set pagesRotation(arg: any);
73
+ set pagesRotation(rotation: any);
74
74
  get pagesRotation(): any;
75
75
  _pagesRotation: any;
76
76
  cleanup(): void;
@@ -227,7 +227,7 @@ export class PDFViewer {
227
227
  /**
228
228
  * @param {number} val - The page number.
229
229
  */
230
- set currentPageNumber(arg: number);
230
+ set currentPageNumber(val: number);
231
231
  /**
232
232
  * @type {number}
233
233
  */
@@ -241,7 +241,7 @@ export class PDFViewer {
241
241
  /**
242
242
  * @param {string} val - The page label.
243
243
  */
244
- set currentPageLabel(arg: string | null);
244
+ set currentPageLabel(val: string | null);
245
245
  /**
246
246
  * @type {string|null} Returns the current page label, or `null` if no page
247
247
  * labels exist.
@@ -250,7 +250,7 @@ export class PDFViewer {
250
250
  /**
251
251
  * @param {number} val - Scale of the pages in percents.
252
252
  */
253
- set currentScale(arg: number);
253
+ set currentScale(val: number);
254
254
  /**
255
255
  * @type {number}
256
256
  */
@@ -258,7 +258,7 @@ export class PDFViewer {
258
258
  /**
259
259
  * @param val - The scale of the pages (in percent or predefined value).
260
260
  */
261
- set currentScaleValue(arg: string);
261
+ set currentScaleValue(val: string);
262
262
  /**
263
263
  * @type {string}
264
264
  */
@@ -266,7 +266,7 @@ export class PDFViewer {
266
266
  /**
267
267
  * @param {number} rotation - The rotation of the pages (0, 90, 180, 270).
268
268
  */
269
- set pagesRotation(arg: number);
269
+ set pagesRotation(rotation: number);
270
270
  /**
271
271
  * @type {number}
272
272
  */
@@ -378,7 +378,7 @@ export class PDFViewer {
378
378
  * @param {Promise<OptionalContentConfig>} promise - A promise that is
379
379
  * resolved with an {@link OptionalContentConfig} instance.
380
380
  */
381
- set optionalContentConfigPromise(arg: Promise<import("../src/display/optional_content_config").OptionalContentConfig | null>);
381
+ set optionalContentConfigPromise(promise: Promise<import("../src/display/optional_content_config").OptionalContentConfig | null>);
382
382
  /**
383
383
  * @type {Promise<OptionalContentConfig | null>}
384
384
  */
@@ -388,7 +388,7 @@ export class PDFViewer {
388
388
  * laid out within the scrolling container.
389
389
  * The constants from {ScrollMode} should be used.
390
390
  */
391
- set scrollMode(arg: number);
391
+ set scrollMode(mode: number);
392
392
  /**
393
393
  * @type {number} One of the values in {ScrollMode}.
394
394
  */
@@ -399,7 +399,7 @@ export class PDFViewer {
399
399
  * even-number pages (unless `SpreadMode.NONE` is used).
400
400
  * The constants from {SpreadMode} should be used.
401
401
  */
402
- set spreadMode(arg: number);
402
+ set spreadMode(mode: number);
403
403
  /**
404
404
  * @type {number} One of the values in {SpreadMode}.
405
405
  */
@@ -445,14 +445,46 @@ export class PDFViewer {
445
445
  } | undefined): void;
446
446
  get containerTopLeft(): number[];
447
447
  /**
448
- * @param {number} mode - AnnotationEditor mode (None, FreeText, Ink, ...)
448
+ * @typedef {Object} AnnotationEditorModeOptions
449
+ * @property {number} mode - The editor mode (none, FreeText, ink, ...).
450
+ * @property {string|null} [editId] - ID of the existing annotation to edit.
451
+ * @property {boolean} [isFromKeyboard] - True if the mode change is due to a
452
+ * keyboard action.
449
453
  */
450
- set annotationEditorMode(arg: number);
451
454
  /**
452
- * @type {number}
455
+ * @param {AnnotationEditorModeOptions} options
453
456
  */
454
- get annotationEditorMode(): number;
455
- set annotationEditorParams(arg: any);
457
+ set annotationEditorMode({ mode, editId, isFromKeyboard }: {
458
+ /**
459
+ * - The editor mode (none, FreeText, ink, ...).
460
+ */
461
+ mode: number;
462
+ /**
463
+ * - ID of the existing annotation to edit.
464
+ */
465
+ editId?: string | null | undefined;
466
+ /**
467
+ * - True if the mode change is due to a
468
+ * keyboard action.
469
+ */
470
+ isFromKeyboard?: boolean | undefined;
471
+ });
472
+ get annotationEditorMode(): {
473
+ /**
474
+ * - The editor mode (none, FreeText, ink, ...).
475
+ */
476
+ mode: number;
477
+ /**
478
+ * - ID of the existing annotation to edit.
479
+ */
480
+ editId?: string | null | undefined;
481
+ /**
482
+ * - True if the mode change is due to a
483
+ * keyboard action.
484
+ */
485
+ isFromKeyboard?: boolean | undefined;
486
+ };
487
+ set annotationEditorParams({ type, value }: any);
456
488
  refresh(noUpdate?: boolean, updateArgs?: any): void;
457
489
  #private;
458
490
  }
@@ -201,7 +201,7 @@ export namespace PresentationModeState {
201
201
  }
202
202
  export class ProgressBar {
203
203
  constructor(bar: any);
204
- set percent(arg: number);
204
+ set percent(val: number);
205
205
  get percent(): number;
206
206
  setWidth(viewer: any): void;
207
207
  setDisableAutoFetch(delay?: number): void;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "unpdf",
3
3
  "type": "module",
4
- "version": "0.9.0",
5
- "packageManager": "pnpm@8.10.2",
4
+ "version": "0.10.1",
5
+ "packageManager": "pnpm@8.12.1",
6
6
  "description": "Utilities to work with PDFs in Node.js, browser and workers",
7
7
  "author": "Johann Schopplich <pkg@johannschopplich.com>",
8
8
  "license": "MIT",
@@ -67,39 +67,29 @@
67
67
  "canvas": "^2.11.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@rollup/plugin-alias": "^5.0.1",
70
+ "@rollup/plugin-alias": "^5.1.0",
71
71
  "@rollup/plugin-commonjs": "^25.0.7",
72
72
  "@rollup/plugin-inject": "^5.0.5",
73
73
  "@rollup/plugin-node-resolve": "^15.2.3",
74
74
  "@rollup/plugin-replace": "^5.0.5",
75
75
  "@rollup/plugin-terser": "^0.4.4",
76
76
  "@rollup/plugin-typescript": "^11.1.5",
77
- "@types/node": "^20.9.0",
78
- "bumpp": "^9.2.0",
79
- "eslint": "^8.53.0",
77
+ "@types/node": "^20.10.5",
78
+ "bumpp": "^9.2.1",
79
+ "eslint": "^8.56.0",
80
80
  "eslint-config-unjs": "^0.2.1",
81
81
  "fast-glob": "^3.3.2",
82
- "pdfjs-dist": "^4.0.189",
83
- "prettier": "^3.0.3",
84
- "rollup": "^3.28.1",
85
- "typescript": "^5.2.2",
82
+ "pdfjs-dist": "^4.0.269",
83
+ "prettier": "^3.1.1",
84
+ "rollup": "^4.9.1",
85
+ "typescript": "^5.3.3",
86
86
  "unbuild": "^2.0.0",
87
- "unenv": "^1.7.4",
88
- "vitest": "^0.34.3"
87
+ "unenv": "^1.8.0",
88
+ "vitest": "^1.1.0"
89
89
  },
90
90
  "pnpm": {
91
- "overrides": {
92
- "array-includes": "npm:@nolyfill/array-includes@latest",
93
- "array.prototype.findlastindex": "npm:@nolyfill/array.prototype.findlastindex@latest",
94
- "array.prototype.flat": "npm:@nolyfill/array.prototype.flat@latest",
95
- "array.prototype.flatmap": "npm:@nolyfill/array.prototype.flatmap@latest",
96
- "has": "npm:@nolyfill/has@latest",
97
- "object.fromentries": "npm:@nolyfill/object.fromentries@latest",
98
- "object.groupby": "npm:@nolyfill/object.groupby@latest",
99
- "object.values": "npm:@nolyfill/object.values@latest"
100
- },
101
91
  "patchedDependencies": {
102
- "pdfjs-dist@4.0.189": "patches/pdfjs-dist@4.0.189.patch"
92
+ "pdfjs-dist@4.0.269": "patches/pdfjs-dist@4.0.269.patch"
103
93
  }
104
94
  }
105
95
  }