diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7436782..1538c66 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,11 +10,9 @@ jobs: steps: - name: Check out - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 18 + uses: actions/setup-node@v4 - name: Install run: yarn - name: Build diff --git a/package.json b/package.json index a6dc811..5227ba5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "koishi-plugin-dataview", "description": "View Database in Koishi Console", - "version": "2.6.0", + "version": "2.6.1", "main": "lib/index.cjs", "types": "lib/index.d.ts", "exports": { @@ -52,19 +52,19 @@ } }, "peerDependencies": { - "@koishijs/plugin-console": "^5.19.5", - "koishi": "^4.15.7" + "@koishijs/plugin-console": "^5.20.1", + "koishi": "^4.16.0" }, "devDependencies": { - "@koishijs/client": "^5.19.5", - "@koishijs/plugin-console": "^5.19.5", + "@koishijs/client": "^5.20.1", + "@koishijs/plugin-console": "^5.20.1", "@types/node": "^20.10.2", "esbuild": "^0.18.20", "esbuild-register": "^3.5.0", - "koishi": "^4.15.7", + "koishi": "^4.16.0", "typescript": "^5.3.2" }, "dependencies": { - "@koishijs/console": "^5.19.5" + "@koishijs/console": "^5.20.1" } } diff --git a/src/index.ts b/src/index.ts index 471b127..85545ab 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,7 +32,7 @@ export interface DatabaseInfo extends Driver.Stats { class DatabaseProvider extends DataService<DatabaseInfo> { static filter = false - static using = ['console', 'database'] + static inject = ['console', 'database'] task: Promise<DatabaseInfo>