@twikoojs/edgeone-makers 2.0.9 → 2.0.11

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.
@@ -43,7 +43,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
43
43
  var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
44
44
  //#endregion
45
45
  //#region ../shared/dist/index.mjs
46
- /*! @twikoojs/shared v2.0.9 */
46
+ /*! @twikoojs/shared v2.0.11 */
47
47
  /**
48
48
  * Twikoo 统一版本号常量(构建期占位符)。
49
49
  *
@@ -56,7 +56,7 @@ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
56
56
  * 占位符字面量由 `@twikoojs/tsdown-config` 的 `VERSION_PLACEHOLDER` 常量定义,
57
57
  * 客户端与服务端统一读取本常量,避免版本号在多包之间手工同步。
58
58
  */
59
- const VERSION = "2.0.9";
59
+ const VERSION = "2.0.11";
60
60
  /**
61
61
  * 后端事件名常量(Scope E:24 个客户端事件 + 1 个服务端内部事件)。
62
62
  *
@@ -25376,7 +25376,7 @@ async function noticeReply(options) {
25376
25376
  async function sendNotice(options) {
25377
25377
  const { comment, config, caps, logger, getParentComment } = options;
25378
25378
  if (comment.isSpam && config.NOTIFY_SPAM === "false") return;
25379
- await Promise.all([
25379
+ const results = await Promise.allSettled([
25380
25380
  noticeMaster({
25381
25381
  comment,
25382
25382
  config,
@@ -25395,9 +25395,8 @@ async function sendNotice(options) {
25395
25395
  config,
25396
25396
  logger
25397
25397
  })
25398
- ]).catch((err) => {
25399
- logger.error("通知异常:", err);
25400
- });
25398
+ ]);
25399
+ for (const result of results) if (result.status === "rejected") logger.error("通知异常:", result.reason);
25401
25400
  }
25402
25401
  /**
25403
25402
  * 邮件测试(1.x emailTest 对齐:重置传输器 → 校验配置 → 发送测试邮件)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twikoojs/edgeone-makers",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "description": "Twikoo comment system backend for Tencent EdgeOne Makers",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,14 +21,14 @@
21
21
  "dependencies": {
22
22
  "@cap.js/server": "^4.0.5",
23
23
  "@edgeone/pages-blob": "latest",
24
- "@twikoojs/common": "2.0.9",
25
- "@twikoojs/shared": "2.0.9",
24
+ "@twikoojs/common": "2.0.11",
25
+ "@twikoojs/shared": "2.0.11",
26
26
  "bowser": "^2.14.1",
27
27
  "form-data": "^4.0.6",
28
28
  "html-to-text": "^10.0.1",
29
29
  "marked": "^18.0.13",
30
30
  "pako": "^3.0.2",
31
- "pushoo": "^2.0.9",
31
+ "pushoo": "^2.0.11",
32
32
  "xml2js": "^0.6.2"
33
33
  },
34
34
  "devDependencies": {