Compare commits
4 Commits
@egg/lark-
...
@egg/lark-
Author | SHA1 | Date | |
---|---|---|---|
7fe0484037 | |||
3bae9eb5c4 | |||
f2bd83a8dc | |||
a686b903be |
4
package-lock.json
generated
4
package-lock.json
generated
@ -12373,7 +12373,7 @@
|
||||
},
|
||||
"packages/lark-msg-tool": {
|
||||
"name": "@egg/lark-msg-tool",
|
||||
"version": "1.14.1",
|
||||
"version": "1.15.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@egg/logger": "^1.5.0",
|
||||
@ -12394,7 +12394,7 @@
|
||||
},
|
||||
"packages/net-tool": {
|
||||
"name": "@egg/net-tool",
|
||||
"version": "1.15.1",
|
||||
"version": "1.16.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@egg/logger": "^1.5.0",
|
||||
|
@ -3,6 +3,12 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [1.15.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/lark-msg-tool@1.14.1...@egg/lark-msg-tool@1.15.0) (2024-11-27)
|
||||
|
||||
### Features
|
||||
|
||||
- **lark-msg-tool:** 获取文本内容自动trim ([3bae9eb](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/3bae9eb5c458ab90006366d10b27a09954239056))
|
||||
|
||||
## 1.14.1 (2024-11-26)
|
||||
|
||||
**Note:** Version bump only for package @egg/lark-msg-tool
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@egg/lark-msg-tool",
|
||||
"version": "1.14.1",
|
||||
"version": "1.15.0",
|
||||
"description": "Lark Msg Tools for Egg projects",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
|
@ -120,7 +120,7 @@ class LarkBody {
|
||||
)
|
||||
// 去掉@_user_1相关的内容,例如 '@_user_1 测试' -> '测试'
|
||||
const textWithoutAt = text.replace(/@_user_\d+/g, "")
|
||||
return textWithoutAt
|
||||
return textWithoutAt.trim()
|
||||
} catch {
|
||||
return ""
|
||||
}
|
||||
|
@ -3,6 +3,12 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [1.16.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.15.1...@egg/net-tool@1.16.0) (2024-11-26)
|
||||
|
||||
### Features
|
||||
|
||||
- **net-tool:** 将日志打印级别从http修改为silly ([a686b90](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/a686b903be8d80445edcab2149c82d3983e083f7))
|
||||
|
||||
## [1.15.1](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.15.0...@egg/net-tool@1.15.1) (2024-11-26)
|
||||
|
||||
**Note:** Version bump only for package @egg/net-tool
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@egg/net-tool",
|
||||
"version": "1.15.1",
|
||||
"version": "1.16.0",
|
||||
"description": "Net Tools for Egg projects",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
|
@ -117,7 +117,7 @@ class NetToolBase {
|
||||
requestTime,
|
||||
responseTime: new Date().getTime(),
|
||||
}
|
||||
this.logger.http(JSON.stringify(responseLog, null, 2))
|
||||
this.logger.silly(JSON.stringify(responseLog, null, 2))
|
||||
return responseLog
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user