Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-mock-dev-server

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-mock-dev-server - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

8

dist/index.d.ts

@@ -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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc