@vtj/local 0.9.0-alpha.2 → 0.9.0-alpha.21

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.
@@ -31,6 +31,7 @@ export class PluginRepository {
31
31
  n.type = "block";
32
32
  n.fromType = "Plugin";
33
33
  n.preset = true;
34
+ n.category = "\u63D2\u4EF6\u533A\u5757";
34
35
  return n;
35
36
  });
36
37
  const ext = [".css", ".js", ".json"];
@@ -55,7 +56,8 @@ export class PluginRepository {
55
56
  name: this.getName(dep),
56
57
  title: description || name,
57
58
  library: name,
58
- urls: urls.join(",")
59
+ urls: urls.join(","),
60
+ category: "\u63D2\u4EF6\u533A\u5757"
59
61
  });
60
62
  }
61
63
  }
package/dist/service.mjs CHANGED
@@ -27,6 +27,7 @@ export async function getExtension(_body, opts) {
27
27
  const { vtj = {} } = pkg || {};
28
28
  const extension = {
29
29
  ...vtj.extension || {},
30
+ history: vtj.history || "hash",
30
31
  __BASE_PATH__: opts.staticBase,
31
32
  __adapters__: vtj.adapters || {}
32
33
  };
@@ -197,7 +198,13 @@ export async function genVueContent(project, dsl) {
197
198
  const componentMap = new Map(
198
199
  Object.entries(materials)
199
200
  );
200
- const content = await generator(dsl, componentMap, project.dependencies);
201
+ const content = await generator(
202
+ dsl,
203
+ componentMap,
204
+ project.dependencies
205
+ ).catch((e) => {
206
+ throw e;
207
+ });
201
208
  return success(content);
202
209
  }
203
210
  export async function createRawPage(file) {
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@vtj/local",
3
3
  "private": false,
4
- "version": "0.9.0-alpha.2",
4
+ "version": "0.9.0-alpha.21",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "formidable": "~3.5.1",
8
- "@vtj/coder": "~0.9.0-alpha.2",
9
- "@vtj/core": "~0.9.0-alpha.2",
10
- "@vtj/node": "~0.9.0-alpha.0"
8
+ "@vtj/core": "~0.9.0-alpha.21",
9
+ "@vtj/node": "~0.9.0-alpha.2",
10
+ "@vtj/coder": "~0.9.0-alpha.21"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/formidable": "~3.4.5",
14
14
  "unbuild": "~2.0.0",
15
15
  "vite": "~5.4.0",
16
16
  "vitest": "~2.1.1",
17
- "@vtj/cli": "~0.9.0-alpha.0"
17
+ "@vtj/cli": "~0.9.0-alpha.2"
18
18
  },
19
19
  "exports": {
20
20
  ".": {