@c4a/extract 0.7.29 → 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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/extract",
3
- "version": "0.7.29",
3
+ "version": "0.7.34",
4
4
  "type": "module",
5
5
  "description": "Language-plugin framework and repository runner for Context code evidence",
6
6
  "license": "MIT",