@graphql-tools/utils 10.5.2 → 10.5.3

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.
@@ -47,7 +47,7 @@ function getDirectiveExtensions(directableObj, schema, pathToDirectivesInExtensi
47
47
  if (directableObj.extensions) {
48
48
  let directivesInExtensions = directableObj.extensions;
49
49
  for (const pathSegment of pathToDirectivesInExtensions) {
50
- directivesInExtensions = directivesInExtensions[pathSegment];
50
+ directivesInExtensions = directivesInExtensions?.[pathSegment];
51
51
  }
52
52
  if (directivesInExtensions != null) {
53
53
  for (const directiveNameProp in directivesInExtensions) {
@@ -44,7 +44,7 @@ export function getDirectiveExtensions(directableObj, schema, pathToDirectivesIn
44
44
  if (directableObj.extensions) {
45
45
  let directivesInExtensions = directableObj.extensions;
46
46
  for (const pathSegment of pathToDirectivesInExtensions) {
47
- directivesInExtensions = directivesInExtensions[pathSegment];
47
+ directivesInExtensions = directivesInExtensions?.[pathSegment];
48
48
  }
49
49
  if (directivesInExtensions != null) {
50
50
  for (const directiveNameProp in directivesInExtensions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/utils",
3
- "version": "10.5.2",
3
+ "version": "10.5.3",
4
4
  "description": "Common package containing utils and types for GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {