@graphql-mesh/compose-cli 1.4.2-alpha-20250317141626-bbdf676e6a254787f49ca8b8ee9c35afa21e293c → 1.4.2-alpha-20250318130330-99dc71d42d915601fca3b4f0e052a902885aff0f

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.
@@ -183,8 +183,8 @@ async function getComposedSchemaFromConfig(config, logger) {
183
183
  directives: node.directives?.filter(directive => directive.name.value !== 'additionalField'),
184
184
  };
185
185
  }
186
- const typeInAncestor = ancestors
187
- .toReversed()
186
+ const typeInAncestor = [...ancestors]
187
+ .reverse()
188
188
  .find(ancestor => !Array.isArray(ancestor) &&
189
189
  ancestor != null &&
190
190
  typeof ancestor === 'object' &&
@@ -180,8 +180,8 @@ export async function getComposedSchemaFromConfig(config, logger) {
180
180
  directives: node.directives?.filter(directive => directive.name.value !== 'additionalField'),
181
181
  };
182
182
  }
183
- const typeInAncestor = ancestors
184
- .toReversed()
183
+ const typeInAncestor = [...ancestors]
184
+ .reverse()
185
185
  .find(ancestor => !Array.isArray(ancestor) &&
186
186
  ancestor != null &&
187
187
  typeof ancestor === 'object' &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/compose-cli",
3
- "version": "1.4.2-alpha-20250317141626-bbdf676e6a254787f49ca8b8ee9c35afa21e293c",
3
+ "version": "1.4.2-alpha-20250318130330-99dc71d42d915601fca3b4f0e052a902885aff0f",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"