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 +1 -1
- package/lib/mockServer.js +0 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://github.com/chandq/mock-service-cli/actions/workflows/release.yml)
|
|
2
2
|
[](https://coveralls.io/github/chandq/mock-service-cli?branch=master)
|
|
3
3
|
[](https://www.npmjs.com/package/mock-service-cli)
|
|
4
4
|
[](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
|
|