Commit 3f80596c authored by nanahira's avatar nanahira

Koishi rc

parent 5868caeb
This diff is collapsed.
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
}, },
"homepage": "https://code.mycard.moe/nanahira/koishi-plugin-hisoutensoku-jammer", "homepage": "https://code.mycard.moe/nanahira/koishi-plugin-hisoutensoku-jammer",
"peerDependencies": { "peerDependencies": {
"koishi": "^4.0.0-beta.6" "koishi": "^4.0.0-rc.0"
}, },
"dependencies": { "dependencies": {
"ip": "^1.1.5", "ip": "^1.1.5",
"koishi-thirdeye": "^5.0.5", "koishi-thirdeye": "^6.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"moment": "^2.29.1", "moment": "^2.29.1",
"source-map-support": "^0.5.21", "source-map-support": "^0.5.21",
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
"eslint": "^7.32.0", "eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.1", "eslint-plugin-prettier": "^3.4.1",
"koishi": "^4.0.0-beta.6", "koishi": "^4.0.0-rc.0",
"prettier": "^2.4.1", "prettier": "^2.4.1",
"raw-loader": "^4.0.2", "raw-loader": "^4.0.2",
"ts-loader": "^9.2.6", "ts-loader": "^9.2.6",
......
...@@ -96,7 +96,7 @@ export default class HisoutensokuJammerPlugin implements OnApply { ...@@ -96,7 +96,7 @@ export default class HisoutensokuJammerPlugin implements OnApply {
if (url.startsWith(PROTOCOL_BASE64)) { if (url.startsWith(PROTOCOL_BASE64)) {
return Buffer.from(url.slice(PROTOCOL_BASE64.length), 'base64'); return Buffer.from(url.slice(PROTOCOL_BASE64.length), 'base64');
} }
const data = await this.ctx.http.get.arraybuffer(url); const data = await this.ctx.http.get<ArrayBuffer>(url, { responseType: 'arraybuffer' });
return Buffer.from(data); return Buffer.from(data);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment