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.
- package/lib/index.js +1 -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
|
|
312
|
+
if (e.name === 'TimeoutError') {
|
|
314
313
|
}
|
|
315
314
|
else {
|
|
316
315
|
throw e;
|