@embedpdf/models
Advanced tools
+2
-2
@@ -451,3 +451,3 @@ "use strict"; | ||
| constructor(reason) { | ||
| super(`Task aborted: ${reason}`); | ||
| super(`Task aborted: ${JSON.stringify(reason)}`); | ||
| this.name = "TaskAbortedError"; | ||
@@ -458,3 +458,3 @@ } | ||
| constructor(reason) { | ||
| super(`Task rejected: ${reason}`); | ||
| super(`Task rejected: ${JSON.stringify(reason)}`); | ||
| this.name = "TaskRejectedError"; | ||
@@ -461,0 +461,0 @@ } |
+4
-4
@@ -477,7 +477,7 @@ /** | ||
| }; | ||
| declare class TaskAbortedError extends Error { | ||
| constructor(reason: string); | ||
| declare class TaskAbortedError<D> extends Error { | ||
| constructor(reason: D); | ||
| } | ||
| declare class TaskRejectedError extends Error { | ||
| constructor(reason: string); | ||
| declare class TaskRejectedError<D> extends Error { | ||
| constructor(reason: D); | ||
| } | ||
@@ -484,0 +484,0 @@ /** |
+4
-4
@@ -477,7 +477,7 @@ /** | ||
| }; | ||
| declare class TaskAbortedError extends Error { | ||
| constructor(reason: string); | ||
| declare class TaskAbortedError<D> extends Error { | ||
| constructor(reason: D); | ||
| } | ||
| declare class TaskRejectedError extends Error { | ||
| constructor(reason: string); | ||
| declare class TaskRejectedError<D> extends Error { | ||
| constructor(reason: D); | ||
| } | ||
@@ -484,0 +484,0 @@ /** |
+2
-2
@@ -374,3 +374,3 @@ // src/geometry.ts | ||
| constructor(reason) { | ||
| super(`Task aborted: ${reason}`); | ||
| super(`Task aborted: ${JSON.stringify(reason)}`); | ||
| this.name = "TaskAbortedError"; | ||
@@ -381,3 +381,3 @@ } | ||
| constructor(reason) { | ||
| super(`Task rejected: ${reason}`); | ||
| super(`Task rejected: ${JSON.stringify(reason)}`); | ||
| this.name = "TaskRejectedError"; | ||
@@ -384,0 +384,0 @@ } |
+1
-1
| { | ||
| "name": "@embedpdf/models", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "private": false, | ||
@@ -5,0 +5,0 @@ "description": "Shared type definitions, data models, and utility helpers (geometry, tasks, logging, PDF primitives) that underpin every package in the EmbedPDF ecosystem.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
330976
0.04%