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.
Files changed (93) hide show
  1. package/README.md +101 -19
  2. package/dist/client/200.html +10 -10
  3. package/dist/client/404.html +10 -10
  4. package/dist/client/_nuxt/BM34SYth.js +1 -0
  5. package/dist/client/_nuxt/CROlboVl.js +1 -0
  6. package/dist/client/_nuxt/D5hBL5aZ.js +25 -0
  7. package/dist/client/_nuxt/FTbv7CO6.js +1 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/de61b0f7-ec5c-4f2f-addb-b5017c30afb1.json +1 -0
  10. package/dist/client/_nuxt/entry.Cn9qfNGa.css +1 -0
  11. package/dist/client/_nuxt/error-404.ehK72JOs.css +1 -0
  12. package/dist/client/_nuxt/error-500._g0akJim.css +1 -0
  13. package/dist/client/_nuxt/index.DGEN-H8t.css +1 -0
  14. package/dist/client/_nuxt/lIgCBhS_.js +2 -0
  15. package/dist/client/index.html +10 -10
  16. package/dist/client-options.d.mts +6 -0
  17. package/dist/client-options.mjs +5 -0
  18. package/dist/module.d.mts +74 -340
  19. package/dist/module.json +4 -4
  20. package/dist/module.mjs +1384 -589
  21. package/dist/runtime/components/CodeFrame.vue +52 -0
  22. package/dist/runtime/components/CodeFrame.vue.d.ts +7 -0
  23. package/dist/runtime/components/DevModeOverlay.vue +52 -0
  24. package/dist/runtime/components/DevModeOverlay.vue.d.ts +3 -0
  25. package/dist/runtime/components/ErrorExtensions.vue +21 -0
  26. package/dist/runtime/components/ErrorExtensions.vue.d.ts +5 -0
  27. package/dist/runtime/components/ErrorGroup.vue +78 -0
  28. package/dist/runtime/components/ErrorGroup.vue.d.ts +9 -0
  29. package/dist/runtime/composables/nuxtApp.d.ts +2 -2
  30. package/dist/runtime/composables/nuxtApp.js +21 -1
  31. package/dist/runtime/composables/useAsyncGraphqlQuery.d.ts +7 -7
  32. package/dist/runtime/composables/useAsyncGraphqlQuery.js +10 -2
  33. package/dist/runtime/composables/useGraphqlMutation.d.ts +4 -4
  34. package/dist/runtime/composables/useGraphqlMutation.js +1 -1
  35. package/dist/runtime/composables/useGraphqlQuery.d.ts +4 -4
  36. package/dist/runtime/composables/useGraphqlQuery.js +1 -1
  37. package/dist/runtime/composables/useGraphqlState.d.ts +1 -1
  38. package/dist/runtime/composables/useGraphqlState.js +1 -1
  39. package/dist/runtime/composables/useGraphqlUploadMutation.d.ts +4 -4
  40. package/dist/runtime/composables/useGraphqlUploadMutation.js +2 -2
  41. package/dist/runtime/css/output.css +1 -0
  42. package/dist/runtime/helpers/composables.d.ts +17 -20
  43. package/dist/runtime/helpers/composables.js +0 -5
  44. package/dist/runtime/plugins/devMode.d.ts +2 -0
  45. package/dist/runtime/plugins/devMode.js +23 -0
  46. package/dist/runtime/plugins/provideState.d.ts +1 -1
  47. package/dist/runtime/{serverHandler → server/api}/debug.js +3 -7
  48. package/dist/runtime/server/api/mutation.js +29 -0
  49. package/dist/runtime/server/api/query.js +30 -0
  50. package/dist/runtime/server/api/upload.d.ts +2 -0
  51. package/dist/runtime/{serverHandler → server/api}/upload.js +13 -11
  52. package/dist/runtime/{serverHandler → server}/helpers/index.d.ts +10 -12
  53. package/dist/runtime/{serverHandler → server}/helpers/index.js +9 -26
  54. package/dist/runtime/server/utils/doGraphqlRequest.d.ts +18 -0
  55. package/dist/runtime/server/utils/doGraphqlRequest.js +68 -0
  56. package/dist/runtime/server/utils/index.d.ts +1 -1
  57. package/dist/runtime/server/utils/index.js +1 -1
  58. package/dist/runtime/server/utils/useGraphqlMutation.d.ts +4 -4
  59. package/dist/runtime/server/utils/useGraphqlQuery.d.ts +4 -4
  60. package/dist/runtime/settings/index.d.ts +0 -14
  61. package/dist/runtime/settings/index.js +0 -6
  62. package/dist/runtime/types.d.ts +204 -3
  63. package/dist/server-options.d.mts +8 -0
  64. package/dist/server-options.mjs +5 -0
  65. package/dist/shared/nuxt-graphql-middleware.xfMm4rGk.d.mts +523 -0
  66. package/dist/types.d.mts +1 -7
  67. package/dist/utils.d.mts +15 -0
  68. package/dist/utils.mjs +18 -0
  69. package/package.json +64 -57
  70. package/dist/client/_nuxt/BS583yk8.js +0 -25
  71. package/dist/client/_nuxt/CZ2Qwgdk.js +0 -2
  72. package/dist/client/_nuxt/DpxjPVZy.js +0 -1
  73. package/dist/client/_nuxt/GOrnHr4p.js +0 -1
  74. package/dist/client/_nuxt/builds/meta/f823ebfd-daab-468f-8f6f-07a236da64bd.json +0 -1
  75. package/dist/client/_nuxt/entry.AjgXSF89.css +0 -1
  76. package/dist/client/_nuxt/error-404.BJkSn6RI.css +0 -1
  77. package/dist/client/_nuxt/error-500.TOCKLquH.css +0 -1
  78. package/dist/client/_nuxt/exxdaCPN.js +0 -1
  79. package/dist/client/_nuxt/index.D19Q16VT.css +0 -1
  80. package/dist/module.cjs +0 -5
  81. package/dist/module.d.ts +0 -358
  82. package/dist/runtime/clientOptions/index.d.ts +0 -2
  83. package/dist/runtime/clientOptions/index.js +0 -3
  84. package/dist/runtime/serverHandler/index.js +0 -78
  85. package/dist/runtime/serverHandler/tsconfig.json +0 -3
  86. package/dist/runtime/serverOptions/defineGraphqlServerOptions.d.ts +0 -3
  87. package/dist/runtime/serverOptions/defineGraphqlServerOptions.js +0 -3
  88. package/dist/runtime/serverOptions/index.d.ts +0 -2
  89. package/dist/runtime/serverOptions/index.js +0 -2
  90. package/dist/types.d.ts +0 -7
  91. /package/dist/runtime/{serverHandler → server/api}/debug.d.ts +0 -0
  92. /package/dist/runtime/{serverHandler/index.d.ts → server/api/mutation.d.ts} +0 -0
  93. /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.2",
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
- "import": {
14
- "types": "./dist/types.d.ts",
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/runtime/clientOptions": {
27
- "import": "./dist/runtime/clientOptions/index.js",
28
- "types": "./dist/runtime/clientOptions/index.d.ts"
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": "MODULE_BUILD=true nuxt-module-build build --stub && MODULE_BUILD=true nuxt-module-build prepare && nuxi prepare playground && nuxi prepare playground-layers",
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
- "typedoc": "typedoc --plugin typedoc-plugin-markdown --out foobar",
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-codegen/typescript": "^4.1.3",
68
- "@graphql-codegen/typescript-generic-sdk": "^4.0.1",
69
- "@graphql-codegen/typescript-operations": "^4.4.1",
70
- "@graphql-tools/utils": "^10.2.2",
71
- "@nuxt/devtools-kit": "1.3.7",
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.1.36",
80
- "@nuxt/devtools": "^1.3.7",
81
- "@nuxt/devtools-ui-kit": "1.3.7",
82
- "@nuxt/eslint": "^0.3.13",
83
- "@nuxt/kit": "^3.15.4",
84
- "@nuxt/module-builder": "^0.8.4",
85
- "@nuxt/schema": "^3.15.4",
86
- "@types/capture-console": "^1.0.5",
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": "^8.57.0",
91
- "eslint-config-prettier": "^9.1.0",
92
- "eslint-plugin-prettier": "^5.1.3",
93
- "jsdoc-to-markdown": "^8.0.1",
94
- "nuxt": "^3.15.4",
95
- "prettier": "^3.3.2",
96
- "strip-ansi": "^7.1.0",
97
- "typedoc": "^0.26.3",
98
- "typedoc-plugin-markdown": "^4.1.1",
99
- "vitepress": "^1.5.0",
100
- "vitest": "^1.6.0",
101
- "vue-tsc": "^2.1.6"
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
  }