@c4a/extract 0.7.30 → 0.7.34
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -14483,7 +14483,7 @@ function parseDocumentResourceMaterialization(value, field) {
|
|
|
14483
14483
|
...reason !== undefined ? { reason } : {}
|
|
14484
14484
|
};
|
|
14485
14485
|
});
|
|
14486
|
-
const expectedStatus = items.some((item) => item.status === "failed" && item.required && !isNonBlockingDocumentResourceFailureReasonCode(item.reason_code)) ? "error" : items.some((item) => item.status === "failed") || items.some((item) => item.status === "reference-only" && item.kind === "poll" && item.reason?.includes("absent") === true) ? "warning" : "complete";
|
|
14486
|
+
const expectedStatus = items.some((item) => item.status === "failed" && item.required && !isNonBlockingDocumentResourceFailureReasonCode(item.reason_code)) ? "error" : items.some((item) => item.status === "failed" || item.reason_code === "document.resource.preview") || items.some((item) => item.status === "reference-only" && item.kind === "poll" && item.reason?.includes("absent") === true) ? "warning" : "complete";
|
|
14487
14487
|
if (value.status !== expectedStatus)
|
|
14488
14488
|
throw new TypeError(`${field}.status must be ${expectedStatus} for its items`);
|
|
14489
14489
|
const expected = (status) => {
|