Compare commits

...

2 Commits

Author SHA1 Message Date
63362d1813 chore(release): publish
- @egg/net-tool@1.11.0
2024-11-17 03:10:30 +00:00
7e97b8a8f5 feat(net-tools): 修改GitlabService入参格式
All checks were successful
/ release (push) Successful in 27s
2024-11-17 03:10:02 +00:00
4 changed files with 17 additions and 3 deletions

2
package-lock.json generated
View File

@ -12394,7 +12394,7 @@
},
"packages/net-tool": {
"name": "@egg/net-tool",
"version": "1.10.0",
"version": "1.11.0",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.4.4",

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.11.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.10.0...@egg/net-tool@1.11.0) (2024-11-17)
### Features
- **net-tools:** 修改GitlabService入参格式 ([7e97b8a](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/7e97b8a8f5e010a599890be6e91e5ae19480f30a))
# 1.10.0 (2024-11-17)
### Features

View File

@ -1,6 +1,6 @@
{
"name": "@egg/net-tool",
"version": "1.10.0",
"version": "1.11.0",
"description": "Net Tools for Egg projects",
"type": "module",
"main": "src/index.ts",

View File

@ -23,7 +23,15 @@ class GitlabService {
* @param {string} authKey -
* @param {string} requestId - ID
*/
constructor(baseUrl: string, authKey: string, requestId: string) {
constructor({
baseUrl = "",
authKey = "",
requestId = "",
}: {
baseUrl: string
authKey: string
requestId: string
}) {
this.badge = new Badge(baseUrl, authKey, requestId)
this.commit = new Commit(baseUrl, authKey, requestId)
this.discussions = new Discussions(baseUrl, authKey, requestId)