@graphql-codegen/plugin-helpers 4.0.0 → 4.1.0-alpha-20230203131252-9002eca03
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/cjs/helpers.js +1 -1
- package/esm/helpers.js +1 -1
- package/package.json +1 -1
- package/typings/types.d.cts +1 -1
- package/typings/types.d.ts +1 -1
package/cjs/helpers.js
CHANGED
|
@@ -8,7 +8,7 @@ function isOutputConfigArray(type) {
|
|
|
8
8
|
}
|
|
9
9
|
exports.isOutputConfigArray = isOutputConfigArray;
|
|
10
10
|
function isConfiguredOutput(type) {
|
|
11
|
-
return
|
|
11
|
+
return typeof type === 'object';
|
|
12
12
|
}
|
|
13
13
|
exports.isConfiguredOutput = isConfiguredOutput;
|
|
14
14
|
function normalizeOutputParam(config) {
|
package/esm/helpers.js
CHANGED
|
@@ -4,7 +4,7 @@ export function isOutputConfigArray(type) {
|
|
|
4
4
|
return Array.isArray(type);
|
|
5
5
|
}
|
|
6
6
|
export function isConfiguredOutput(type) {
|
|
7
|
-
return
|
|
7
|
+
return typeof type === 'object';
|
|
8
8
|
}
|
|
9
9
|
export function normalizeOutputParam(config) {
|
|
10
10
|
// In case of direct array with a list of plugins
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/plugin-helpers",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0-alpha-20230203131252-9002eca03",
|
|
4
4
|
"description": "GraphQL Code Generator common utils and types",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
package/typings/types.d.cts
CHANGED
|
@@ -215,7 +215,7 @@ export declare namespace Types {
|
|
|
215
215
|
* You can find a list of available plugins here: https://the-guild.dev/graphql/codegen/docs/plugins/index
|
|
216
216
|
* Need a custom plugin? read this: https://the-guild.dev/graphql/codegen/docs/custom-codegen/index
|
|
217
217
|
*/
|
|
218
|
-
plugins
|
|
218
|
+
plugins?: OutputConfig[];
|
|
219
219
|
/**
|
|
220
220
|
* @description If your setup uses Preset to have a more dynamic setup and output, set the name of your preset here.
|
|
221
221
|
*
|
package/typings/types.d.ts
CHANGED
|
@@ -215,7 +215,7 @@ export declare namespace Types {
|
|
|
215
215
|
* You can find a list of available plugins here: https://the-guild.dev/graphql/codegen/docs/plugins/index
|
|
216
216
|
* Need a custom plugin? read this: https://the-guild.dev/graphql/codegen/docs/custom-codegen/index
|
|
217
217
|
*/
|
|
218
|
-
plugins
|
|
218
|
+
plugins?: OutputConfig[];
|
|
219
219
|
/**
|
|
220
220
|
* @description If your setup uses Preset to have a more dynamic setup and output, set the name of your preset here.
|
|
221
221
|
*
|