nuxt-graphql-middleware 5.0.0-alpha.2 → 5.0.0-alpha.20
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/README.md +101 -19
- package/dist/client/200.html +10 -10
- package/dist/client/404.html +10 -10
- package/dist/client/_nuxt/BM34SYth.js +1 -0
- package/dist/client/_nuxt/CROlboVl.js +1 -0
- package/dist/client/_nuxt/D5hBL5aZ.js +25 -0
- package/dist/client/_nuxt/FTbv7CO6.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/de61b0f7-ec5c-4f2f-addb-b5017c30afb1.json +1 -0
- package/dist/client/_nuxt/entry.Cn9qfNGa.css +1 -0
- package/dist/client/_nuxt/error-404.ehK72JOs.css +1 -0
- package/dist/client/_nuxt/error-500._g0akJim.css +1 -0
- package/dist/client/_nuxt/index.DGEN-H8t.css +1 -0
- package/dist/client/_nuxt/lIgCBhS_.js +2 -0
- package/dist/client/index.html +10 -10
- package/dist/client-options.d.mts +6 -0
- package/dist/client-options.mjs +5 -0
- package/dist/module.d.mts +74 -340
- package/dist/module.json +4 -4
- package/dist/module.mjs +1384 -589
- package/dist/runtime/components/CodeFrame.vue +52 -0
- package/dist/runtime/components/CodeFrame.vue.d.ts +7 -0
- package/dist/runtime/components/DevModeOverlay.vue +52 -0
- package/dist/runtime/components/DevModeOverlay.vue.d.ts +3 -0
- package/dist/runtime/components/ErrorExtensions.vue +21 -0
- package/dist/runtime/components/ErrorExtensions.vue.d.ts +5 -0
- package/dist/runtime/components/ErrorGroup.vue +78 -0
- package/dist/runtime/components/ErrorGroup.vue.d.ts +9 -0
- package/dist/runtime/composables/nuxtApp.d.ts +2 -2
- package/dist/runtime/composables/nuxtApp.js +21 -1
- package/dist/runtime/composables/useAsyncGraphqlQuery.d.ts +7 -7
- package/dist/runtime/composables/useAsyncGraphqlQuery.js +10 -2
- package/dist/runtime/composables/useGraphqlMutation.d.ts +4 -4
- package/dist/runtime/composables/useGraphqlMutation.js +1 -1
- package/dist/runtime/composables/useGraphqlQuery.d.ts +4 -4
- package/dist/runtime/composables/useGraphqlQuery.js +1 -1
- package/dist/runtime/composables/useGraphqlState.d.ts +1 -1
- package/dist/runtime/composables/useGraphqlState.js +1 -1
- package/dist/runtime/composables/useGraphqlUploadMutation.d.ts +4 -4
- package/dist/runtime/composables/useGraphqlUploadMutation.js +2 -2
- package/dist/runtime/css/output.css +1 -0
- package/dist/runtime/helpers/composables.d.ts +17 -20
- package/dist/runtime/helpers/composables.js +0 -5
- package/dist/runtime/plugins/devMode.d.ts +2 -0
- package/dist/runtime/plugins/devMode.js +23 -0
- package/dist/runtime/plugins/provideState.d.ts +1 -1
- package/dist/runtime/{serverHandler → server/api}/debug.js +3 -7
- package/dist/runtime/server/api/mutation.js +29 -0
- package/dist/runtime/server/api/query.js +30 -0
- package/dist/runtime/server/api/upload.d.ts +2 -0
- package/dist/runtime/{serverHandler → server/api}/upload.js +13 -11
- package/dist/runtime/{serverHandler → server}/helpers/index.d.ts +10 -12
- package/dist/runtime/{serverHandler → server}/helpers/index.js +9 -26
- package/dist/runtime/server/utils/doGraphqlRequest.d.ts +18 -0
- package/dist/runtime/server/utils/doGraphqlRequest.js +68 -0
- package/dist/runtime/server/utils/index.d.ts +1 -1
- package/dist/runtime/server/utils/index.js +1 -1
- package/dist/runtime/server/utils/useGraphqlMutation.d.ts +4 -4
- package/dist/runtime/server/utils/useGraphqlQuery.d.ts +4 -4
- package/dist/runtime/settings/index.d.ts +0 -14
- package/dist/runtime/settings/index.js +0 -6
- package/dist/runtime/types.d.ts +204 -3
- package/dist/server-options.d.mts +8 -0
- package/dist/server-options.mjs +5 -0
- package/dist/shared/nuxt-graphql-middleware.xfMm4rGk.d.mts +523 -0
- package/dist/types.d.mts +1 -7
- package/dist/utils.d.mts +15 -0
- package/dist/utils.mjs +18 -0
- package/package.json +64 -57
- package/dist/client/_nuxt/BS583yk8.js +0 -25
- package/dist/client/_nuxt/CZ2Qwgdk.js +0 -2
- package/dist/client/_nuxt/DpxjPVZy.js +0 -1
- package/dist/client/_nuxt/GOrnHr4p.js +0 -1
- package/dist/client/_nuxt/builds/meta/f823ebfd-daab-468f-8f6f-07a236da64bd.json +0 -1
- package/dist/client/_nuxt/entry.AjgXSF89.css +0 -1
- package/dist/client/_nuxt/error-404.BJkSn6RI.css +0 -1
- package/dist/client/_nuxt/error-500.TOCKLquH.css +0 -1
- package/dist/client/_nuxt/exxdaCPN.js +0 -1
- package/dist/client/_nuxt/index.D19Q16VT.css +0 -1
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -358
- package/dist/runtime/clientOptions/index.d.ts +0 -2
- package/dist/runtime/clientOptions/index.js +0 -3
- package/dist/runtime/serverHandler/index.js +0 -78
- package/dist/runtime/serverHandler/tsconfig.json +0 -3
- package/dist/runtime/serverOptions/defineGraphqlServerOptions.d.ts +0 -3
- package/dist/runtime/serverOptions/defineGraphqlServerOptions.js +0 -3
- package/dist/runtime/serverOptions/index.d.ts +0 -2
- package/dist/runtime/serverOptions/index.js +0 -2
- package/dist/types.d.ts +0 -7
- /package/dist/runtime/{serverHandler → server/api}/debug.d.ts +0 -0
- /package/dist/runtime/{serverHandler/index.d.ts → server/api/mutation.d.ts} +0 -0
- /package/dist/runtime/{serverHandler/upload.d.ts → server/api/query.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,55 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-graphql-middleware",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.20",
|
|
4
4
|
"description": "Module to perform GraphQL requests as a server middleware.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/dulnan/nuxt-graphql-middleware.git"
|
|
8
8
|
},
|
|
9
|
-
"license": "MIT",
|
|
10
9
|
"type": "module",
|
|
11
10
|
"exports": {
|
|
12
11
|
".": {
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"default": "./dist/module.mjs"
|
|
16
|
-
},
|
|
17
|
-
"require": {
|
|
18
|
-
"types": "./dist/types.d.ts",
|
|
19
|
-
"default": "./dist/module.cjs"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"./dist/runtime/serverOptions": {
|
|
23
|
-
"import": "./dist/runtime/serverOptions/index.js",
|
|
24
|
-
"types": "./dist/runtime/serverOptions/index.d.ts"
|
|
12
|
+
"types": "./dist/types.d.mts",
|
|
13
|
+
"import": "./dist/module.mjs"
|
|
25
14
|
},
|
|
26
|
-
"./dist/
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
"./utils": "./dist/utils.mjs",
|
|
16
|
+
"./client-options": "./dist/client-options.mjs",
|
|
17
|
+
"./server-options": "./dist/server-options.mjs"
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/module.mjs",
|
|
20
|
+
"typesVersions": {
|
|
21
|
+
"*": {
|
|
22
|
+
".": [
|
|
23
|
+
"./dist/types.d.mts"
|
|
24
|
+
],
|
|
25
|
+
"utils": [
|
|
26
|
+
"./dist/utils.d.mts"
|
|
27
|
+
],
|
|
28
|
+
"client-options": [
|
|
29
|
+
"./dist/client-options.d.mts"
|
|
30
|
+
],
|
|
31
|
+
"server-options": [
|
|
32
|
+
"./dist/server-options.d.mts"
|
|
33
|
+
]
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
|
-
"main": "./dist/module.cjs",
|
|
32
|
-
"module": "./dist/module.mjs",
|
|
33
|
-
"types": "./dist/types.d.ts",
|
|
34
36
|
"files": [
|
|
35
37
|
"dist"
|
|
36
38
|
],
|
|
39
|
+
"license": "MIT",
|
|
37
40
|
"scripts": {
|
|
38
|
-
"prepack": "nuxt-module-build build && npm run client:build",
|
|
41
|
+
"prepack": "npm run styles:build && nuxt-module-build build && npm run client:build",
|
|
39
42
|
"dev": "nuxi dev playground --trace-warnings",
|
|
40
43
|
"dev:layers": "nuxi dev playground-layers --trace-warnings",
|
|
41
44
|
"debug": "nuxi dev playground --inspect",
|
|
42
45
|
"dev:build": "nuxi build playground",
|
|
43
46
|
"dev:layers:build": "nuxi build playground-layers",
|
|
44
|
-
"dev:prepare": "
|
|
47
|
+
"dev:prepare": "PLAYGROUND_MODULE_BUILD=true nuxt-module-build build --stub && PLAYGROUND_MODULE_BUILD=true nuxt-module-build prepare && nuxi prepare playground-layers && nuxi prepare playground",
|
|
45
48
|
"dev:start": "node ./playground/.output/server/index.mjs",
|
|
46
49
|
"client:build": "nuxi generate client",
|
|
47
50
|
"client:dev": "nuxi dev client --port 3300",
|
|
48
|
-
"
|
|
49
|
-
"typecheck": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
|
|
51
|
+
"typecheck": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit && cd ../playground-layers && vue-tsc --noEmit",
|
|
50
52
|
"docs:dev": "vitepress dev docs --port 5000",
|
|
51
53
|
"docs:build": "vitepress build docs",
|
|
52
54
|
"docs:serve": "vitepress serve docs --port 5000",
|
|
55
|
+
"typedoc": "./scripts/typedoc.sh",
|
|
53
56
|
"cypress": "cypress run --e2e",
|
|
54
57
|
"cypress:open": "cypress open --e2e",
|
|
55
58
|
"lint": "eslint ./src",
|
|
@@ -59,45 +62,49 @@
|
|
|
59
62
|
"test:ci": "vitest run",
|
|
60
63
|
"test:coverage": "vitest run --coverage",
|
|
61
64
|
"prettier": "prettier --check .",
|
|
62
|
-
"prettier:fix": "prettier --write ."
|
|
65
|
+
"prettier:fix": "prettier --write .",
|
|
66
|
+
"styles:build": "postcss ./css/index.css -o ./src/runtime/css/output.css",
|
|
67
|
+
"styles:watch": "postcss ./css/index.css -o ./src/runtime/css/output.css --watch"
|
|
63
68
|
},
|
|
64
69
|
"dependencies": {
|
|
70
|
+
"@clack/prompts": "^0.10.0",
|
|
65
71
|
"@graphql-codegen/cli": "^5.0.5",
|
|
66
72
|
"@graphql-codegen/schema-ast": "^4.1.0",
|
|
67
|
-
"@graphql-
|
|
68
|
-
"@
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"dependency-graph": "^1.0.0",
|
|
73
|
-
"graphql-typescript-deluxe": "^0.0.2",
|
|
74
|
-
"inquirer": "^9.3.2",
|
|
75
|
-
"minisearch": "^6.3.0",
|
|
76
|
-
"picocolors": "^1.0.1"
|
|
73
|
+
"@graphql-tools/utils": "^10.8.6",
|
|
74
|
+
"@nuxt/devtools-kit": "^2.3.1",
|
|
75
|
+
"graphql-typescript-deluxe": "^0.0.13",
|
|
76
|
+
"minisearch": "^7.1.2",
|
|
77
|
+
"picocolors": "^1.1.1"
|
|
77
78
|
},
|
|
78
79
|
"devDependencies": {
|
|
79
|
-
"@iconify-json/carbon": "^1.
|
|
80
|
-
"@nuxt/devtools": "^
|
|
81
|
-
"@nuxt/devtools-ui-kit": "
|
|
82
|
-
"@nuxt/eslint": "^
|
|
83
|
-
"@nuxt/kit": "^3.
|
|
84
|
-
"@nuxt/module-builder": "^0.
|
|
85
|
-
"@nuxt/schema": "^3.
|
|
86
|
-
"@types/
|
|
87
|
-
"@types/cli-table": "^0.3.4",
|
|
88
|
-
"@types/inquirer": "^9.0.7",
|
|
80
|
+
"@iconify-json/carbon": "^1.2.8",
|
|
81
|
+
"@nuxt/devtools": "^2.3.1",
|
|
82
|
+
"@nuxt/devtools-ui-kit": "^2.3.1",
|
|
83
|
+
"@nuxt/eslint": "^1.2.0",
|
|
84
|
+
"@nuxt/kit": "^3.16.2",
|
|
85
|
+
"@nuxt/module-builder": "^1.0.1",
|
|
86
|
+
"@nuxt/schema": "^3.16.2",
|
|
87
|
+
"@types/micromatch": "^4.0.9",
|
|
89
88
|
"cypress": "^13.12.0",
|
|
90
|
-
"eslint": "^
|
|
91
|
-
"eslint-config-prettier": "^
|
|
92
|
-
"eslint-plugin-prettier": "^5.
|
|
93
|
-
"
|
|
94
|
-
"nuxt": "^3.
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
89
|
+
"eslint": "^9.23.0",
|
|
90
|
+
"eslint-config-prettier": "^10.1.1",
|
|
91
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
92
|
+
"mermaid": "^11.5.0",
|
|
93
|
+
"nuxt": "^3.16.2",
|
|
94
|
+
"postcss": "^8.5.3",
|
|
95
|
+
"postcss-cli": "^11.0.1",
|
|
96
|
+
"postcss-import": "^16.1.0",
|
|
97
|
+
"postcss-nested-import": "^1.3.0",
|
|
98
|
+
"postcss-replace": "^2.0.1",
|
|
99
|
+
"postcss-url": "^10.1.3",
|
|
100
|
+
"prettier": "^3.5.3",
|
|
101
|
+
"tailwindcss": "^3.4.17",
|
|
102
|
+
"tailwindcss-scoped-preflight": "^3.4.10",
|
|
103
|
+
"typedoc": "^0.28.1",
|
|
104
|
+
"typedoc-plugin-markdown": "^4.6.1",
|
|
105
|
+
"typedoc-vitepress-theme": "^1.1.2",
|
|
106
|
+
"vitepress": "^1.6.3",
|
|
107
|
+
"vitepress-plugin-mermaid": "^2.0.17",
|
|
108
|
+
"vitest": "^1.6.0"
|
|
102
109
|
}
|
|
103
110
|
}
|