@graphql-codegen/named-operations-object 2.3.1 → 3.0.0-alpha-20230524082546-d7e1d0a4a
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 +7 -4
package/cjs/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.plugin = void 0;
|
|
4
|
-
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
5
|
-
const graphql_1 = require("graphql");
|
|
6
4
|
const change_case_all_1 = require("change-case-all");
|
|
5
|
+
const graphql_1 = require("graphql");
|
|
6
|
+
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
7
7
|
const plugin = (schema, documents, config) => {
|
|
8
8
|
const identifierName = config.identifierName || 'namedOperations';
|
|
9
9
|
const allAst = (0, graphql_1.concatAST)(documents.map(v => v.document));
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { oldVisit } from '@graphql-codegen/plugin-helpers';
|
|
2
|
-
import { concatAST } from 'graphql';
|
|
3
1
|
import { capitalCase } from 'change-case-all';
|
|
2
|
+
import { concatAST } from 'graphql';
|
|
3
|
+
import { oldVisit } from '@graphql-codegen/plugin-helpers';
|
|
4
4
|
export const plugin = (schema, documents, config) => {
|
|
5
5
|
const identifierName = config.identifierName || 'namedOperations';
|
|
6
6
|
const allAst = concatAST(documents.map(v => v.document));
|
package/package.json
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/named-operations-object",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha-20230524082546-d7e1d0a4a",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating an enum with all loaded operations, for simpler and type-safe access",
|
|
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
|
"graphql-tag": "^2.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-codegen/plugin-helpers": "^
|
|
11
|
-
"change-case-all": "1.0.
|
|
10
|
+
"@graphql-codegen/plugin-helpers": "^3.0.0",
|
|
11
|
+
"change-case-all": "1.0.15",
|
|
12
12
|
"tslib": "~2.4.0"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/dotansimha/graphql-code-generator.git",
|
|
16
|
+
"url": "https://github.com/dotansimha/graphql-code-generator-community.git",
|
|
17
17
|
"directory": "packages/plugins/typescript/named-operations-object"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">= 16.0.0"
|
|
22
|
+
},
|
|
20
23
|
"main": "cjs/index.js",
|
|
21
24
|
"module": "esm/index.js",
|
|
22
25
|
"typings": "typings/index.d.ts",
|