json-machete 0.3.4 → 0.3.5-alpha-707844095.0

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 (3) hide show
  1. package/index.js +3 -1
  2. package/index.mjs +3 -1
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -566,7 +566,9 @@ async function dereferenceObject(obj, { cwd = process.cwd(), externalFileCache =
566
566
  }
567
567
  else {
568
568
  const resolvedObj = resolvePath(refPath, root);
569
- refMap.set($ref, resolvedObj);
569
+ if (typeof resolvedObj === 'object' && !resolvedObj.$ref) {
570
+ refMap.set($ref, resolvedObj);
571
+ }
570
572
  const result = await dereferenceObject(resolvedObj, {
571
573
  cwd,
572
574
  externalFileCache,
package/index.mjs CHANGED
@@ -561,7 +561,9 @@ async function dereferenceObject(obj, { cwd = process.cwd(), externalFileCache =
561
561
  }
562
562
  else {
563
563
  const resolvedObj = resolvePath(refPath, root);
564
- refMap.set($ref, resolvedObj);
564
+ if (typeof resolvedObj === 'object' && !resolvedObj.$ref) {
565
+ refMap.set($ref, resolvedObj);
566
+ }
565
567
  const result = await dereferenceObject(resolvedObj, {
566
568
  cwd,
567
569
  externalFileCache,
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "json-machete",
3
- "version": "0.3.4",
3
+ "version": "0.3.5-alpha-707844095.0",
4
4
  "sideEffects": false,
5
5
  "dependencies": {
6
- "@graphql-mesh/utils": "0.25.0",
6
+ "@graphql-mesh/utils": "0.25.1-alpha-707844095.0",
7
7
  "@json-schema-tools/meta-schema": "1.6.19",
8
8
  "cross-undici-fetch": "0.1.13",
9
9
  "json-ptr": "3.0.1",