@trackunit/react-graphql-tools 1.11.70 → 1.11.71-alpha-ae1ff73fc64.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.
package/package.json
CHANGED
|
@@ -52,9 +52,9 @@ const getFullPathUpOfNode = (node) => {
|
|
|
52
52
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
53
|
let currentNode = node;
|
|
54
54
|
const paths = [];
|
|
55
|
-
while (currentNode) {
|
|
55
|
+
while (currentNode !== undefined) {
|
|
56
56
|
// You can customize what details to include for each node (e.g., kind, text)
|
|
57
|
-
let name = currentNode.getName ? currentNode.getName() : currentNode.getKindName();
|
|
57
|
+
let name = currentNode.getName !== undefined ? currentNode.getName() : currentNode.getKindName();
|
|
58
58
|
if (node.getKind() === ts_morph_1.SyntaxKind.TypeLiteral) {
|
|
59
59
|
const typeLiteral = node.asKindOrThrow(ts_morph_1.SyntaxKind.TypeLiteral);
|
|
60
60
|
name = typeLiteral.getText();
|