@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.cjs
CHANGED
|
@@ -1133,7 +1133,7 @@ var import_zod = require("zod");
|
|
|
1133
1133
|
var InvalidDocumentTypeError = class extends Error {
|
|
1134
1134
|
constructor(reason) {
|
|
1135
1135
|
super(
|
|
1136
|
-
`The uploaded PDF does not appear to be
|
|
1136
|
+
`The uploaded PDF does not appear to be an archaeological investigation report. Reason: ${reason}`
|
|
1137
1137
|
);
|
|
1138
1138
|
this.reason = reason;
|
|
1139
1139
|
}
|
|
@@ -3622,7 +3622,7 @@ var PDFConverter = class {
|
|
|
3622
3622
|
}
|
|
3623
3623
|
documentTypeValidated = false;
|
|
3624
3624
|
/**
|
|
3625
|
-
* Validate that the PDF is
|
|
3625
|
+
* Validate that the PDF is an archaeological investigation report.
|
|
3626
3626
|
* Skipped when no documentValidationModel is configured or for non-local URLs.
|
|
3627
3627
|
* Only runs once per converter instance (flag prevents duplicate checks on recursive calls).
|
|
3628
3628
|
*/
|