From 6889e5ded06996b5e3e0cebbeaf0a8200937c5a7 Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Thu, 23 Jan 2020 17:26:21 +0800 Subject: [PATCH] chore: bump dependencies (mysql: 2.17.1->2.18.0, axios: 0.19.1->0.19.2) --- build/dep.ts | 3 ++- package.json | 6 +++--- packages/database-mysql/package.json | 2 +- packages/koishi-core/package.json | 2 +- packages/test-utils/package.json | 2 +- packages/test-utils/src/index.ts | 1 + 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/build/dep.ts b/build/dep.ts index f9dee0f8e7..ee5e0ca2c5 100644 --- a/build/dep.ts +++ b/build/dep.ts @@ -38,7 +38,8 @@ interface Dependency { for (const type of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'] as DependencyType[]) { for (const dep in meta[type] || {}) { - if (workspaces[dep]) continue + // skip workspaces and symlinks + if (workspaces[dep] || meta[type][dep].startsWith('file:')) continue if (!dependencies[dep]) dependencies[dep] = { dependents: [] } dependencies[dep].dependents.push({ name, type }) } diff --git a/package.json b/package.json index 37d53c14ff..8698ca923b 100644 --- a/package.json +++ b/package.json @@ -23,14 +23,14 @@ "version": "1.0.0", "license": "MIT", "devDependencies": { - "@octokit/rest": "^16.37.0", + "@octokit/rest": "^16.38.1", "@types/cross-spawn": "^6.0.1", "@types/fs-extra": "^8.0.1", "@types/jest": "^24.9.0", "@types/node": "^13.1.8", "@types/semver": "^6.2.0", - "@typescript-eslint/eslint-plugin": "^2.16.0", - "@typescript-eslint/parser": "^2.16.0", + "@typescript-eslint/eslint-plugin": "^2.17.0", + "@typescript-eslint/parser": "^2.17.0", "cac": "^6.5.5", "cross-spawn": "^7.0.1", "del": "^5.1.0", diff --git a/packages/database-mysql/package.json b/packages/database-mysql/package.json index e342334620..f172b0acbf 100644 --- a/packages/database-mysql/package.json +++ b/packages/database-mysql/package.json @@ -37,6 +37,6 @@ "dependencies": { "koishi-core": "^1.6.0", "koishi-utils": "^1.0.2", - "mysql": "^2.17.1" + "mysql": "^2.18.0" } } diff --git a/packages/koishi-core/package.json b/packages/koishi-core/package.json index 9a4373a117..c113b6524c 100644 --- a/packages/koishi-core/package.json +++ b/packages/koishi-core/package.json @@ -39,7 +39,7 @@ "koishi-test-utils": "^2.1.0" }, "dependencies": { - "axios": "^0.19.1", + "axios": "^0.19.2", "escape-string-regexp": "^2.0.0", "koishi-utils": "^1.0.2", "leven": "^3.1.0", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 76988306e4..d601e65e8f 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -40,7 +40,7 @@ "@types/jest": "^24.9.0" }, "dependencies": { - "axios": "^0.19.1", + "axios": "^0.19.2", "debug": "^4.1.1", "get-port": "^5.1.1", "koishi-core": "^1.6.0", diff --git a/packages/test-utils/src/index.ts b/packages/test-utils/src/index.ts index 2bb567f4c9..f25e976072 100644 --- a/packages/test-utils/src/index.ts +++ b/packages/test-utils/src/index.ts @@ -7,6 +7,7 @@ export * from './database' export * from './mocks' export * from './utils' export * from './server' +export * from './session' jest.mock('koishi-utils', () => { const utils1 = jest.requireActual('koishi-utils')