Skip to content

Commit

Permalink
chore: bump deps & fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 21, 2021
1 parent cf04f90 commit 564889a
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 38 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,24 @@
"@types/chai-as-promised": "^7.1.3",
"@types/cross-spawn": "^6.0.2",
"@types/estree": "^0.0.47",
"@types/fs-extra": "^9.0.10",
"@types/fs-extra": "^9.0.11",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.37",
"@types/node": "^14.14.41",
"@types/rimraf": "^3.0.0",
"@types/semver": "^7.3.4",
"@types/sinonjs__fake-timers": "^6.0.2",
"@types/source-map-support": "^0.5.3",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"c8": "^7.7.0",
"c8": "^7.7.1",
"cac": "^6.7.2",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"cross-env": "^7.0.3",
"cross-spawn": "^7.0.3",
"del": "^6.0.0",
"esbuild": "^0.11.6",
"eslint": "^7.23.0",
"esbuild": "^0.11.12",
"eslint": "^7.24.0",
"eslint-config-standard": "^16.0.2",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-import": "^2.22.1",
Expand All @@ -74,15 +74,15 @@
"latest-version": "^5.1.0",
"mocha": "^8.3.2",
"nock": "^13.0.11",
"open": "^8.0.5",
"open": "^8.0.6",
"ora": "^5.4.0",
"p-map": "^4.0.0",
"p-map": "^5.0.0",
"prompts": "^2.4.1",
"rimraf": "^3.0.2",
"semver": "^7.3.5",
"source-map-support": "^0.5.19",
"ts-node": "^9.1.1",
"tsconfig-paths": "^3.9.0",
"typescript": "^4.2.3"
"typescript": "^4.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/adapter-discord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"axios": "^0.21.1",
"file-type": "^16.3.0",
"form-data": "^4.0.0",
"ws": "^7.4.4"
"ws": "^7.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/adapter-kaiheila/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"dependencies": {
"axios": "^0.21.1",
"koishi-utils": "^4.2.1",
"ws": "^7.4.4"
"ws": "^7.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/adapter-onebot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"dependencies": {
"axios": "^0.21.1",
"koishi-utils": "^4.2.1",
"ws": "^7.4.4"
"ws": "^7.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/adapter-tomon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"axios": "^0.21.1",
"koishi-utils": "^4.2.1",
"pako": "^2.0.3",
"ws": "^7.4.4"
"ws": "^7.4.5"
}
}
1 change: 1 addition & 0 deletions packages/koishi-core/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export class App extends Context {
}

this._commands.resolve = (key) => {
if (!key) return
const segments = key.split('.')
let i = 1, name = segments[0], cmd: Command
while ((cmd = this._commands.get(name)) && i < segments.length) {
Expand Down
2 changes: 1 addition & 1 deletion packages/koishi-core/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export class Context {
async transformAssets(content: string, assets = this.assets) {
if (!assets) return content
return segment.transformAsync(content, Object.fromEntries(assets.types.map((type) => {
return [type, (data) => assets.upload(data.url, data.file)]
return [type, async (data) => segment(type, { url: await assets.upload(data.url, data.file) })]
})))
}

Expand Down
4 changes: 2 additions & 2 deletions packages/koishi-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"utilities"
],
"devDependencies": {
"@types/supports-color": "^7.2.1",
"@types/supports-color": "^8.1.0",
"koishi-test-utils": "^6.0.0-beta.11"
},
"dependencies": {
"supports-color": "^8.1.1"
"supports-color": "^8.1.0"
}
}
2 changes: 1 addition & 1 deletion packages/koishi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dependencies": {
"cac": "^6.7.2",
"chokidar": "^3.5.1",
"js-yaml": "^4.0.0",
"js-yaml": "^4.1.0",
"kleur": "^4.1.4",
"koishi-core": "^3.9.2",
"koishi-utils": "^4.2.1",
Expand Down
1 change: 0 additions & 1 deletion packages/plugin-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"server"
],
"peerDependencies": {
"axios": "^0.21.1",
"koishi-core": "^3.9.2"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions packages/plugin-eval/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
"koishi-core": "^3.9.2"
},
"optionalDependencies": {
"@babel/core": "^7.13.15",
"@babel/core": "^7.13.16",
"@babel/plugin-transform-react-jsx": "^7.13.12",
"coffeescript": "^2.5.1",
"esbuild": "^0.11.6",
"esbuild": "^0.11.12",
"json5": "^2.2.0",
"typescript": "^4.2.3"
"typescript": "^4.2.4"
},
"dependencies": {
"js-yaml": "^4.0.0",
"simple-git": "^2.37.0"
"js-yaml": "^4.1.0",
"simple-git": "^2.38.0"
},
"devDependencies": {
"@types/babel__core": "^7.1.14",
Expand Down
6 changes: 3 additions & 3 deletions packages/plugin-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"webhook"
],
"devDependencies": {
"@types/marked": "^2.0.1",
"@types/marked": "^2.0.2",
"koishi-plugin-mongo": "^2.2.2",
"koishi-plugin-mysql": "^3.3.1",
"koishi-plugin-puppeteer": "^2.1.0",
Expand All @@ -39,8 +39,8 @@
"koishi-core": "^3.9.2"
},
"dependencies": {
"@octokit/webhooks-definitions": "^3.67.0",
"@octokit/webhooks-types": "^3.69.1",
"axios": "^0.21.1",
"marked": "^2.0.1"
"marked": "^2.0.3"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-github/src/events.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable camelcase */

import { EventPayloadMap, WebhookEventName, Repository, PullRequest } from '@octokit/webhooks-definitions/schema'
import { EventPayloadMap, WebhookEventName, Repository, PullRequest } from '@octokit/webhooks-types/schema'
import { EventData } from './server'
import { transform } from './markdown'

Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-image-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"axios": "^0.21.1",
"cheerio": "^1.0.0-rc.5",
"cheerio": "^1.0.0-rc.6",
"iqdb-client": "^1.0.3",
"nhentai-api": "^3.0.2"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"dependencies": {
"chrome-finder": "^1.0.7",
"pngjs": "^6.0.0",
"puppeteer-core": "^8.0.0",
"puppeteer-core": "^9.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"dependencies": {
"axios": "^0.21.1",
"cheerio": "^1.0.0-rc.5",
"cheerio": "^1.0.0-rc.6",
"qrcode": "^1.4.4",
"xml-js": "^1.6.11"
}
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-tools/src/magi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Context } from 'koishi-core'
import { Element } from 'domhandler'
import { load } from 'cheerio'
import axios from 'axios'

Expand Down Expand Up @@ -28,7 +27,7 @@ export function apply(ctx: Context) {
const messages = []

$('main .card[data-type="fact"]').each((_, el) => {
const header = el.firstChild.nextSibling as Element
const header = el.firstChild.nextSibling as never
const title = $('h2', header).text()
const category = $('span', header).text()
let message = `${title} [${category}]`
Expand Down
13 changes: 6 additions & 7 deletions packages/plugin-webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,19 @@
"@fortawesome/fontawesome-free": "^5.15.3",
"@vitejs/plugin-vue": "^1.2.1",
"@vue/compiler-sfc": "^3.0.11",
"echarts": "^5.0.2",
"echarts": "^5.1.0",
"echarts-wordcloud": "^2.0.0",
"koishi-plugin-mongo": "^2.2.2",
"koishi-plugin-mysql": "^3.3.1",
"koishi-plugin-teach": "^2.1.4",
"koishi-test-utils": "^6.0.0-beta.11",
"sass": "^1.32.8",
"vite": "^2.1.5",
"vue": "^3.0.7",
"sass": "^1.32.11",
"vite": "^2.2.1",
"vue": "^3.0.11",
"vue-echarts": "^6.0.0-rc.4",
"vue-router": "^4.0.5"
},
"dependencies": {
"systeminformation": "^5.6.10",
"ws": "^7.4.4"
"systeminformation": "^5.6.12",
"ws": "^7.4.5"
}
}

0 comments on commit 564889a

Please sign in to comment.