@graphql-codegen/typescript-operations 6.0.0-alpha-20260105124559-f9262ad32043cda0a35998bceda372bdbb1b034c → 6.0.0-alpha-20260106134001-96cfbeda34da3ef03f382f529dae5d10a950b657
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/visitor.js +6 -2
- package/esm/visitor.js +6 -2
- package/package.json +4 -4
- package/typings/index.d.cts +1 -1
- package/typings/index.d.ts +1 -1
package/cjs/visitor.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TypeScriptDocumentsVisitor = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const visitor_plugin_common_1 = require("@graphql-codegen/visitor-plugin-common");
|
|
6
|
+
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
6
7
|
const auto_bind_1 = tslib_1.__importDefault(require("auto-bind"));
|
|
7
8
|
const graphql_1 = require("graphql");
|
|
8
9
|
const ts_operation_variables_to_object_js_1 = require("./ts-operation-variables-to-object.js");
|
|
@@ -235,8 +236,11 @@ class TypeScriptDocumentsVisitor extends visitor_plugin_common_1.BaseDocumentsVi
|
|
|
235
236
|
identifiers: [],
|
|
236
237
|
},
|
|
237
238
|
typesImport: true,
|
|
238
|
-
|
|
239
|
-
|
|
239
|
+
emitLegacyCommonJSImports: this.config.emitLegacyCommonJSImports,
|
|
240
|
+
importExtension: (0, plugin_helpers_1.normalizeImportExtension)({
|
|
241
|
+
emitLegacyCommonJSImports: this.config.emitLegacyCommonJSImports,
|
|
242
|
+
importExtension: this.config.importExtension,
|
|
243
|
+
}),
|
|
240
244
|
}),
|
|
241
245
|
];
|
|
242
246
|
}
|
package/esm/visitor.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseDocumentsVisitor, convertSchemaEnumToDeclarationBlockString, DeclarationBlock, generateFragmentImportStatement, generateImportStatement, getConfigValue, indent, isOneOfInputObjectType, getEnumsImports, isNativeNamedType, normalizeAvoidOptionals, parseEnumValues, PreResolveTypesProcessor, SelectionSetToObject, getNodeComment, wrapTypeWithModifiers, } from '@graphql-codegen/visitor-plugin-common';
|
|
2
|
+
import { normalizeImportExtension } from '@graphql-codegen/plugin-helpers';
|
|
2
3
|
import autoBind from 'auto-bind';
|
|
3
4
|
import { getNamedType, GraphQLEnumType, GraphQLInputObjectType, GraphQLScalarType, isEnumType, Kind, TypeInfo, visit, visitWithTypeInfo, } from 'graphql';
|
|
4
5
|
import { TypeScriptOperationVariablesToObject, SCALARS } from './ts-operation-variables-to-object.js';
|
|
@@ -231,8 +232,11 @@ export class TypeScriptDocumentsVisitor extends BaseDocumentsVisitor {
|
|
|
231
232
|
identifiers: [],
|
|
232
233
|
},
|
|
233
234
|
typesImport: true,
|
|
234
|
-
|
|
235
|
-
|
|
235
|
+
emitLegacyCommonJSImports: this.config.emitLegacyCommonJSImports,
|
|
236
|
+
importExtension: normalizeImportExtension({
|
|
237
|
+
emitLegacyCommonJSImports: this.config.emitLegacyCommonJSImports,
|
|
238
|
+
importExtension: this.config.importExtension,
|
|
239
|
+
}),
|
|
236
240
|
}),
|
|
237
241
|
];
|
|
238
242
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-operations",
|
|
3
|
-
"version": "6.0.0-alpha-
|
|
3
|
+
"version": "6.0.0-alpha-20260106134001-96cfbeda34da3ef03f382f529dae5d10a950b657",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments",
|
|
5
5
|
"peerDependenciesMeta": {
|
|
6
6
|
"graphql-sock": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"graphql-sock": "^1.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@graphql-codegen/plugin-helpers": "^6.
|
|
16
|
-
"@graphql-codegen/typescript": "6.0.0-alpha-20260105124559-f9262ad32043cda0a35998bceda372bdbb1b034c",
|
|
15
|
+
"@graphql-codegen/plugin-helpers": "^6.1.0",
|
|
17
16
|
"@graphql-codegen/schema-ast": "^5.0.0",
|
|
18
|
-
"@graphql-codegen/
|
|
17
|
+
"@graphql-codegen/typescript": "6.0.0-alpha-20260106134001-96cfbeda34da3ef03f382f529dae5d10a950b657",
|
|
18
|
+
"@graphql-codegen/visitor-plugin-common": "7.0.0-alpha-20260106134001-96cfbeda34da3ef03f382f529dae5d10a950b657",
|
|
19
19
|
"auto-bind": "~4.0.0",
|
|
20
20
|
"tslib": "~2.6.0"
|
|
21
21
|
},
|
package/typings/index.d.cts
CHANGED
|
@@ -2,4 +2,4 @@ import { PluginFunction, Types } from '@graphql-codegen/plugin-helpers';
|
|
|
2
2
|
import { TypeScriptDocumentsPluginConfig } from './config.cjs';
|
|
3
3
|
import { TypeScriptDocumentsVisitor } from './visitor.cjs';
|
|
4
4
|
export declare const plugin: PluginFunction<TypeScriptDocumentsPluginConfig, Types.ComplexPluginOutput>;
|
|
5
|
-
export { TypeScriptDocumentsVisitor };
|
|
5
|
+
export { TypeScriptDocumentsVisitor, type TypeScriptDocumentsPluginConfig };
|
package/typings/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import { PluginFunction, Types } from '@graphql-codegen/plugin-helpers';
|
|
|
2
2
|
import { TypeScriptDocumentsPluginConfig } from './config.js';
|
|
3
3
|
import { TypeScriptDocumentsVisitor } from './visitor.js';
|
|
4
4
|
export declare const plugin: PluginFunction<TypeScriptDocumentsPluginConfig, Types.ComplexPluginOutput>;
|
|
5
|
-
export { TypeScriptDocumentsVisitor };
|
|
5
|
+
export { TypeScriptDocumentsVisitor, type TypeScriptDocumentsPluginConfig };
|