@c4a/extract 0.7.17 → 0.7.20

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 +2 -1
  2. 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 (JSON.stringify(actual) !== JSON.stringify(wanted))
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/extract",
3
- "version": "0.7.17",
3
+ "version": "0.7.20",
4
4
  "type": "module",
5
5
  "description": "Language-plugin framework and repository runner for Context code evidence",
6
6
  "license": "MIT",