mock-service-cli 3.6.4 → 3.6.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Node.js CI](https://github.com/chandq/mock-service-cli/actions/workflows/node.js.yml/badge.svg)](https://github.com/chandq/mock-service-cli/actions/workflows/node.js.yml)
1
+ [![release status](https://github.com/chandq/mock-service-cli/actions/workflows/release.yml/badge.svg)](https://github.com/chandq/mock-service-cli/actions/workflows/release.yml)
2
2
  [![Coverage Status](https://coveralls.io/repos/github/chandq/mock-service-cli/badge.svg?branch=master)](https://coveralls.io/github/chandq/mock-service-cli?branch=master)
3
3
  [![mock-service-cli](https://img.shields.io/github/package-json/v/chandq/mock-service-cli?style=flat-square)](https://www.npmjs.com/package/mock-service-cli)
4
4
  [![node](https://img.shields.io/badge/language-node-orange.svg)](https://nodejs.org/download/release/v12.0.0/)
package/lib/mockServer.js CHANGED
@@ -19,9 +19,7 @@ const {
19
19
  isEmptyObj
20
20
  } = require('./utils');
21
21
  const { genMockFiles, getMockStatFromDir, getMockStatFromFile } = require('./manageMockFiles');
22
-
23
22
  const registeredApis = [];
24
-
25
23
  const methodRegExp = new RegExp(`((${SupportMethods.join('|')}) +)?([^?]*)`, 'i');
26
24
 
27
25
  const app = express();
@@ -115,7 +113,6 @@ function init() {
115
113
  parseMockFiles(process.env.SPECIFIED_DIR);
116
114
  }
117
115
  requireMockServe && argv.a && log.info(colors.yellow(`${fileCount} mock file are parsed in total.`));
118
-
119
116
  startServer();
120
117
  }
121
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mock-service-cli",
3
- "version": "3.6.4",
3
+ "version": "3.6.5",
4
4
  "description": "🦅 Local Mock/Static/SPA server, Http?s request proxy, API overview page, File explorer",
5
5
  "main": "./lib/mockServer.js",
6
6
  "bin": {