nuxt-graphql-middleware 2.0.4 → 2.1.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/dist/module.mjs +4 -3
- package/dist/types/codegen.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/module.mjs
CHANGED
|
@@ -146,7 +146,7 @@ function codegen(graphqlServer, options) {
|
|
|
146
146
|
plugins: [{ "schema-ast": configSchemaAst }],
|
|
147
147
|
config: configSchemaAst
|
|
148
148
|
},
|
|
149
|
-
[path.resolve(options.typesOutputPath, "graphql-schema.
|
|
149
|
+
[path.resolve(options.typesOutputPath, "graphql-schema.ts")]: {
|
|
150
150
|
plugins: [{ typescript: typescriptConfig }],
|
|
151
151
|
config: typescriptConfig
|
|
152
152
|
}
|
|
@@ -156,14 +156,15 @@ function codegen(graphqlServer, options) {
|
|
|
156
156
|
function generateTypes() {
|
|
157
157
|
const config = {
|
|
158
158
|
...typescriptConfig,
|
|
159
|
-
onlyOperationTypes: true
|
|
159
|
+
onlyOperationTypes: true,
|
|
160
|
+
...options.schemaOptions || {}
|
|
160
161
|
};
|
|
161
162
|
return generate({
|
|
162
163
|
schema: schemaPath,
|
|
163
164
|
pluginLoader,
|
|
164
165
|
documents: path.resolve(options.resolvedQueriesPath, "./*.graphql"),
|
|
165
166
|
generates: {
|
|
166
|
-
[path.resolve(options.typesOutputPath, "graphql-operations.
|
|
167
|
+
[path.resolve(options.typesOutputPath, "graphql-operations.ts")]: {
|
|
167
168
|
plugins: ["typescript", { "typescript-operations": config }],
|
|
168
169
|
config
|
|
169
170
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/codegen.ts"],"names":[],"mappings":"AAsBA,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,GAAG,CAAA;CACnB;AAED,MAAM,CAAC,OAAO,WACZ,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,8BAA8B;;;
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/codegen.ts"],"names":[],"mappings":"AAsBA,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,GAAG,CAAA;CACnB;AAED,MAAM,CAAC,OAAO,WACZ,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,8BAA8B;;;EAoDxC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-graphql-middleware",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Module to perform GraphQL requests as a server middleware.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@graphql-codegen/typescript-operations": "^2.2.1",
|
|
43
43
|
"@graphql-fragment-import/lib": "^1.2.0",
|
|
44
44
|
"express": "^4.17.1",
|
|
45
|
-
"graphql": "^
|
|
45
|
+
"graphql": "^16.0.1",
|
|
46
46
|
"graphql-request": "^3.6.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@nuxt/types": "^2.15.8",
|
|
50
50
|
"@nuxtjs/eslint-config-typescript": "latest",
|
|
51
51
|
"@types/mkdirp": "^1.0.2",
|
|
52
|
-
"@types/node": "^16.11.
|
|
52
|
+
"@types/node": "^16.11.10",
|
|
53
53
|
"consola": "^2.15.3",
|
|
54
54
|
"eslint": "latest",
|
|
55
55
|
"eslint-config-prettier": "latest",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"mkdirp": "^1.0.4",
|
|
58
58
|
"mkdist": "latest",
|
|
59
59
|
"nuxt": "^2.15.8",
|
|
60
|
-
"prettier": "^2.
|
|
60
|
+
"prettier": "^2.5.0",
|
|
61
61
|
"typescript": "^4.5.2",
|
|
62
62
|
"unbuild": "^0.5.13",
|
|
63
63
|
"vue": "^2.6.14"
|