@vtj/local 0.8.12 → 0.8.14
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/service.mjs +4 -0
- package/package.json +4 -4
package/dist/service.mjs
CHANGED
|
@@ -35,7 +35,11 @@ export async function init() {
|
|
|
35
35
|
const description = vtj.description || pkg.description || "";
|
|
36
36
|
let dsl = repository.get(id);
|
|
37
37
|
if (dsl) {
|
|
38
|
+
const oId = dsl.id;
|
|
38
39
|
Object.assign(dsl, { id, name, description });
|
|
40
|
+
if (oId !== id) {
|
|
41
|
+
repository.save(id, dsl);
|
|
42
|
+
}
|
|
39
43
|
return success(dsl);
|
|
40
44
|
} else {
|
|
41
45
|
const model = new ProjectModel({
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/local",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.14",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"formidable": "~3.5.1",
|
|
8
|
-
"@vtj/
|
|
9
|
-
"@vtj/
|
|
10
|
-
"@vtj/
|
|
8
|
+
"@vtj/coder": "~0.8.14",
|
|
9
|
+
"@vtj/core": "~0.8.14",
|
|
10
|
+
"@vtj/node": "~0.8.2"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/formidable": "~3.4.5",
|