vite-plugin-mock-dev-server 1.3.4 → 1.4.1
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 +47 -46
- package/README.zh-CN.md +28 -27
- package/dist/index.cjs +1701 -30
- package/dist/index.d.cts +38 -9
- package/dist/index.d.ts +37 -9
- package/dist/index.js +1658 -30
- package/package.json +47 -51
package/package.json
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-mock-dev-server",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.4.1",
|
|
5
|
+
"packageManager": "pnpm@8.11.0",
|
|
6
|
+
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo)",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://vite-plugin-mock-dev-server.netlify.app",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/pengzhanbo/vite-plugin-mock-dev-server"
|
|
12
|
+
},
|
|
4
13
|
"keywords": [
|
|
5
14
|
"vite",
|
|
6
15
|
"plugin",
|
|
@@ -9,84 +18,71 @@
|
|
|
9
18
|
"mock-server",
|
|
10
19
|
"development"
|
|
11
20
|
],
|
|
12
|
-
"homepage": "https://vite-plugin-mock-dev-server.netlify.app",
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "https://github.com/pengzhanbo/vite-plugin-mock-dev-server"
|
|
16
|
-
},
|
|
17
|
-
"license": "MIT",
|
|
18
|
-
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo)",
|
|
19
|
-
"type": "module",
|
|
20
21
|
"exports": {
|
|
21
22
|
".": {
|
|
22
|
-
"require": {
|
|
23
|
-
"default": "./dist/index.cjs",
|
|
24
|
-
"types": "./dist/index.d.cts"
|
|
25
|
-
},
|
|
26
23
|
"import": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./dist/index.d.cts",
|
|
29
|
+
"default": "./dist/index.cjs"
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
"./package.json": "./package.json"
|
|
32
33
|
},
|
|
33
|
-
"main": "dist/index.
|
|
34
|
-
"module": "dist/index.js",
|
|
34
|
+
"main": "dist/index.js",
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"files": [
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
|
-
"
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": "^16 || ^18 || >= 20"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"vite": ">=3.0.0"
|
|
44
|
+
},
|
|
40
45
|
"dependencies": {
|
|
41
|
-
"@pengzhanbo/utils": "^1.
|
|
46
|
+
"@pengzhanbo/utils": "^1.1.1",
|
|
42
47
|
"chokidar": "^3.5.3",
|
|
43
48
|
"co-body": "^6.1.0",
|
|
44
49
|
"cookies": "^0.8.0",
|
|
45
50
|
"cors": "^2.8.5",
|
|
46
51
|
"debug": "^4.3.4",
|
|
47
|
-
"esbuild": "^0.19.
|
|
48
|
-
"fast-glob": "^3.3.
|
|
52
|
+
"esbuild": "^0.19.9",
|
|
53
|
+
"fast-glob": "^3.3.2",
|
|
49
54
|
"formidable": "2.1.1",
|
|
50
|
-
"http-status": "^1.
|
|
51
|
-
"is-core-module": "^2.13.
|
|
55
|
+
"http-status": "^1.7.3",
|
|
56
|
+
"is-core-module": "^2.13.1",
|
|
52
57
|
"json5": "^2.2.3",
|
|
53
58
|
"mime-types": "^2.1.35",
|
|
54
59
|
"path-to-regexp": "^6.2.1",
|
|
55
60
|
"picocolors": "^1.0.0",
|
|
56
|
-
"ws": "^8.
|
|
61
|
+
"ws": "^8.15.1"
|
|
57
62
|
},
|
|
58
63
|
"devDependencies": {
|
|
59
|
-
"@pengzhanbo/eslint-config": "^
|
|
60
|
-
"@
|
|
61
|
-
"@types/
|
|
62
|
-
"@types/
|
|
63
|
-
"@types/
|
|
64
|
-
"@types/debug": "^4.1.8",
|
|
64
|
+
"@pengzhanbo/eslint-config": "^1.3.1",
|
|
65
|
+
"@types/co-body": "^6.1.3",
|
|
66
|
+
"@types/cookies": "^0.7.10",
|
|
67
|
+
"@types/cors": "^2.8.17",
|
|
68
|
+
"@types/debug": "^4.1.12",
|
|
65
69
|
"@types/formidable": "2.0.6",
|
|
66
|
-
"@types/is-core-module": "^2.2.
|
|
67
|
-
"@types/mime-types": "^2.1.
|
|
68
|
-
"@types/node": "^20.
|
|
69
|
-
"@types/ws": "^8.5.
|
|
70
|
-
"bumpp": "^9.2.
|
|
71
|
-
"conventional-changelog-cli": "^
|
|
72
|
-
"eslint": "^8.
|
|
70
|
+
"@types/is-core-module": "^2.2.2",
|
|
71
|
+
"@types/mime-types": "^2.1.4",
|
|
72
|
+
"@types/node": "^20.10.3",
|
|
73
|
+
"@types/ws": "^8.5.10",
|
|
74
|
+
"bumpp": "^9.2.1",
|
|
75
|
+
"conventional-changelog-cli": "^4.1.0",
|
|
76
|
+
"eslint": "^8.55.0",
|
|
73
77
|
"mockjs": "^1.1.0",
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"vitest": "^0.34.4"
|
|
80
|
-
},
|
|
81
|
-
"peerDependencies": {
|
|
82
|
-
"vite": ">=3.0.0"
|
|
83
|
-
},
|
|
84
|
-
"packageManager": "pnpm@8.6.9",
|
|
85
|
-
"engines": {
|
|
86
|
-
"node": "^14.18.0 || >=16"
|
|
78
|
+
"tsup": "^8.0.1",
|
|
79
|
+
"typescript": "^5.3.3",
|
|
80
|
+
"vite": "^5.0.8",
|
|
81
|
+
"vitepress": "^1.0.0-rc.31",
|
|
82
|
+
"vitest": "^1.0.4"
|
|
87
83
|
},
|
|
88
84
|
"scripts": {
|
|
89
|
-
"build": "tsup",
|
|
85
|
+
"build": "tsup && node ./deprecate.mjs",
|
|
90
86
|
"dev": "DEBUG=vite:mock-dev-server vite example --config ./example/vite.config.ts",
|
|
91
87
|
"example:build": "DEBUG=vite:mock-dev-server vite build example --config ./example/vite.config.ts",
|
|
92
88
|
"docs:build": "vitepress build docs",
|