@depup/graphql-codegen__typescript-operations 6.1.8-depup.0 → 6.1.9-depup.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/README.md +2 -2
- package/changes.json +1 -1
- package/cjs/visitor.js +4 -1
- package/esm/visitor.js +5 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/graphql-codegen__typescript-operations
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [@graphql-codegen/typescript-operations](https://www.npmjs.com/package/@graphql-codegen/typescript-operations) @ 6.1.
|
|
17
|
-
| Processed | 2026-09-
|
|
16
|
+
| Original | [@graphql-codegen/typescript-operations](https://www.npmjs.com/package/@graphql-codegen/typescript-operations) @ 6.1.9 |
|
|
17
|
+
| Processed | 2026-09-29 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 2 |
|
|
20
20
|
|
package/changes.json
CHANGED
package/cjs/visitor.js
CHANGED
|
@@ -183,7 +183,10 @@ class TypeScriptDocumentsVisitor extends visitor_plugin_common_1.BaseDocumentsVi
|
|
|
183
183
|
if ((0, visitor_plugin_common_1.isOneOfInputObjectType)(this._schema.getType(inputTypeName))) {
|
|
184
184
|
return new visitor_plugin_common_1.DeclarationBlock(this._declarationBlockConfig)
|
|
185
185
|
.export()
|
|
186
|
-
.asKind(
|
|
186
|
+
.asKind((0, visitor_plugin_common_1.getOneOfInputDeclarationKind)({
|
|
187
|
+
fieldCount: (node.fields || []).length,
|
|
188
|
+
inputDeclarationKind: this.config.declarationKind.input,
|
|
189
|
+
}))
|
|
187
190
|
.withName(this.convertName(node))
|
|
188
191
|
.withComment(node.description?.value)
|
|
189
192
|
.withContent(`\n` + (node.fields || []).join('\n |')).string;
|
package/esm/visitor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import autoBind from 'auto-bind';
|
|
2
2
|
import { getNamedType, GraphQLEnumType, GraphQLInputObjectType, GraphQLScalarType, isEnumType, isIntrospectionType, Kind, TypeInfo, visit, visitWithTypeInfo, } from 'graphql';
|
|
3
3
|
import { normalizeImportExtension } from '@graphql-codegen/plugin-helpers';
|
|
4
|
-
import { BaseDocumentsVisitor, buildTypeImport, convertSchemaEnumToDeclarationBlockString, DeclarationBlock, DEFAULT_INPUT_SCALARS, generateFragmentImportStatement, generateImportStatement, getConfigValue, getEnumsImports, getNodeComment, indent, isNativeNamedType, isOneOfInputObjectType, parseEnumValues, PreResolveTypesProcessor, printTypeScriptMaybeType, SelectionSetToObject, wrapTypeWithModifiers, } from '@graphql-codegen/visitor-plugin-common';
|
|
4
|
+
import { BaseDocumentsVisitor, buildTypeImport, convertSchemaEnumToDeclarationBlockString, DeclarationBlock, DEFAULT_INPUT_SCALARS, generateFragmentImportStatement, generateImportStatement, getConfigValue, getEnumsImports, getNodeComment, getOneOfInputDeclarationKind, indent, isNativeNamedType, isOneOfInputObjectType, parseEnumValues, PreResolveTypesProcessor, printTypeScriptMaybeType, SelectionSetToObject, wrapTypeWithModifiers, } from '@graphql-codegen/visitor-plugin-common';
|
|
5
5
|
import { TypeScriptOperationVariablesToObject } from './ts-operation-variables-to-object.js';
|
|
6
6
|
export class TypeScriptDocumentsVisitor extends BaseDocumentsVisitor {
|
|
7
7
|
_usedSchemaTypes = {};
|
|
@@ -179,7 +179,10 @@ export class TypeScriptDocumentsVisitor extends BaseDocumentsVisitor {
|
|
|
179
179
|
if (isOneOfInputObjectType(this._schema.getType(inputTypeName))) {
|
|
180
180
|
return new DeclarationBlock(this._declarationBlockConfig)
|
|
181
181
|
.export()
|
|
182
|
-
.asKind(
|
|
182
|
+
.asKind(getOneOfInputDeclarationKind({
|
|
183
|
+
fieldCount: (node.fields || []).length,
|
|
184
|
+
inputDeclarationKind: this.config.declarationKind.input,
|
|
185
|
+
}))
|
|
183
186
|
.withName(this.convertName(node))
|
|
184
187
|
.withComment(node.description?.value)
|
|
185
188
|
.withContent(`\n` + (node.fields || []).join('\n |')).string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/graphql-codegen__typescript-operations",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.9-depup.0",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments (with updated dependencies)",
|
|
5
5
|
"peerDependenciesMeta": {
|
|
6
6
|
"graphql-sock": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@graphql-codegen/plugin-helpers": "^7.4.0",
|
|
16
16
|
"@graphql-codegen/schema-ast": "^6.1.0",
|
|
17
|
-
"@graphql-codegen/visitor-plugin-common": "^7.2.
|
|
17
|
+
"@graphql-codegen/visitor-plugin-common": "^7.2.7",
|
|
18
18
|
"auto-bind": "^5.0.1",
|
|
19
19
|
"tslib": "^2.8.1"
|
|
20
20
|
},
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
},
|
|
73
73
|
"depsUpdated": 2,
|
|
74
74
|
"originalPackage": "@graphql-codegen/typescript-operations",
|
|
75
|
-
"originalVersion": "6.1.
|
|
76
|
-
"processedAt": "2026-09-
|
|
75
|
+
"originalVersion": "6.1.9",
|
|
76
|
+
"processedAt": "2026-09-29T16:10:29.606Z",
|
|
77
77
|
"smokeTest": "passed"
|
|
78
78
|
}
|
|
79
79
|
}
|