vite-plugin-mock-dev-server 2.0.4 → 2.0.6
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/README.md +2 -1
- package/dist/index.mjs +2 -2
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -8,7 +8,8 @@ Vite Plugin for API mock dev server.
|
|
|
8
8
|
<img alt="npm peer dependency version" src="https://img.shields.io/npm/dependency-version/vite-plugin-mock-dev-server/peer/vite?style=flat-square">
|
|
9
9
|
<img alt="npm" src="https://img.shields.io/npm/dm/vite-plugin-mock-dev-server?style=flat-square">
|
|
10
10
|
<br>
|
|
11
|
-
<img alt="
|
|
11
|
+
<img alt="package esm only" src="https://img.shields.io/badge/package-ESM--only-ffe536.svg">
|
|
12
|
+
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/pengzhanbo/vite-plugin-mock-dev-server/release.yaml?style=flat-square">
|
|
12
13
|
<a href="https://app.fossa.com/projects/git%2Bgithub.com%2Fpengzhanbo%2Fvite-plugin-mock-dev-server?ref=badge_shield"><img alt="fossa status" src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fpengzhanbo%2Fvite-plugin-mock-dev-server.svg?type=shield"></a>
|
|
13
14
|
</p>
|
|
14
15
|
|
package/dist/index.mjs
CHANGED
|
@@ -285,7 +285,7 @@ var Compiler = class extends EventEmitter {
|
|
|
285
285
|
glob(pattern, {
|
|
286
286
|
ignore,
|
|
287
287
|
cwd: path.join(this.cwd, this.options.dir)
|
|
288
|
-
}).then((files) => files.map((file) => () => this.load(path.join(this.options.dir, file)))).then((loaders) => promiseParallel(loaders, 64)).then(() => this.updateMockData());
|
|
288
|
+
}).then((files) => files.map((file) => () => this.load(normalizePath(path.join(this.options.dir, file))))).then((loaders) => promiseParallel(loaders, 64)).then(() => this.updateMockData());
|
|
289
289
|
if (!watch$1) return;
|
|
290
290
|
this.watchMockEntry(isMatch);
|
|
291
291
|
this.watchDeps();
|
|
@@ -411,7 +411,7 @@ export default processMockData(mockList);`;
|
|
|
411
411
|
//#endregion
|
|
412
412
|
//#region package.json
|
|
413
413
|
var name = "vite-plugin-mock-dev-server";
|
|
414
|
-
var version = "2.0.
|
|
414
|
+
var version = "2.0.6";
|
|
415
415
|
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region src/build/packageJson.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-mock-dev-server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.6",
|
|
5
5
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://vite-plugin-mock-dev-server.netlify.app",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@pengzhanbo/utils": "^2.1.
|
|
63
|
+
"@pengzhanbo/utils": "^2.1.2",
|
|
64
64
|
"ansis": "^4.2.0",
|
|
65
65
|
"chokidar": "^4.0.3",
|
|
66
66
|
"co-body": "^6.2.0",
|
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
"vite": "npm:rolldown-vite@latest"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
|
-
"access": "public"
|
|
86
|
+
"access": "public",
|
|
87
|
+
"provenance": true
|
|
87
88
|
},
|
|
88
89
|
"scripts": {
|
|
89
90
|
"build": "tsdown"
|