@graphql-tools/import 6.5.2 → 6.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.
- package/index.js +0 -6
- package/index.mjs +0 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -106,12 +106,6 @@ function visitFile(filePath, cwd, visitedFiles, predefinedImports) {
|
|
|
106
106
|
};
|
|
107
107
|
if (!otherLines) {
|
|
108
108
|
visitedFiles.set(filePath, allImportedDefinitionsMap);
|
|
109
|
-
const definitionSet = new Set();
|
|
110
|
-
allImportedDefinitionsMap === null || allImportedDefinitionsMap === void 0 ? void 0 : allImportedDefinitionsMap.forEach((importedDefinitions, importedDefinitionName) => {
|
|
111
|
-
importedDefinitions === null || importedDefinitions === void 0 ? void 0 : importedDefinitions.forEach(importedDefinition => {
|
|
112
|
-
addDefinition(importedDefinition, importedDefinitionName, definitionSet);
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
109
|
}
|
|
116
110
|
else {
|
|
117
111
|
const fileDefinitionMap = visitedFiles.get(filePath);
|
package/index.mjs
CHANGED
|
@@ -100,12 +100,6 @@ function visitFile(filePath, cwd, visitedFiles, predefinedImports) {
|
|
|
100
100
|
};
|
|
101
101
|
if (!otherLines) {
|
|
102
102
|
visitedFiles.set(filePath, allImportedDefinitionsMap);
|
|
103
|
-
const definitionSet = new Set();
|
|
104
|
-
allImportedDefinitionsMap === null || allImportedDefinitionsMap === void 0 ? void 0 : allImportedDefinitionsMap.forEach((importedDefinitions, importedDefinitionName) => {
|
|
105
|
-
importedDefinitions === null || importedDefinitions === void 0 ? void 0 : importedDefinitions.forEach(importedDefinition => {
|
|
106
|
-
addDefinition(importedDefinition, importedDefinitionName, definitionSet);
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
103
|
}
|
|
110
104
|
else {
|
|
111
105
|
const fileDefinitionMap = visitedFiles.get(filePath);
|