@graphql-codegen/schema-ast 2.6.1 → 3.0.0-alpha-20230201095904-a984c0238
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/index.js +2 -2
- package/esm/index.js +2 -2
- package/package.json +2 -2
- package/typings/index.d.cts +1 -1
- package/typings/index.d.ts +1 -1
package/cjs/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.transformSchemaAST = exports.validate = exports.plugin = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
5
|
-
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
6
4
|
const path_1 = require("path");
|
|
5
|
+
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
6
|
+
const graphql_1 = require("graphql");
|
|
7
7
|
const plugin = async (schema, _documents, { commentDescriptions = false, includeDirectives = false, includeIntrospectionTypes = false, sort = false, federation, }) => {
|
|
8
8
|
const transformedSchemaAndAst = transformSchemaAST(schema, { sort, federation, includeIntrospectionTypes });
|
|
9
9
|
return [
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { parse, extendSchema, printIntrospectionSchema, printSchema, visit, buildASTSchema, print, } from 'graphql';
|
|
2
|
-
import { removeFederation, getCachedDocumentNodeFromSchema, } from '@graphql-codegen/plugin-helpers';
|
|
3
1
|
import { extname } from 'path';
|
|
2
|
+
import { getCachedDocumentNodeFromSchema, removeFederation, } from '@graphql-codegen/plugin-helpers';
|
|
3
|
+
import { buildASTSchema, extendSchema, parse, print, printIntrospectionSchema, printSchema, visit, } from 'graphql';
|
|
4
4
|
export const plugin = async (schema, _documents, { commentDescriptions = false, includeDirectives = false, includeIntrospectionTypes = false, sort = false, federation, }) => {
|
|
5
5
|
const transformedSchemaAndAst = transformSchemaAST(schema, { sort, federation, includeIntrospectionTypes });
|
|
6
6
|
return [
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/schema-ast",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha-20230201095904-a984c0238",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating a .graphql file from a given schema",
|
|
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"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "4.0.0-alpha-20230201095904-a984c0238",
|
|
10
10
|
"@graphql-tools/utils": "^9.0.0",
|
|
11
11
|
"tslib": "~2.4.0"
|
|
12
12
|
},
|
package/typings/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
2
1
|
import { PluginFunction, PluginValidateFn } from '@graphql-codegen/plugin-helpers';
|
|
2
|
+
import { GraphQLSchema } from 'graphql';
|
|
3
3
|
/**
|
|
4
4
|
* @description This plugin prints the merged schema as string. If multiple schemas are provided, they will be merged and printed as one schema.
|
|
5
5
|
*/
|
package/typings/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
2
1
|
import { PluginFunction, PluginValidateFn } from '@graphql-codegen/plugin-helpers';
|
|
2
|
+
import { GraphQLSchema } from 'graphql';
|
|
3
3
|
/**
|
|
4
4
|
* @description This plugin prints the merged schema as string. If multiple schemas are provided, they will be merged and printed as one schema.
|
|
5
5
|
*/
|