Compare commits

...

4 Commits

Author SHA1 Message Date
fbd4555a40 chore(release): publish
- @egg/lark-msg-tool@1.15.1
 - @egg/logger@1.6.0
 - @egg/net-tool@1.16.1
2024-11-27 07:08:41 +00:00
9d19333089 feat(logger): 修改正式环境的判断条件
All checks were successful
/ release (push) Successful in 28s
2024-11-27 07:08:16 +00:00
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
9 changed files with 33 additions and 12 deletions

10
package-lock.json generated
View File

@ -12373,10 +12373,10 @@
},
"packages/lark-msg-tool": {
"name": "@egg/lark-msg-tool",
"version": "1.14.1",
"version": "1.15.1",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.5.0",
"@egg/logger": "^1.6.0",
"winston": "*"
},
"devDependencies": {
@ -12385,7 +12385,7 @@
},
"packages/logger": {
"name": "@egg/logger",
"version": "1.5.0",
"version": "1.6.0",
"license": "ISC",
"dependencies": {
"winston": "*",
@ -12394,10 +12394,10 @@
},
"packages/net-tool": {
"name": "@egg/net-tool",
"version": "1.16.0",
"version": "1.16.1",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.5.0",
"@egg/logger": "^1.6.0",
"@gitbeaker/rest": "*",
"winston": "*"
}

View File

@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.15.1](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/lark-msg-tool@1.15.0...@egg/lark-msg-tool@1.15.1) (2024-11-27)
**Note:** Version bump only for package @egg/lark-msg-tool
# [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.1",
"description": "Lark Msg Tools for Egg projects",
"type": "module",
"main": "src/index.ts",
@ -21,7 +21,7 @@
"@types/lodash": "*"
},
"dependencies": {
"@egg/logger": "^1.5.0",
"@egg/logger": "^1.6.0",
"winston": "*"
}
}

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,13 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 1.6.0 (2024-11-27)
### Features
- **logger:** 修改正式环境的判断条件 ([9d19333](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/9d1933308968508e246a0186dd6bcb92a6db6b5d))
- **net-tool:** 将日志打印级别从http修改为silly ([a686b90](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/a686b903be8d80445edcab2149c82d3983e083f7))
# 1.5.0 (2024-11-26)
### Features

View File

@ -1,6 +1,6 @@
{
"name": "@egg/logger",
"version": "1.5.0",
"version": "1.6.0",
"description": "Logger for Egg projects",
"type": "module",
"main": "src/index.ts",

View File

@ -1,7 +1,7 @@
import winston, { format } from "winston"
import DailyRotateFile from "winston-daily-rotate-file"
const isProd = process.env.NODE_ENV === "production"
const isProd = process.env.NODE_ENV !== "dev"
const transports: any[] = [
new winston.transports.Console({

View File

@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.16.1](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.16.0...@egg/net-tool@1.16.1) (2024-11-27)
**Note:** Version bump only for package @egg/net-tool
# [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

View File

@ -1,6 +1,6 @@
{
"name": "@egg/net-tool",
"version": "1.16.0",
"version": "1.16.1",
"description": "Net Tools for Egg projects",
"type": "module",
"main": "src/index.ts",
@ -17,7 +17,7 @@
"author": "RainSun <zhaoyingbo@live.cn>",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.5.0",
"@egg/logger": "^1.6.0",
"@gitbeaker/rest": "*",
"winston": "*"
}