@stonecrop/nuxt 0.56.2 → 0.56.3
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.json +1 -1
- package/package.json +15 -15
- package/templates/resolvers.ts +6 -1
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/nuxt",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.3",
|
|
4
4
|
"description": "Nuxt module for Stonecrop",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nuxt",
|
|
@@ -60,18 +60,18 @@
|
|
|
60
60
|
"pathe": "^2.0.3",
|
|
61
61
|
"pinia": "^3.0.4",
|
|
62
62
|
"prompts": "^2.4.2",
|
|
63
|
-
"@stonecrop/aform": "0.56.
|
|
64
|
-
"@stonecrop/atable": "0.56.
|
|
65
|
-
"@stonecrop/
|
|
66
|
-
"@stonecrop/
|
|
67
|
-
"@stonecrop/
|
|
68
|
-
"@stonecrop/graphql-
|
|
69
|
-
"@stonecrop/
|
|
70
|
-
"@stonecrop/schema": "0.56.
|
|
71
|
-
"@stonecrop/
|
|
72
|
-
"@stonecrop/
|
|
73
|
-
"@stonecrop/themes": "0.56.
|
|
74
|
-
"@stonecrop/nuxt-grafserv": "0.56.
|
|
63
|
+
"@stonecrop/aform": "0.56.3",
|
|
64
|
+
"@stonecrop/atable": "0.56.3",
|
|
65
|
+
"@stonecrop/casl-middleware": "0.56.3",
|
|
66
|
+
"@stonecrop/code-editor": "0.56.3",
|
|
67
|
+
"@stonecrop/desktop": "0.56.3",
|
|
68
|
+
"@stonecrop/graphql-client": "0.56.3",
|
|
69
|
+
"@stonecrop/graphql-middleware": "0.56.3",
|
|
70
|
+
"@stonecrop/schema": "0.56.3",
|
|
71
|
+
"@stonecrop/stonecrop": "0.56.3",
|
|
72
|
+
"@stonecrop/node-editor": "0.56.3",
|
|
73
|
+
"@stonecrop/themes": "0.56.3",
|
|
74
|
+
"@stonecrop/nuxt-grafserv": "0.56.3"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@eslint/js": "^10.0.1",
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
"nuxt-graphql-middleware": "^5.4.0",
|
|
100
100
|
"playwright": "^1.63.0",
|
|
101
101
|
"postgraphile": "^5.0.3",
|
|
102
|
-
"rolldown": "1.2.
|
|
102
|
+
"rolldown": "1.2.15",
|
|
103
103
|
"temporal-polyfill": "^1.0.5",
|
|
104
104
|
"typescript": "^6.0.3",
|
|
105
105
|
"typescript-eslint": "^8.62.1",
|
|
106
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@1.
|
|
106
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.4.0",
|
|
107
107
|
"vitest": "5.0.5",
|
|
108
108
|
"vue": "^3.5.33",
|
|
109
109
|
"vue-router": "^5.0.6",
|
package/templates/resolvers.ts
CHANGED
|
@@ -181,6 +181,11 @@ export const actionHandlers: Record<string, Record<string, ActionHandler>> = {
|
|
|
181
181
|
// Resolvers (Grafast plan format)
|
|
182
182
|
// ============================================================
|
|
183
183
|
|
|
184
|
+
// One action's reply: the dispatcher's outcome, and the record as `stonecropRecord` returns it.
|
|
185
|
+
// Declared because, left to infer it, `loadOne` settles on the shape of an early failure, which
|
|
186
|
+
// carries no `record`, and rejects the replies that do.
|
|
187
|
+
type ActionReply = { success: boolean; data: unknown; error: string | null; record?: Project | Task | null }
|
|
188
|
+
|
|
184
189
|
export const resolvers = {
|
|
185
190
|
Query: {
|
|
186
191
|
plans: {
|
|
@@ -258,7 +263,7 @@ export const resolvers = {
|
|
|
258
263
|
object({ doctype: $doctype, action: $action, actionArgs: $actionArgs }),
|
|
259
264
|
async (specs: readonly any[]) => {
|
|
260
265
|
return Promise.all(
|
|
261
|
-
specs.map(async spec => {
|
|
266
|
+
specs.map(async (spec): Promise<ActionReply> => {
|
|
262
267
|
const meta = getMeta(spec.doctype)
|
|
263
268
|
if (!meta) return { success: false, data: null, error: `Unknown doctype: ${spec.doctype}` }
|
|
264
269
|
|