mock-service-cli 3.1.0 → 3.1.1

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,14 @@
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.1](https://github.com/chandq/mock-service-cli/compare/v3.1.0...v3.1.1) (2022-07-25)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * node 18下chalk丢失问题 ([fb80d8d](https://github.com/chandq/mock-service-cli/commit/fb80d8d94feee8d3177b69a2c4509a390880bd56))
11
+ * update some npm version for security ([f0aa1df](https://github.com/chandq/mock-service-cli/commit/f0aa1dfa51f36bde693b0da12bec2b653b1b6003))
12
+
5
13
  ## [3.1.0](https://github.com/chandq/mock-service-cli/compare/v3.0.0...v3.1.0) (2022-04-27)
6
14
 
7
15
 
package/lib/mockServer.js CHANGED
@@ -3,8 +3,7 @@ const express = require('express'), // 引入express
3
3
  os = require('os'),
4
4
  path = require('path'),
5
5
  colors = require('colors/safe'),
6
- portfinder = require('portfinder'),
7
- chalk = require('chalk');
6
+ portfinder = require('portfinder');
8
7
  const { createProxyMiddleware } = require('http-proxy-middleware');
9
8
  const ifaces = os.networkInterfaces();
10
9
  const { Server } = require('socket.io');
@@ -161,7 +160,7 @@ if (process.env.SPECIFIED_FILE) {
161
160
  } else {
162
161
  parseMockFiles(process.env.SPECIFIED_DIR);
163
162
  }
164
- argv.a && log.info(chalk.hex('#ce5b34bd')(`${fileCount} mock file are parsed in total.`));
163
+ argv.a && log.info(colors.yellow(`${fileCount} mock file are parsed in total.`));
165
164
 
166
165
  let webApp = null,
167
166
  webPublicPath = '/',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mock-service-cli",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "🦅 Local mock server",
5
5
  "main": "./lib/mockServer.js",
6
6
  "bin": {
@@ -51,8 +51,8 @@
51
51
  "fs-extra": "^10.0.0",
52
52
  "http-proxy-middleware": "^2.0.6",
53
53
  "lodash": "^4.17.21",
54
- "minimist": "^1.2.5",
55
- "nodemon": "^2.0.14",
54
+ "minimist": "^1.2.6",
55
+ "nodemon": "^2.0.19",
56
56
  "portfinder": "^1.0.28",
57
57
  "socket.io": "^4.4.0"
58
58
  },