@newmo/graphql-codegen-fake-server-client 0.18.0 → 0.19.1
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.
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const config_1 = require("./config");
|
|
4
4
|
const convertName_1 = require("./convertName");
|
|
5
5
|
const plugin = {
|
|
6
|
-
plugin(
|
|
6
|
+
plugin(_schema, documents, rawConfig, _info) {
|
|
7
7
|
const config = (0, config_1.normalizeConfig)(rawConfig);
|
|
8
|
-
const
|
|
8
|
+
const _fakeEndpoint = config.fakeServerEndpoint;
|
|
9
9
|
const registerOperationResponseType = "{ ok: true } | { ok: false; errors: string[] }";
|
|
10
10
|
const indentEachLine = (indent, text) => {
|
|
11
11
|
return text
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newmo/graphql-codegen-fake-server-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "GraphQL Codegen plugin for generating a fake server client",
|
|
6
6
|
"keywords": [
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"codegen": "graphql-codegen --config graphql-codegen.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@graphql-codegen/plugin-helpers": "^5.1.
|
|
41
|
-
"@graphql-codegen/visitor-plugin-common": "^5.
|
|
40
|
+
"@graphql-codegen/plugin-helpers": "^5.1.1",
|
|
41
|
+
"@graphql-codegen/visitor-plugin-common": "^5.8.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@graphql-codegen/cli": "^5.0.
|
|
45
|
-
"@graphql-codegen/typescript": "^4.1.
|
|
44
|
+
"@graphql-codegen/cli": "^5.0.7",
|
|
45
|
+
"@graphql-codegen/typescript": "^4.1.6",
|
|
46
46
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
47
47
|
"@tsconfig/node18": "^18.2.0",
|
|
48
48
|
"@tsconfig/strictest": "^2.0.1",
|
|
49
49
|
"@types/eslint": "^9.6.1",
|
|
50
|
-
"@types/node": "^
|
|
51
|
-
"graphql": "^16.
|
|
52
|
-
"typescript": "^5.
|
|
50
|
+
"@types/node": "^24.0.3",
|
|
51
|
+
"graphql": "^16.11.0",
|
|
52
|
+
"typescript": "^5.8.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"graphql": "^16.8.1"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"access": "public",
|
|
62
62
|
"registry": "https://registry.npmjs.org/"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "0bd15a2a4307c7be9c9ae673bdc305bef561d30c"
|
|
65
65
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { CodegenPlugin } from "@graphql-codegen/plugin-helpers";
|
|
2
|
-
import { type RawPluginConfig
|
|
2
|
+
import { normalizeConfig, type RawPluginConfig } from "./config";
|
|
3
3
|
import { convertName } from "./convertName";
|
|
4
4
|
|
|
5
5
|
const plugin: CodegenPlugin<RawPluginConfig> = {
|
|
6
|
-
plugin(
|
|
6
|
+
plugin(_schema, documents, rawConfig, _info) {
|
|
7
7
|
const config = normalizeConfig(rawConfig);
|
|
8
|
-
const
|
|
8
|
+
const _fakeEndpoint = config.fakeServerEndpoint;
|
|
9
9
|
const registerOperationResponseType = "{ ok: true } | { ok: false; errors: string[] }";
|
|
10
10
|
type GenerateFakeFunction =
|
|
11
11
|
| {
|