@embedpdf/models 1.0.26 → 1.1.0
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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/pdf.d.ts +6 -1
- package/dist/task.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -458,12 +458,14 @@ class TaskAbortedError extends Error {
|
|
|
458
458
|
constructor(reason) {
|
|
459
459
|
super(`Task aborted: ${JSON.stringify(reason)}`);
|
|
460
460
|
this.name = "TaskAbortedError";
|
|
461
|
+
this.reason = reason;
|
|
461
462
|
}
|
|
462
463
|
}
|
|
463
464
|
class TaskRejectedError extends Error {
|
|
464
465
|
constructor(reason) {
|
|
465
466
|
super(`Task rejected: ${JSON.stringify(reason)}`);
|
|
466
467
|
this.name = "TaskRejectedError";
|
|
468
|
+
this.reason = reason;
|
|
467
469
|
}
|
|
468
470
|
}
|
|
469
471
|
class Task {
|