dsh-feishu-lark-notify 0.28.0 → 0.28.1

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 +4 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -37,7 +37,7 @@ import { startWsInbound } from './inbound-ws.js'
37
37
  export const name = 'feishu-notify'
38
38
 
39
39
  /** 版本号(与 package.json 保持一致,单测会校验)。 */
40
- export const VERSION = '0.28.0'
40
+ export const VERSION = '0.28.1'
41
41
 
42
42
  /** 内存日志上限。 */
43
43
  const LOG_LIMIT = 200
@@ -1530,7 +1530,9 @@ export function apply(ctx, rawConfig) {
1530
1530
  { msg_type: 'text', content: { text } },
1531
1531
  { chatIds: target === '' ? channel.receiveChatIds : [target], timeoutMs: config.timeoutMs },
1532
1532
  )
1533
- if (!results.some((item) => item.ok)) {
1533
+ if (results.some((item) => item.ok)) {
1534
+ log(`回执已发(${target || '默认目标'}):${clip(text, 40)}`)
1535
+ } else {
1534
1536
  log(`回执发送失败: ${results.map((item) => item.error).filter(Boolean).join('; ')}`)
1535
1537
  }
1536
1538
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-feishu-lark-notify",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "description": "把 DSH 的任务完成 / 需要你处理的通知推到飞书(Lark):在飞书里点审批、答选择题、按标题把指令交给指定会话,也能收发图片和文件。自带可视化配置页。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",