@trackunit/react-graphql-tools 0.0.7 → 0.0.9
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
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.9](https://github.com/Trackunit/manager/compare/react-graphql-tools/0.0.8...react-graphql-tools/0.0.9) (2023-04-20)
|
|
6
|
+
|
|
7
|
+
## [0.0.8](https://github.com/Trackunit/manager/compare/react-graphql-tools/0.0.7...react-graphql-tools/0.0.8) (2023-04-14)
|
|
8
|
+
|
|
9
|
+
### Dependency Updates
|
|
10
|
+
|
|
11
|
+
* `nx-utils` updated to version `0.0.8`
|
|
5
12
|
## [0.0.7](https://github.com/Trackunit/manager/compare/react-graphql-tools/0.0.6...react-graphql-tools/0.0.7) (2023-04-14)
|
|
6
13
|
|
|
7
14
|
## [0.0.6](https://github.com/Trackunit/manager/compare/react-graphql-tools/0.0.5...react-graphql-tools/0.0.6) (2023-04-11)
|
package/package.json
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-graphql-tools",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"executors": "./executors.json",
|
|
6
6
|
"repository": "https://github.com/Trackunit/manager",
|
|
7
7
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/cli": "
|
|
10
|
-
"@graphql-codegen/fragment-matcher": "
|
|
11
|
-
"@graphql-codegen/typescript-operations": "
|
|
12
|
-
"@graphql-codegen/typescript-react-apollo": "
|
|
9
|
+
"@graphql-codegen/cli": "2.16.1",
|
|
10
|
+
"@graphql-codegen/fragment-matcher": "3.3.3",
|
|
11
|
+
"@graphql-codegen/typescript-operations": "2.5.12",
|
|
12
|
+
"@graphql-codegen/typescript-react-apollo": "3.3.7",
|
|
13
|
+
"@react-google-maps/api": "2.17.1",
|
|
14
|
+
"@react-spring/web": "9.6.0",
|
|
15
|
+
"graphql": "15.8.0",
|
|
16
|
+
"i18next": "21.10.0",
|
|
17
|
+
"jest-canvas-mock": "2.4.0",
|
|
18
|
+
"moment-timezone": "0.5.39",
|
|
19
|
+
"react": "18.2.0",
|
|
20
|
+
"react-dom": "18.2.0",
|
|
21
|
+
"react-i18next": "12.1.1",
|
|
22
|
+
"react-virtualized-auto-sizer": "1.0.7",
|
|
13
23
|
"tslib": "2.4.1"
|
|
14
24
|
},
|
|
15
|
-
"types": "./src/index.d.ts"
|
|
16
|
-
"peerDependencies": {}
|
|
25
|
+
"types": "./src/index.d.ts"
|
|
17
26
|
}
|
|
@@ -12,7 +12,10 @@ const generateHooks_1 = require("./generateHooks");
|
|
|
12
12
|
*/
|
|
13
13
|
const CreateGraphqlHooks = (_unused, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
14
14
|
const nxRoot = `${context.root}`;
|
|
15
|
-
|
|
15
|
+
if (!context.projectsConfigurations) {
|
|
16
|
+
throw new Error("context projectsConfigurations is required");
|
|
17
|
+
}
|
|
18
|
+
const libRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
16
19
|
const fullLibRoot = `${nxRoot}/${libRoot}`;
|
|
17
20
|
yield (0, generateHooks_1.generateHooks)("https://dev.manager.trackunit.com/public/api/gql/", fullLibRoot + "/src");
|
|
18
21
|
return { success: 1 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../libs/react/graphql-tools/src/executors/createHooks/executor.ts"],"names":[],"mappings":";;;;AACA,mDAAgD;AAEhD;;;;;;GAMG;AACI,MAAM,kBAAkB,GAAG,CAAO,OAAgB,EAAE,OAAwB,EAAE,EAAE;IACrF,MAAM,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../libs/react/graphql-tools/src/executors/createHooks/executor.ts"],"names":[],"mappings":";;;;AACA,mDAAgD;AAEhD;;;;;;GAMG;AACI,MAAM,kBAAkB,GAAG,CAAO,OAAgB,EAAE,OAAwB,EAAE,EAAE;IACrF,MAAM,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IACjC,IAAI,CAAC,OAAO,CAAC,sBAAsB,EAAE;QACnC,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;KAC/D;IACD,MAAM,OAAO,GAAG,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAY,CAAC,CAAC,IAAI,CAAC;IACnF,MAAM,WAAW,GAAG,GAAG,MAAM,IAAI,OAAO,EAAE,CAAC;IAE3C,MAAM,IAAA,6BAAa,EAAC,mDAAmD,EAAE,WAAW,GAAG,MAAM,CAAC,CAAC;IAC/F,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;AACxB,CAAC,CAAA,CAAC;AAVW,QAAA,kBAAkB,sBAU7B;AAEF,kBAAe,0BAAkB,CAAC","sourcesContent":["import { ExecutorContext } from \"@nrwl/devkit\";\nimport { generateHooks } from \"./generateHooks\";\n\n/**\n * This executor generates react hooks for all graphql files.\n *\n * @param _unused unused props from nx\n * @param context The execution context for this executor\n * @returns {Promise<{ success: number; }>} success when finished\n */\nexport const CreateGraphqlHooks = async (_unused: unknown, context: ExecutorContext) => {\n const nxRoot = `${context.root}`;\n if (!context.projectsConfigurations) {\n throw new Error(\"context projectsConfigurations is required\");\n }\n const libRoot = context.projectsConfigurations.projects[context.projectName!].root;\n const fullLibRoot = `${nxRoot}/${libRoot}`;\n\n await generateHooks(\"https://dev.manager.trackunit.com/public/api/gql/\", fullLibRoot + \"/src\");\n return { success: 1 };\n};\n\nexport default CreateGraphqlHooks;\n"]}
|