yingzios-platform-backend-shared 1.0.1 → 1.0.2

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # yz-web-server-shared
1
+ # yingzios-platform-backend-shared
2
2
 
3
3
  NestJS 共享模块库,为 YingziOS 平台提供统一的服务端基础设施。
4
4
 
@@ -18,14 +18,14 @@ NestJS 共享模块库,为 YingziOS 平台提供统一的服务端基础设施
18
18
  ## 安装
19
19
 
20
20
  ```bash
21
- pnpm add yz-web-server-shared
21
+ pnpm add yingzios-platform-backend-shared
22
22
  ```
23
23
 
24
24
  ## 使用示例
25
25
 
26
26
  ```typescript
27
- import { SequelizeModule } from 'yz-web-server-shared/sequelize';
28
- import { JwtModule } from 'yz-web-server-shared/jwt';
27
+ import { SequelizeModule } from 'yingzios-platform-backend-shared/sequelize';
28
+ import { JwtModule } from 'yingzios-platform-backend-shared/jwt';
29
29
 
30
30
  @Module({
31
31
  imports: [
@@ -27,7 +27,7 @@ export interface EnvLoadOptions {
27
27
  * @example
28
28
  * ```typescript
29
29
  * // 在服务的 main.ts 或 utils/index.ts 中
30
- * import { loadEnvWithInheritance } from 'yz-web-server-shared';
30
+ * import { loadEnvWithInheritance } from 'yingzios-platform-backend-shared';
31
31
  *
32
32
  * loadEnvWithInheritance({ serviceDir: __dirname });
33
33
  * ```
@@ -38,7 +38,7 @@ export declare function loadEnvWithInheritance(options?: EnvLoadOptions): void;
38
38
  *
39
39
  * 各服务可直接 import 使用:
40
40
  * ```typescript
41
- * import { envInitialize } from 'yz-web-server-shared';
41
+ * import { envInitialize } from 'yingzios-platform-backend-shared';
42
42
  * envInitialize();
43
43
  * ```
44
44
  *
@@ -105,7 +105,7 @@ function loadEnvFromDir(dir, envFiles, override, verbose, label) {
105
105
  * @example
106
106
  * ```typescript
107
107
  * // 在服务的 main.ts 或 utils/index.ts 中
108
- * import { loadEnvWithInheritance } from 'yz-web-server-shared';
108
+ * import { loadEnvWithInheritance } from 'yingzios-platform-backend-shared';
109
109
  *
110
110
  * loadEnvWithInheritance({ serviceDir: __dirname });
111
111
  * ```
@@ -142,7 +142,7 @@ function loadEnvWithInheritance(options = {}) {
142
142
  *
143
143
  * 各服务可直接 import 使用:
144
144
  * ```typescript
145
- * import { envInitialize } from 'yz-web-server-shared';
145
+ * import { envInitialize } from 'yingzios-platform-backend-shared';
146
146
  * envInitialize();
147
147
  * ```
148
148
  *
@@ -8,7 +8,7 @@
8
8
  * @example
9
9
  * ```typescript
10
10
  * // 1. 在 AppModule 中注册
11
- * import { InternalAuthModule, EnvService } from 'yz-web-server-shared';
11
+ * import { InternalAuthModule, EnvService } from 'yingzios-platform-backend-shared';
12
12
  *
13
13
  * @Module({
14
14
  * imports: [
@@ -23,7 +23,7 @@
23
23
  * export class AppModule {}
24
24
  *
25
25
  * // 2. 在 Controller 中使用
26
- * import { ServiceKeyGuard, UseEitherGuard, Caller } from 'yz-web-server-shared';
26
+ * import { ServiceKeyGuard, UseEitherGuard, Caller } from 'yingzios-platform-backend-shared';
27
27
  *
28
28
  * // 仅允许服务调用
29
29
  * @UseGuards(ServiceKeyGuard)
@@ -9,7 +9,7 @@
9
9
  * @example
10
10
  * ```typescript
11
11
  * // 1. 在 AppModule 中注册
12
- * import { InternalAuthModule, EnvService } from 'yz-web-server-shared';
12
+ * import { InternalAuthModule, EnvService } from 'yingzios-platform-backend-shared';
13
13
  *
14
14
  * @Module({
15
15
  * imports: [
@@ -24,7 +24,7 @@
24
24
  * export class AppModule {}
25
25
  *
26
26
  * // 2. 在 Controller 中使用
27
- * import { ServiceKeyGuard, UseEitherGuard, Caller } from 'yz-web-server-shared';
27
+ * import { ServiceKeyGuard, UseEitherGuard, Caller } from 'yingzios-platform-backend-shared';
28
28
  *
29
29
  * // 仅允许服务调用
30
30
  * @UseGuards(ServiceKeyGuard)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yingzios-platform-backend-shared",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "NestJS 共享模块库",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",