Skip to content

Commit

Permalink
fix: 🐛 master
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
陈家敬 committed Sep 30, 2020
1 parent 9049f7d commit cb504e6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = {
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-floating-promises": "off"
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/restrict-template-expressions": "off"
}
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "good-mock",
"version": "1.2.0",
"version": "1.2.1",
"description": "好用的 Mock 数据模板",
"main": "dist/index.js",
"module": "dist/index-esm-min.js",
Expand Down Expand Up @@ -59,7 +59,7 @@
"cross-env": "^7.0.2",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"good-mock": "^1.1.0",
"good-mock": "^1.2.0",
"husky": "^4.3.0",
"lint-staged": "^10.4.0",
"livereload": "^0.9.1",
Expand Down
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface IServerOptions {

export default class Mock {
private isHttps = false;
private port = 3000;
private port = 1234;
private host = "127.0.0.1";
private resTime = 500;

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"esModuleInterop": true,
"resolveJsonModule": true,
"declaration": true,
"target": "es5",
"target": "es6",
"module": "esnext",
"typeRoots": ["./typings"],
"noImplicitAny": true,
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4439,16 +4439,16 @@ globby@^11.0.1:
merge2 "^1.3.0"
slash "^3.0.0"

good-mock@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/good-mock/-/good-mock-1.1.0.tgz#5bae21e737f745cd0428b6c52df73636dfb7689e"
integrity sha512-WcfLOowlzhoz5+xBi1tQJ7BMFnyts1ECMz7G/FXadIMvFEO/ZpDBEUvjJEGdk14dUKRTI2lnT/Xp3vlVgZWP0w==
good-mock@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/good-mock/-/good-mock-1.2.0.tgz#12067b3afc1a7a88e3fe63b1bc8fed93411ccd1c"
integrity sha512-9iuEgnu/SYn3hCRkiV+RWvBSVM5yRKjRBRPuu/2Z7w2FX7xSgI4OfyvYaD6n8oIBjXPEQxAX+l99dwyviY1MTg==
dependencies:
express "^4.17.1"
get-port "^5.1.1"
glob "^7.1.6"
nodemon "^2.0.4"
path-to-regexp "^6.1.0"
path-to-regexp "^6.2.0"

got@^9.6.0:
version "9.6.0"
Expand Down Expand Up @@ -6530,7 +6530,7 @@ path-parse@^1.0.6:
resolved "https://registry.npm.taobao.org/path-parse/download/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
integrity sha1-1i27VnlAXXLEc37FhgDp3c8G0kw=

path-to-regexp@*, path-to-regexp@^6.1.0:
path-to-regexp@*:
version "6.1.0"
resolved "https://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-6.1.0.tgz#0b18f88b7a0ce0bfae6a25990c909ab86f512427"
integrity sha1-Cxj4i3oM4L+uaiWZDJCauG9RJCc=
Expand Down

0 comments on commit cb504e6

Please sign in to comment.