Compare commits

...

4 Commits

Author SHA1 Message Date
7fe0484037 chore(release): publish
- @egg/lark-msg-tool@1.15.0
2024-11-27 06:51:09 +00:00
3bae9eb5c4 feat(lark-msg-tool): 获取文本内容自动trim
All checks were successful
/ release (push) Successful in 24s
2024-11-27 06:50:45 +00:00
f2bd83a8dc chore(release): publish
- @egg/net-tool@1.16.0
2024-11-26 11:30:59 +00:00
a686b903be feat(net-tool): 将日志打印级别从http修改为silly
All checks were successful
/ release (push) Successful in 23s
2024-11-26 11:30:37 +00:00
7 changed files with 18 additions and 6 deletions

4
package-lock.json generated
View File

@ -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",

View File

@ -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

View File

@ -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",

View File

@ -120,7 +120,7 @@ class LarkBody {
)
// 去掉@_user_1相关的内容例如 '@_user_1 测试' -> '测试'
const textWithoutAt = text.replace(/@_user_\d+/g, "")
return textWithoutAt
return textWithoutAt.trim()
} catch {
return ""
}

View File

@ -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

View File

@ -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",

View File

@ -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
}