Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
liangskyli committed Aug 3, 2024
1 parent 14eda65 commit 250bea3
Show file tree
Hide file tree
Showing 7 changed files with 1,008 additions and 936 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"eslint": "^8.57.0",
"execa": "^8.0.1",
"husky": "^9.1.4",
"lerna": "8.1.7",
"lerna": "8.1.4",
"lint-staged": "^15.2.7",
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^4.0.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/grpc-mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,22 @@
"update:deps": "pnpm update --interactive --latest"
},
"dependencies": {
"@grpc/proto-loader": "^0.7.10",
"@grpc/proto-loader": "^0.7.13",
"@liangskyli/utils": "workspace:*",
"@types/fs-extra": "^11.0.4",
"commander": "^11.1.0",
"cross-spawn": "^7.0.3",
"fs-extra": "^11.2.0",
"nodemon": "^3.1.0",
"protobufjs": "^7.2.6"
"nodemon": "^3.1.4",
"protobufjs": "^7.3.2"
},
"devDependencies": {
"@liangskyli/grpc-mock": "workspace:*",
"@types/cross-spawn": "^6.0.6",
"@types/express": "^4.17.21",
"@types/nodemon": "^1.19.6",
"better-mock": "^0.3.7",
"express": "^4.18.2",
"express": "^4.19.2",
"ts-node": "^10.9.2"
},
"optionalDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/http-mock-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
"update:deps": "pnpm update --interactive --latest"
},
"dependencies": {
"@liangskyli/openapi-gen-ts": "^2.0.0",
"@liangskyli/openapi-gen-ts": "^2.0.2",
"@liangskyli/utils": "workspace:*",
"@types/express": "^4.17.21",
"@types/fs-extra": "^11.0.4",
"axios": "^1.6.7",
"axios": "^1.7.3",
"commander": "^11.1.0",
"express": "^4.18.2",
"express": "^4.19.2",
"fs-extra": "^11.2.0",
"json-schema-faker": "^0.5.6"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,22 @@
"body-parser": "^1.20.2",
"chokidar": "^3.6.0",
"commander": "^11.1.0",
"express": "^4.18.2",
"express": "^4.19.2",
"fs-extra": "^11.2.0",
"glob": "^10.3.10",
"multer": "^1.4.5-lts.1",
"path-to-regexp": "^6.2.1",
"socket.io": "^4.7.4"
"path-to-regexp": "^7.1.0",
"socket.io": "^4.7.5"
},
"devDependencies": {
"@liangskyli/mock": "workspace:*",
"@types/body-parser": "^1.19.5",
"@types/multer": "^1.4.11",
"better-mock": "^0.3.7",
"socket.io-client": "^4.7.4",
"socket.io-client": "^4.7.5",
"ts-node": "^10.9.2",
"webpack": "^5.90.3",
"webpack-dev-server": "^4.15.1"
"webpack": "^5.93.0",
"webpack-dev-server": "^4.15.2"
},
"engines": {
"node": ">=16.10.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/mock/src/http/mock/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface IMockDataItem {
method: string;
path: string;
re: RegExp;
keys: NonNullable<Parameters<typeof pathToRegexp>[1]>;
keys: ReturnType<typeof pathToRegexp>['keys'];
handler: RequestHandler;
}

Expand Down Expand Up @@ -128,8 +128,8 @@ function normalizeConfig(config: Record<string, any>) {
`mock value of ${key} should be function or object, but got ${type}`,
);
const { method, path } = parseKey(key);
const keys: IMockDataItem['keys'] = [];
const re = pathToRegexp(path, keys);
const re = pathToRegexp(path);
const keys: IMockDataItem['keys'] = re.keys;
memo.push({
method,
path,
Expand Down
10 changes: 5 additions & 5 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"update:deps": "pnpm update --interactive --latest"
},
"dependencies": {
"@types/lodash": "^4.14.202",
"address": "^2.0.1",
"@types/lodash": "^4.17.7",
"address": "^2.0.3",
"colors": "^1.4.0",
"debug": "^4.3.4",
"esbuild": "^0.20.1",
"esbuild-register": "^3.5.0",
"debug": "^4.3.6",
"esbuild": "^0.23.0",
"esbuild-register": "^3.6.0",
"fs-extra": "^11.2.0",
"lodash": "^4.17.21",
"signale": "^1.4.0"
Expand Down
Loading

0 comments on commit 250bea3

Please sign in to comment.