@c4a/extract 0.7.17 → 0.7.23
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 +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -14501,8 +14501,9 @@ function parseDocumentResourceMaterialization(value, field) {
|
|
|
14501
14501
|
["reference_only", referenceOnly, expected("reference-only")],
|
|
14502
14502
|
["failed", failed, expected("failed")]
|
|
14503
14503
|
]) {
|
|
14504
|
-
if (
|
|
14504
|
+
if (Object.keys(actual).length !== Object.keys(wanted).length || Object.entries(wanted).some(([key, count]) => !Object.prototype.hasOwnProperty.call(actual, key) || actual[key] !== count)) {
|
|
14505
14505
|
throw new TypeError(`${field}.${name} does not match items`);
|
|
14506
|
+
}
|
|
14506
14507
|
}
|
|
14507
14508
|
return { status: value.status, discovered, materialized, reference_only: referenceOnly, failed, items };
|
|
14508
14509
|
}
|