@fangzhongya/vue-archive 0.1.13 → 0.1.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const n=require("./router/index.cjs"),t=require("./config.cjs");function u(e){return t.userConfig(e)}const o={install:function(e,i){n.init(i),e.use(i)}};exports.init=n.init;exports.default=o;exports.defineConfig=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const t=require("./router/index.cjs"),i=require("./config.cjs");function r(n){if(typeof n=="function"){const e=n();return e instanceof Promise?e.then(i.userConfig):i.userConfig(e)}else return i.userConfig(n)}const u={install:function(n,e){t.init(e),n.use(e)}};exports.init=t.init;exports.default=u;exports.defineConfig=r;
@@ -2,7 +2,7 @@ import { init } from './router/index';
2
2
  import { Config } from './config';
3
3
  import { App } from '../vue/dist/vue.esm-bundler.js';
4
4
  import { Router } from 'vue-router';
5
- export declare function defineConfig(config: Config): Config;
5
+ export declare function defineConfig(config: Config | (() => Config | Promise<Config>)): Config | Promise<Config>;
6
6
  export { init };
7
7
  declare const _default: {
8
8
  install: (app: App, router: Router) => void;
@@ -1,16 +1,20 @@
1
1
  /* empty css */
2
- import { init as o } from "./router/index.js";
3
- import { userConfig as t } from "./config.js";
4
- function m(i) {
5
- return t(i);
2
+ import { init as i } from "./router/index.js";
3
+ import { userConfig as e } from "./config.js";
4
+ function s(t) {
5
+ if (typeof t == "function") {
6
+ const n = t();
7
+ return n instanceof Promise ? n.then(e) : e(n);
8
+ } else
9
+ return e(t);
6
10
  }
7
- const s = {
8
- install: function(i, n) {
9
- o(n), i.use(n);
11
+ const u = {
12
+ install: function(t, n) {
13
+ i(n), t.use(n);
10
14
  }
11
15
  };
12
16
  export {
13
- s as default,
14
- m as defineConfig,
15
- o as init
17
+ u as default,
18
+ s as defineConfig,
19
+ i as init
16
20
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.1.13",
4
+ "version": "0.1.14",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",
@@ -24,12 +24,12 @@
24
24
  "@codemirror/lang-javascript": "^6.2.4",
25
25
  "@codemirror/lang-json": "^6.0.2",
26
26
  "@codemirror/state": "^6.5.4",
27
- "@codemirror/view": "^6.39.12",
27
+ "@codemirror/view": "^6.39.13",
28
28
  "@fangzhongya/create": "0.2.50",
29
29
  "@fangzhongya/utils": "0.0.80",
30
30
  "@fangzhongya/vue-components": "0.1.29",
31
31
  "@highlightjs/vue-plugin": "^2.1.0",
32
- "@types/node": "^25.2.0",
32
+ "@types/node": "^25.2.2",
33
33
  "@vitejs/plugin-vue": "^6.0.4",
34
34
  "@vue/compiler-dom": "3.5.27",
35
35
  "@vue/compiler-sfc": "3.5.27",