@heripo/pdf-parser 0.1.25 → 0.1.26
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -179,7 +179,7 @@ declare class ImagePdfFallbackError extends Error {
|
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* Error thrown when the uploaded PDF does not appear to be
|
|
182
|
-
*
|
|
182
|
+
* an archaeological investigation report.
|
|
183
183
|
*/
|
|
184
184
|
declare class InvalidDocumentTypeError extends Error {
|
|
185
185
|
readonly reason: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -179,7 +179,7 @@ declare class ImagePdfFallbackError extends Error {
|
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* Error thrown when the uploaded PDF does not appear to be
|
|
182
|
-
*
|
|
182
|
+
* an archaeological investigation report.
|
|
183
183
|
*/
|
|
184
184
|
declare class InvalidDocumentTypeError extends Error {
|
|
185
185
|
readonly reason: string;
|
package/dist/index.js
CHANGED
|
@@ -1100,7 +1100,7 @@ import { z } from "zod";
|
|
|
1100
1100
|
var InvalidDocumentTypeError = class extends Error {
|
|
1101
1101
|
constructor(reason) {
|
|
1102
1102
|
super(
|
|
1103
|
-
`The uploaded PDF does not appear to be
|
|
1103
|
+
`The uploaded PDF does not appear to be an archaeological investigation report. Reason: ${reason}`
|
|
1104
1104
|
);
|
|
1105
1105
|
this.reason = reason;
|
|
1106
1106
|
}
|
|
@@ -3605,7 +3605,7 @@ var PDFConverter = class {
|
|
|
3605
3605
|
}
|
|
3606
3606
|
documentTypeValidated = false;
|
|
3607
3607
|
/**
|
|
3608
|
-
* Validate that the PDF is
|
|
3608
|
+
* Validate that the PDF is an archaeological investigation report.
|
|
3609
3609
|
* Skipped when no documentValidationModel is configured or for non-local URLs.
|
|
3610
3610
|
* Only runs once per converter instance (flag prevents duplicate checks on recursive calls).
|
|
3611
3611
|
*/
|