@trackunit/react-graphql-tools 1.15.4 → 1.15.6
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.15.6 (2026-08-13)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated react-vite-test-setup to 0.0.101
|
|
6
|
+
|
|
7
|
+
## 1.15.5 (2026-08-13)
|
|
8
|
+
|
|
9
|
+
### 🧱 Updated Dependencies
|
|
10
|
+
|
|
11
|
+
- Updated react-vite-test-setup to 0.0.100
|
|
12
|
+
|
|
1
13
|
## 1.15.4 (2026-08-12)
|
|
2
14
|
|
|
3
15
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@ const scrubFileContent = async (fileContent, _nxRoot, isVerbose, providedSourceF
|
|
|
35
35
|
let resultFileContent = "";
|
|
36
36
|
const scalarsType = sourceFile.getTypeAliasOrThrow("Scalars");
|
|
37
37
|
scalarsType.getEndLineNumber();
|
|
38
|
-
resultFileContent += fileContent.split("\n").slice(0, scalarsType.getEndLineNumber()).join("\n")
|
|
38
|
+
resultFileContent += `${fileContent.split("\n").slice(0, scalarsType.getEndLineNumber()).join("\n")}\n`;
|
|
39
39
|
const alreadyAdded = sourceFile
|
|
40
40
|
.getTypeAliases()
|
|
41
41
|
.filter(typeAlias => typeAlias.getStartLineNumber() < scalarsType.getEndLineNumber())
|
|
@@ -49,22 +49,22 @@ const scrubFileContent = async (fileContent, _nxRoot, isVerbose, providedSourceF
|
|
|
49
49
|
const typeName = enumType.getName();
|
|
50
50
|
if (preservedTypes.has(typeName) && !alreadyAdded.includes(typeName) && !(0, utils_1.isFragment)(typeName)) {
|
|
51
51
|
alreadyAdded.push(typeName);
|
|
52
|
-
resultFileContent +=
|
|
52
|
+
resultFileContent += `\n${(0, utils_1.convertEnumToConstObject)(enumType)}\n`;
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
sourceFile.getTypeAliases().forEach(typeAlias => {
|
|
56
56
|
const typeName = typeAlias.getName();
|
|
57
57
|
if (preservedTypes.has(typeName) && !alreadyAdded.includes(typeName) && !(0, utils_1.isFragment)(typeName)) {
|
|
58
58
|
alreadyAdded.push(typeName);
|
|
59
|
-
resultFileContent +=
|
|
59
|
+
resultFileContent += `\n${typeAlias.getText()}\n`;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
const resultQueryAndMutations = queryAndMutations.map(queryOrMutation => queryOrMutation.getFullText()).join("\n");
|
|
63
|
-
const result = resultFileContent
|
|
63
|
+
const result = `${resultFileContent}\n${resultQueryAndMutations}`;
|
|
64
64
|
if (isVerbose) {
|
|
65
65
|
const end = new Date().getTime();
|
|
66
66
|
const time = end - start;
|
|
67
|
-
console.log(
|
|
67
|
+
console.log(`Execution time: ${time}`);
|
|
68
68
|
}
|
|
69
69
|
return result;
|
|
70
70
|
};
|
|
@@ -305,7 +305,7 @@ const scrubMockFileContent = async (fileContent, _nxRoot, isVerbose, providedSou
|
|
|
305
305
|
if (isVerbose) {
|
|
306
306
|
const end = new Date().getTime();
|
|
307
307
|
const time = end - start;
|
|
308
|
-
console.log(
|
|
308
|
+
console.log(`Mock Execution time: ${time}`);
|
|
309
309
|
}
|
|
310
310
|
const mock = mockThese.map(mocker => {
|
|
311
311
|
const postFix = (mocker.getName().includes("Query") ? "Query" : "Mutation").length;
|