mock-service-cli 3.1.1 → 3.1.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [3.1.2](https://github.com/chandq/mock-service-cli/compare/v3.1.1...v3.1.2) (2022-08-07)
6
+
5
7
  ### [3.1.1](https://github.com/chandq/mock-service-cli/compare/v3.1.0...v3.1.1) (2022-07-25)
6
8
 
7
9
 
package/README.md CHANGED
@@ -12,13 +12,30 @@
12
12
 
13
13
  内置 Mock Server、Web Server、Http request proxy 等功能集。
14
14
 
15
- **简易轻量**、**B/S 架构**、**0 秒启动**的本地命令行 Mock 服务套件, 支持热更新,对于开发调试 mock 数据很实用,能提高前端开发者的开发效率。支持 `GET`,`POST`,`PUT`,`DELETE`,`PATCH`,`OPTIONS`,`COPY`,`LINK`,`UNLINK`,`PURGE` 等常用请求类型,无需布署后端,可能是本地最好用的 Mock 工具。支持以下常见业务场景:
15
+ **简易轻量**、**B/S 架构**、**0 秒启动**的本地命令行 Mock 服务套件, 支持热更新,对于开发调试 mock 数据很实用,能提高前端开发者的开发效率。支持 `GET`,`POST`,`PUT`,`DELETE`,`PATCH`,`OPTIONS`,`COPY`,`LINK`,`UNLINK`,`PURGE` 等常用请求类型,无需布署后端,可能是本地最好用的 Mock 工具之一。
16
+
17
+ #### Mock Server - 本地 Mock 服务器
18
+
19
+ 支持以下常见业务场景:
16
20
 
17
21
  - [x] 无服务端演示项目的数据 Mock
18
22
  - [x] 业务开发接口联调前的数据 Mock
19
23
  - [x] 保留业务项目的所有或部分接口的响应数据(写入文件)
20
24
  - [x] 保障前端开发调试不受后端服务影响(当后端服务挂掉或部分接口响应异常时启用 Mock)
21
25
 
26
+ #### Web Server - SPA Web 服务器
27
+
28
+ 对 React、Vue 等单页应用项目构建生成的 dist 目录,启动本地 web 服务器(相当于使用本地安装的 nginx 服务)来模拟运行生产环境下的 web 服务
29
+
30
+ #### Http request proxy - 基于浏览器的本地代理服务
31
+
32
+ 实现了本地接口代理的能力,一般接口测试工具无法查看到 request 和 response 中 headers 的更多详情,这里实现了接口代理功能,在 Network 中可查看接口调用的详细信息。
33
+
34
+ > 两种应用场景
35
+
36
+ - 项目 dev 模式下的接口代理请求
37
+ - Chrome 的 Console 执行 fetch 请求(用于接口测试)
38
+
22
39
  ## Installation:
23
40
 
24
41
  #### Running on-demand:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mock-service-cli",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "🦅 Local mock server",
5
5
  "main": "./lib/mockServer.js",
6
6
  "bin": {