@constructive-io/graphql-codegen 4.23.0 → 4.24.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/cli/shared.js +1 -4
- package/esm/cli/shared.js +2 -5
- package/package.json +12 -12
package/cli/shared.js
CHANGED
|
@@ -131,10 +131,7 @@ function printResult(result) {
|
|
|
131
131
|
// ============================================================================
|
|
132
132
|
const isTopLevel = (_key, path) => path.length === 0;
|
|
133
133
|
const skipNonTopLevel = (key, path) => !isTopLevel(key, path) || key === '_' || key.startsWith('_');
|
|
134
|
-
const camelizeArgv = (argv) => (0, transform_keys_1.inflektTree)(argv,
|
|
135
|
-
const underscored = key.replace(/-/g, '_');
|
|
136
|
-
return (0, inflekt_1.camelize)(underscored, true);
|
|
137
|
-
}, { skip: skipNonTopLevel });
|
|
134
|
+
const camelizeArgv = (argv) => (0, transform_keys_1.inflektTree)(argv, inflekt_1.toCamelCase, { skip: skipNonTopLevel });
|
|
138
135
|
exports.camelizeArgv = camelizeArgv;
|
|
139
136
|
const hyphenateKeys = (obj) => (0, transform_keys_1.inflektTree)(obj, (key) => key.replace(/[A-Z]/g, (m) => '-' + m.toLowerCase()), {
|
|
140
137
|
skip: skipNonTopLevel,
|
package/esm/cli/shared.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* These are exported so that packages/cli can use the same questions,
|
|
5
5
|
* types, and transform utilities, ensuring consistency between the two CLIs.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { toCamelCase } from 'inflekt';
|
|
8
8
|
import { inflektTree } from 'inflekt/transform-keys';
|
|
9
9
|
import { mergeConfig } from '../types/config';
|
|
10
10
|
export const splitCommas = (input) => {
|
|
@@ -119,10 +119,7 @@ export function printResult(result) {
|
|
|
119
119
|
// ============================================================================
|
|
120
120
|
const isTopLevel = (_key, path) => path.length === 0;
|
|
121
121
|
const skipNonTopLevel = (key, path) => !isTopLevel(key, path) || key === '_' || key.startsWith('_');
|
|
122
|
-
export const camelizeArgv = (argv) => inflektTree(argv,
|
|
123
|
-
const underscored = key.replace(/-/g, '_');
|
|
124
|
-
return camelize(underscored, true);
|
|
125
|
-
}, { skip: skipNonTopLevel });
|
|
122
|
+
export const camelizeArgv = (argv) => inflektTree(argv, toCamelCase, { skip: skipNonTopLevel });
|
|
126
123
|
export const hyphenateKeys = (obj) => inflektTree(obj, (key) => key.replace(/[A-Z]/g, (m) => '-' + m.toLowerCase()), {
|
|
127
124
|
skip: skipNonTopLevel,
|
|
128
125
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-codegen",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.24.0",
|
|
4
4
|
"description": "GraphQL SDK generator for Constructive databases with React Query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -56,25 +56,25 @@
|
|
|
56
56
|
"@0no-co/graphql.web": "^1.1.2",
|
|
57
57
|
"@babel/generator": "^7.29.1",
|
|
58
58
|
"@babel/types": "^7.29.0",
|
|
59
|
-
"@constructive-io/graphql-query": "^3.
|
|
60
|
-
"@constructive-io/graphql-types": "^3.
|
|
59
|
+
"@constructive-io/graphql-query": "^3.12.0",
|
|
60
|
+
"@constructive-io/graphql-types": "^3.4.0",
|
|
61
61
|
"@inquirerer/utils": "^3.3.4",
|
|
62
|
-
"@pgpmjs/core": "^6.
|
|
62
|
+
"@pgpmjs/core": "^6.10.0",
|
|
63
63
|
"ajv": "^8.18.0",
|
|
64
64
|
"deepmerge": "^4.3.1",
|
|
65
65
|
"find-and-require-package-json": "^0.9.1",
|
|
66
|
-
"gql-ast": "^3.
|
|
67
|
-
"graphile-schema": "^1.
|
|
66
|
+
"gql-ast": "^3.4.0",
|
|
67
|
+
"graphile-schema": "^1.10.0",
|
|
68
68
|
"graphql": "16.13.0",
|
|
69
|
-
"inflekt": "^0.5.
|
|
69
|
+
"inflekt": "^0.5.1",
|
|
70
70
|
"inquirerer": "^4.7.0",
|
|
71
71
|
"jiti": "^2.6.1",
|
|
72
72
|
"komoji": "^0.8.1",
|
|
73
73
|
"oxfmt": "^0.40.0",
|
|
74
|
-
"pg-cache": "^3.
|
|
75
|
-
"pg-env": "^1.
|
|
76
|
-
"pgsql-client": "^3.
|
|
77
|
-
"pgsql-seed": "^2.
|
|
74
|
+
"pg-cache": "^3.4.0",
|
|
75
|
+
"pg-env": "^1.8.0",
|
|
76
|
+
"pgsql-client": "^3.7.0",
|
|
77
|
+
"pgsql-seed": "^2.7.0",
|
|
78
78
|
"undici": "^7.24.3"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"tsx": "^4.21.0",
|
|
102
102
|
"typescript": "^5.9.3"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "b8ed57a447cd71b93094edf362e72b94801e5f3a"
|
|
105
105
|
}
|