@hz-9/a5-core 0.2.0-alpha.58 → 0.2.0-alpha.59

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # Change Log - @hz-9/a5-core
2
+
3
+ This log was last generated on Sun, 15 Mar 2026 12:00:00 GMT and should not be manually modified.
4
+
5
+ ## 0.2.0-alpha.59
6
+ Sun, 15 Mar 2026 12:00:00 GMT
7
+
8
+ ### Updates
9
+
10
+ - feat: remove @hz-9/a5-captcha
11
+ - feat: remove curd codes in @hz-9/a5-authn
12
+ - feat: add some plugin export in @hz-9/a5-authn
13
+ - feat(hz-9_a5-authn): merge A5AuthnJwtModule A5AuthnCredModule to A5AuthnCoreModule
14
+ - feat(hz-9_a5-authn): remove enum A5AuthnAccountType or A5AuthnLoginAuthType, add enum A5AuthnCredentialType
15
+ - feat(hz-9_a5-authn): remove unused methods on A5AuthnCoreService
16
+ - feat(hz-9_a5-core): update some plugin export in @hz-9/a5-core
17
+ - fix(hz-9_a5-core): add @public release tag to A5AppPrintAddressItem and A5AppPrintAddressOptions
package/dist/all.d.ts CHANGED
@@ -123,7 +123,7 @@ export declare class A5Application {
123
123
  * 在正常获取 IP 与端口后,可通过此函数输出日志信息。
124
124
  *
125
125
  */
126
- printAddress(): Promise<void>;
126
+ printAddress(options?: A5AppPrintAddressOptions): Promise<void>;
127
127
  /**
128
128
  *
129
129
  * @public
@@ -198,6 +198,27 @@ export declare interface A5AppListenOptions {
198
198
  */
199
199
  export declare type A5AppOptions = Required<A5AppConstructorOptions>;
200
200
 
201
+ /**
202
+ * @public
203
+ *
204
+ * A5App 打印地址项
205
+ *
206
+ */
207
+ export declare interface A5AppPrintAddressItem {
208
+ name: string;
209
+ path: string;
210
+ }
211
+
212
+ /**
213
+ * @public
214
+ *
215
+ * A5App 打印地址选项
216
+ *
217
+ */
218
+ export declare interface A5AppPrintAddressOptions {
219
+ address?: A5AppPrintAddressItem[];
220
+ }
221
+
201
222
  /**
202
223
  * @public
203
224
  */
@@ -63,6 +63,25 @@ export interface A5AppListenOptions {
63
63
  */
64
64
  readonly tryTimes?: number;
65
65
  }
66
+ /**
67
+ * @public
68
+ *
69
+ * A5App 打印地址项
70
+ *
71
+ */
72
+ export interface A5AppPrintAddressItem {
73
+ name: string;
74
+ path: string;
75
+ }
76
+ /**
77
+ * @public
78
+ *
79
+ * A5App 打印地址选项
80
+ *
81
+ */
82
+ export interface A5AppPrintAddressOptions {
83
+ address?: A5AppPrintAddressItem[];
84
+ }
66
85
  /**
67
86
  * @public
68
87
  *
@@ -126,7 +145,7 @@ export declare class A5Application {
126
145
  * 在正常获取 IP 与端口后,可通过此函数输出日志信息。
127
146
  *
128
147
  */
129
- printAddress(): Promise<void>;
148
+ printAddress(options?: A5AppPrintAddressOptions): Promise<void>;
130
149
  /**
131
150
  *
132
151
  * @public
@@ -194,7 +194,7 @@ class A5Application {
194
194
  * 在正常获取 IP 与端口后,可通过此函数输出日志信息。
195
195
  *
196
196
  */
197
- async printAddress() {
197
+ async printAddress(options) {
198
198
  const urls = await this.getUrls();
199
199
  const timeDiffWithColor = util_1.ColorUtil.yellowBright(`${Date.now() - +process.env.A5_INIT_TIME} ms`);
200
200
  const urlMaxLength = Math.max(...urls.map((i) => i.length));
@@ -207,6 +207,12 @@ class A5Application {
207
207
  this.logger.log(` ${urlWithColor}`);
208
208
  }
209
209
  });
210
+ if (Array.isArray(options?.address)) {
211
+ options?.address.forEach((address) => {
212
+ const urlWithColor = util_1.ColorUtil.cyan(`${urls[0] ?? ''}${address.path}`);
213
+ this.logger.log(`${address.name.padEnd(21, ' ')} ${urlWithColor}`);
214
+ });
215
+ }
210
216
  }
211
217
  /**
212
218
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hz-9/a5-core",
3
- "version": "0.2.0-alpha.58",
3
+ "version": "0.2.0-alpha.59",
4
4
  "description": "The core library for the `@hz-9/a5-*` series of repositories.",
5
5
  "keywords": [
6
6
  "nest",