-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f77491e
commit f3e9e3d
Showing
2 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
packages/graphql-mesh/patches/@graphql-mesh+transform-rename+0.96.7.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/node_modules/@graphql-mesh/transform-rename/cjs/bareRename.js b/node_modules/@graphql-mesh/transform-rename/cjs/bareRename.js | ||
index 7e430cf..3192400 100644 | ||
--- a/node_modules/@graphql-mesh/transform-rename/cjs/bareRename.js | ||
+++ b/node_modules/@graphql-mesh/transform-rename/cjs/bareRename.js | ||
@@ -84,6 +84,9 @@ class BareRename { | ||
if (!mapKeys?.length) | ||
return null; | ||
return mapKeys.reduce((newName, mapKey) => { | ||
+ if (!newName) { | ||
+ return null; | ||
+ } | ||
if (mapKeyIsString) { | ||
const str = map.get(mapKey); | ||
// avoid re-iterating over strings that have already been renamed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters