warehouse-mock 1.1.3 → 1.1.5

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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +2 -3
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # warehouse-mock-plugin
1
+ # warehouse-mock
2
2
 
3
3
  <div align="center">
4
4
 
5
5
  极简 Vue Mock 插件,零业务代码侵入,完美支持 RPC 风格接口
6
6
 
7
- [![npm version](https://img.shields.io/npm/v/warehouse-mock-plugin.svg)](https://www.npmjs.com/package/warehouse-mock-plugin)
7
+ [![npm version](https://img.shields.io/npm/v/warehouse-mock.svg)](https://www.npmjs.com/package/warehouse-mock)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
9
9
 
10
10
  </div>
@@ -12,7 +12,7 @@
12
12
  ## 安装
13
13
 
14
14
  ```bash
15
- npm install warehouse-mock-plugin --save-dev
15
+ npm install warehouse-mock --save-dev
16
16
  ```
17
17
 
18
18
  ## 快速开始
@@ -20,7 +20,7 @@ npm install warehouse-mock-plugin --save-dev
20
20
  ### 1. 配置 vue.config.js
21
21
 
22
22
  ```javascript
23
- const WarehouseMockPlugin = require('warehouse-mock-plugin');
23
+ const WarehouseMockPlugin = require('warehouse-mock');
24
24
 
25
25
  const isMock = process.env.MOCK === 'true';
26
26
 
@@ -119,7 +119,7 @@ new WarehouseMockPlugin({
119
119
  ```javascript
120
120
  new WarehouseMockPlugin({
121
121
  proxy: {
122
- target: 'https://fat-api.hellobike.com',
122
+ target: 'https://dev-api.xxxx.com',
123
123
  changeOrigin: true
124
124
  }
125
125
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warehouse-mock",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "一个专为 Vue 2 项目设计的 Webpack 插件,支持 RPC 风格接口 mock,零业务代码侵入,实时更新",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,8 +20,7 @@
20
20
  "rpc",
21
21
  "api",
22
22
  "typescript",
23
- "dev-server",
24
- "hellobike"
23
+ "dev-server"
25
24
  ],
26
25
  "author": "CodeMomentYY",
27
26
  "license": "MIT",