@stonecrop/nuxt 0.42.0 → 0.44.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.json +1 -1
- package/package.json +17 -17
- package/templates/resolvers.ts +2 -6
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
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.
|
|
64
|
-
"@stonecrop/
|
|
65
|
-
"@stonecrop/
|
|
66
|
-
"@stonecrop/
|
|
67
|
-
"@stonecrop/graphql-client": "0.
|
|
68
|
-
"@stonecrop/
|
|
69
|
-
"@stonecrop/
|
|
70
|
-
"@stonecrop/
|
|
71
|
-
"@stonecrop/schema": "0.
|
|
72
|
-
"@stonecrop/
|
|
73
|
-
"@stonecrop/
|
|
74
|
-
"@stonecrop/themes": "0.
|
|
63
|
+
"@stonecrop/aform": "0.44.0",
|
|
64
|
+
"@stonecrop/desktop": "0.44.0",
|
|
65
|
+
"@stonecrop/casl-middleware": "0.44.0",
|
|
66
|
+
"@stonecrop/code-editor": "0.44.0",
|
|
67
|
+
"@stonecrop/graphql-client": "0.44.0",
|
|
68
|
+
"@stonecrop/atable": "0.44.0",
|
|
69
|
+
"@stonecrop/graphql-middleware": "0.44.0",
|
|
70
|
+
"@stonecrop/nuxt-grafserv": "0.44.0",
|
|
71
|
+
"@stonecrop/schema": "0.44.0",
|
|
72
|
+
"@stonecrop/stonecrop": "0.44.0",
|
|
73
|
+
"@stonecrop/node-editor": "0.44.0",
|
|
74
|
+
"@stonecrop/themes": "0.44.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@eslint/js": "^10.0.1",
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
"@nuxt/eslint-config": "^1.16.0",
|
|
82
82
|
"@nuxt/module-builder": "^1.0.2",
|
|
83
83
|
"@nuxt/schema": "^4.4.8",
|
|
84
|
-
"@nuxt/test-utils": "^4.
|
|
84
|
+
"@nuxt/test-utils": "^4.3.1",
|
|
85
85
|
"@types/prompts": "^2.4.9",
|
|
86
86
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
87
|
-
"@vitest/browser-playwright": "
|
|
88
|
-
"@vitest/coverage-istanbul": "
|
|
87
|
+
"@vitest/browser-playwright": "5.0.1",
|
|
88
|
+
"@vitest/coverage-istanbul": "5.0.1",
|
|
89
89
|
"@vue/test-utils": "^2.4.10",
|
|
90
90
|
"baseline-browser-mapping": "latest",
|
|
91
91
|
"browserslist": "latest",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"typescript": "^6.0.3",
|
|
104
104
|
"typescript-eslint": "^8.62.1",
|
|
105
105
|
"vite": "^8.2.2",
|
|
106
|
-
"vitest": "
|
|
106
|
+
"vitest": "5.0.1",
|
|
107
107
|
"vue": "^3.5.33",
|
|
108
108
|
"vue-router": "^5.0.6",
|
|
109
109
|
"vue-tsc": "^3.3.6"
|
package/templates/resolvers.ts
CHANGED
|
@@ -314,13 +314,9 @@ export const resolvers = {
|
|
|
314
314
|
return updated as Record<string, unknown>
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
// A new record carries its key only when a user typed one, a natural key.
|
|
317
318
|
const declared = patch[lookupField]
|
|
318
|
-
const identity =
|
|
319
|
-
typeof declared === 'string' && declared !== ''
|
|
320
|
-
? declared
|
|
321
|
-
: typeof declared === 'number'
|
|
322
|
-
? String(declared)
|
|
323
|
-
: nextId(d)
|
|
319
|
+
const identity = declared === undefined ? nextId(d) : String(declared)
|
|
324
320
|
const defaults =
|
|
325
321
|
d === 'project'
|
|
326
322
|
? { status: 'Active', description: '' }
|