vite-plugin-mock-dev-server
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -17,4 +17,4 @@ import { Connect, Plugin } from 'vite'; | ||
} | ||
declare type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'TRACE' | 'OPTIONS'; | ||
declare type ResponseBody = Record<string, any> | any[] | string | number | null; | ||
type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'TRACE' | 'OPTIONS'; | ||
type ResponseBody = Record<string, any> | any[] | string | number | null; | ||
interface ResponseReq { | ||
@@ -44,3 +44,3 @@ /** | ||
} | ||
declare type Headers = Record<string, any>; | ||
type Headers = Record<string, any>; | ||
interface MockOptionsItem { | ||
@@ -112,3 +112,3 @@ /** | ||
} | ||
declare type MockOptions = MockOptionsItem[]; | ||
type MockOptions = MockOptionsItem[]; | ||
@@ -115,0 +115,0 @@ declare function mockDevServerPlugin({ include, exclude, }?: MockServerPluginOptions): Plugin; |
{ | ||
"name": "vite-plugin-mock-dev-server", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"keywords": [ | ||
@@ -15,2 +15,3 @@ "vite", | ||
}, | ||
"homepage": "https://vite-plugin-mock-dev-server.netlify.app", | ||
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo)", | ||
@@ -50,7 +51,6 @@ "license": "GPL-3.0", | ||
"debug": "^4.3.4", | ||
"esbuild": "^0.15.12", | ||
"esbuild": "^0.16.9", | ||
"fast-glob": "^3.2.12", | ||
"json5": "^2.2.1", | ||
"path-to-regexp": "^6.2.1", | ||
"vite": "^3.2.0" | ||
"json5": "^2.2.2", | ||
"path-to-regexp": "^6.2.1" | ||
}, | ||
@@ -64,8 +64,11 @@ "devDependencies": { | ||
"bumpp": "^8.2.1", | ||
"eslint": "^8.26.0", | ||
"eslint": "^8.30.0", | ||
"mockjs": "^1.1.0", | ||
"prettier": "^2.7.1", | ||
"tsup": "^6.3.0", | ||
"typescript": "^4.8.4", | ||
"vite-plugin-mock-dev-server": "file:" | ||
"prettier": "^2.8.1", | ||
"tsup": "^6.5.0", | ||
"typescript": "^4.9.4", | ||
"vite": "^4.0.2", | ||
"vite-plugin-mock-dev-server": "file:", | ||
"vitepress": "1.0.0-alpha.32", | ||
"vue": "^3.2.45" | ||
}, | ||
@@ -75,5 +78,5 @@ "peerDependencies": { | ||
}, | ||
"packageManager": "pnpm@7.14.0", | ||
"packageManager": "pnpm@7.18.2", | ||
"engines": { | ||
"node": ">=16" | ||
"node": "^14.18.0 || >=16" | ||
}, | ||
@@ -83,4 +86,7 @@ "scripts": { | ||
"build": "tsup", | ||
"docs:dev": "vitepress dev docs", | ||
"docs:build": "vitepress build docs", | ||
"docs:preview": "vitepress preview docs", | ||
"release": "bumpp package.json --commit --push --tag && pnpm publish --access public" | ||
} | ||
} |
@@ -11,3 +11,3 @@ # vite-plugin-mock-dev-server | ||
<img alt="node-current" src="https://img.shields.io/node/v/vite-plugin-mock-dev-server?style=flat-square"> | ||
<img alt="GitHub package.json dependency version (prod)" src="https://img.shields.io/github/package-json/dependency-version/pengzhanbo/vite-plugin-mock-dev-server/vite?style=flat-square"> | ||
<img alt="npm peer dependency version" src="https://img.shields.io/npm/dependency-version/vite-plugin-mock-dev-server/peer/vite?style=flat-square"> | ||
<img alt="GitHub" src="https://img.shields.io/github/license/pengzhanbo/vite-plugin-mock-dev-server?style=flat-square"> | ||
@@ -38,3 +38,7 @@ </p> | ||
## Documentation | ||
See the [documentation](https://vite-plugin-mock-dev-server.netlify.app/) to learn more. | ||
[![Netlify Status](https://api.netlify.com/api/v1/badges/9ccda610-2c6a-4cd0-aeaa-a8932f2b477c/deploy-status)](https://app.netlify.com/sites/vite-plugin-mock-dev-server/deploys) | ||
## Usage | ||
@@ -416,1 +420,9 @@ | ||
``` | ||
## Archives | ||
[awesome-vite](https://github.com/vitejs/awesome-vite#helpers) | ||
## LICENSE | ||
[GPL-3.0](/LICENSE) |
@@ -13,3 +13,3 @@ # vite-plugin-mock-dev-server | ||
<img alt="node-current" src="https://img.shields.io/node/v/vite-plugin-mock-dev-server?style=flat-square"> | ||
<img alt="GitHub package.json dependency version (prod)" src="https://img.shields.io/github/package-json/dependency-version/pengzhanbo/vite-plugin-mock-dev-server/vite?style=flat-square"> | ||
<img alt="npm peer dependency version" src="https://img.shields.io/npm/dependency-version/vite-plugin-mock-dev-server/peer/vite?style=flat-square"> | ||
<img alt="GitHub" src="https://img.shields.io/github/license/pengzhanbo/vite-plugin-mock-dev-server?style=flat-square"> | ||
@@ -40,2 +40,6 @@ </p> | ||
## 文档 | ||
查看 [Documentation](https://vite-plugin-mock-dev-server.netlify.app/) 了解更多。 | ||
[![Netlify Status](https://api.netlify.com/api/v1/badges/9ccda610-2c6a-4cd0-aeaa-a8932f2b477c/deploy-status)](https://app.netlify.com/sites/vite-plugin-mock-dev-server/deploys) | ||
## 使用 | ||
@@ -408,1 +412,9 @@ | ||
``` | ||
## Archives | ||
[awesome-vite](https://github.com/vitejs/awesome-vite#helpers) | ||
## LICENSE | ||
[GPL-3.0](/LICENSE) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
89673
9
1
426
15
+ Added@esbuild/aix-ppc64@0.24.2(transitive)
+ Added@esbuild/android-arm@0.16.170.24.2(transitive)
+ Added@esbuild/android-arm64@0.16.170.24.2(transitive)
+ Added@esbuild/android-x64@0.16.170.24.2(transitive)
+ Added@esbuild/darwin-arm64@0.16.170.24.2(transitive)
+ Added@esbuild/darwin-x64@0.16.170.24.2(transitive)
+ Added@esbuild/freebsd-arm64@0.16.170.24.2(transitive)
+ Added@esbuild/freebsd-x64@0.16.170.24.2(transitive)
+ Added@esbuild/linux-arm@0.16.170.24.2(transitive)
+ Added@esbuild/linux-arm64@0.16.170.24.2(transitive)
+ Added@esbuild/linux-ia32@0.16.170.24.2(transitive)
+ Added@esbuild/linux-loong64@0.16.170.24.2(transitive)
+ Added@esbuild/linux-mips64el@0.16.170.24.2(transitive)
+ Added@esbuild/linux-ppc64@0.16.170.24.2(transitive)
+ Added@esbuild/linux-riscv64@0.16.170.24.2(transitive)
+ Added@esbuild/linux-s390x@0.16.170.24.2(transitive)
+ Added@esbuild/linux-x64@0.16.170.24.2(transitive)
+ Added@esbuild/netbsd-arm64@0.24.2(transitive)
+ Added@esbuild/netbsd-x64@0.16.170.24.2(transitive)
+ Added@esbuild/openbsd-arm64@0.24.2(transitive)
+ Added@esbuild/openbsd-x64@0.16.170.24.2(transitive)
+ Added@esbuild/sunos-x64@0.16.170.24.2(transitive)
+ Added@esbuild/win32-arm64@0.16.170.24.2(transitive)
+ Added@esbuild/win32-ia32@0.16.170.24.2(transitive)
+ Added@esbuild/win32-x64@0.16.170.24.2(transitive)
+ Added@rollup/rollup-android-arm-eabi@4.29.1(transitive)
+ Added@rollup/rollup-android-arm64@4.29.1(transitive)
+ Added@rollup/rollup-darwin-arm64@4.29.1(transitive)
+ Added@rollup/rollup-darwin-x64@4.29.1(transitive)
+ Added@rollup/rollup-freebsd-arm64@4.29.1(transitive)
+ Added@rollup/rollup-freebsd-x64@4.29.1(transitive)
+ Added@rollup/rollup-linux-arm-gnueabihf@4.29.1(transitive)
+ Added@rollup/rollup-linux-arm-musleabihf@4.29.1(transitive)
+ Added@rollup/rollup-linux-arm64-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-arm64-musl@4.29.1(transitive)
+ Added@rollup/rollup-linux-loongarch64-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-powerpc64le-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-riscv64-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-s390x-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-x64-gnu@4.29.1(transitive)
+ Added@rollup/rollup-linux-x64-musl@4.29.1(transitive)
+ Added@rollup/rollup-win32-arm64-msvc@4.29.1(transitive)
+ Added@rollup/rollup-win32-ia32-msvc@4.29.1(transitive)
+ Added@rollup/rollup-win32-x64-msvc@4.29.1(transitive)
+ Addedesbuild@0.16.170.24.2(transitive)
+ Addedrollup@4.29.1(transitive)
+ Addedvite@6.0.7(transitive)
- Removedvite@^3.2.0
- Removed@esbuild/android-arm@0.15.18(transitive)
- Removed@esbuild/linux-loong64@0.15.18(transitive)
- Removedesbuild@0.15.18(transitive)
- Removedesbuild-android-64@0.15.18(transitive)
- Removedesbuild-android-arm64@0.15.18(transitive)
- Removedesbuild-darwin-64@0.15.18(transitive)
- Removedesbuild-darwin-arm64@0.15.18(transitive)
- Removedesbuild-freebsd-64@0.15.18(transitive)
- Removedesbuild-freebsd-arm64@0.15.18(transitive)
- Removedesbuild-linux-32@0.15.18(transitive)
- Removedesbuild-linux-64@0.15.18(transitive)
- Removedesbuild-linux-arm@0.15.18(transitive)
- Removedesbuild-linux-arm64@0.15.18(transitive)
- Removedesbuild-linux-mips64le@0.15.18(transitive)
- Removedesbuild-linux-ppc64le@0.15.18(transitive)
- Removedesbuild-linux-riscv64@0.15.18(transitive)
- Removedesbuild-linux-s390x@0.15.18(transitive)
- Removedesbuild-netbsd-64@0.15.18(transitive)
- Removedesbuild-openbsd-64@0.15.18(transitive)
- Removedesbuild-sunos-64@0.15.18(transitive)
- Removedesbuild-windows-32@0.15.18(transitive)
- Removedesbuild-windows-64@0.15.18(transitive)
- Removedesbuild-windows-arm64@0.15.18(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedresolve@1.22.10(transitive)
- Removedrollup@2.79.2(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedvite@3.2.11(transitive)
Updatedesbuild@^0.16.9
Updatedjson5@^2.2.2