koishi-plugin-share-links-analysis 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +1 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -6,7 +6,6 @@ exports.apply = apply;
6
6
  const koishi_1 = require("koishi");
7
7
  const core_1 = require("./core");
8
8
  const xiaohongshu_1 = require("./parsers/xiaohongshu");
9
- const types_1 = require("koishi-plugin-adapter-onebot/lib/types");
10
9
  exports.name = 'share-links-analysis';
11
10
  exports.inject = {
12
11
  required: ['BiliBiliVideo', 'database', 'puppeteer'],
@@ -310,7 +309,7 @@ async function sendResult_forward(session, config, result, logger) {
310
309
  });
311
310
  }
312
311
  catch (e) {
313
- if (e instanceof types_1.TimeoutError) {
312
+ if (e.name === 'TimeoutError') {
314
313
  }
315
314
  else {
316
315
  throw e;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "koishi-plugin-share-links-analysis",
3
3
  "description": "自用插件",
4
4
  "license": "MIT",
5
- "version": "0.2.3",
5
+ "version": "0.2.4",
6
6
  "main": "lib/index.js",
7
7
  "typings": "lib/index.d.ts",
8
8
  "files": [