vona-mock 6.0.104 → 6.0.105

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -9
  2. package/package.json +5 -6
package/dist/index.js CHANGED
@@ -1,15 +1,18 @@
1
1
  import { parseModuleInfo, ParseModuleNameLevelInit } from '@cabloy/module-info-pro';
2
2
  import { useApp } from 'vona-core';
3
+
3
4
  const ParseModuleNameLevel = ParseModuleNameLevelInit + 2;
4
- export const app = useApp();
5
- export function mockPath(path) {
6
- const moduleInfo = parseModuleInfo(ParseModuleNameLevel);
7
- return app.util.combineApiPath(path, moduleInfo.relativeName, false, true);
5
+ const app = useApp();
6
+ function mockPath(path) {
7
+ const moduleInfo = parseModuleInfo(ParseModuleNameLevel);
8
+ return app.util.combineApiPath(path, moduleInfo.relativeName, false, true);
8
9
  }
9
- export function mockUrl(path) {
10
- const moduleInfo = parseModuleInfo(ParseModuleNameLevel);
11
- return app.util.combineApiPath(path, moduleInfo.relativeName, true, true);
10
+ function mockUrl(path) {
11
+ const moduleInfo = parseModuleInfo(ParseModuleNameLevel);
12
+ return app.util.combineApiPath(path, moduleInfo.relativeName, true, true);
12
13
  }
13
- export function mockModuleInfo() {
14
- return parseModuleInfo(ParseModuleNameLevel);
14
+ function mockModuleInfo() {
15
+ return parseModuleInfo(ParseModuleNameLevel);
15
16
  }
17
+
18
+ export { app, mockModuleInfo, mockPath, mockUrl };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-mock",
3
3
  "type": "module",
4
- "version": "6.0.104",
4
+ "version": "6.0.105",
5
5
  "description": "vona mock",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -25,14 +25,13 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@cabloy/module-info": "^1.3.31",
29
- "@cabloy/module-info-pro": "^1.0.39",
30
- "vona-core": "^5.0.104"
28
+ "@cabloy/module-info": "^1.3.32",
29
+ "@cabloy/module-info-pro": "^1.0.40",
30
+ "vona-core": "^5.0.105"
31
31
  },
32
32
  "gitHead": "0eab9dc4a5622caffe89e7b1b3f02c08ccbc4c4b",
33
33
  "scripts": {
34
- "lint": "eslint .",
35
34
  "clean": "rimraf dist tsconfig.tsbuildinfo",
36
- "tsc:publish": "npm run clean && tsc"
35
+ "tsc:publish": "npm run clean && vona :bin:buildGeneral && tsc"
37
36
  }
38
37
  }