@laiye_packages/uci 1.0.8 → 1.1.0

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.
@@ -1,14 +1,6 @@
1
1
  import { LYObject } from '../object';
2
2
  import { type LYAction, LYAppPermission } from '../permission';
3
3
  type LYSessionType = 'web' | 'direct' | 'gateway' | 'redirect' | 'app';
4
- /**
5
- * 获取指定 app 的所有权限编码的回调类型
6
- */
7
- export type LYAllCodesProvider = (appName: string) => string[];
8
- /**
9
- * Session 创建后的回调类型
10
- */
11
- export type LYSessionCreatedCallback = () => Promise<void>;
12
4
  export declare class LYSession extends LYObject {
13
5
  private static _session?;
14
6
  private _type;
@@ -28,24 +20,6 @@ export declare class LYSession extends LYObject {
28
20
  private _email;
29
21
  private _phone;
30
22
  private _country_code;
31
- /**
32
- * 获取指定 app 的所有权限编码的回调
33
- */
34
- private static _allCodesProvider?;
35
- /**
36
- * Session 创建后的回调
37
- */
38
- private static _onSessionCreated?;
39
- /**
40
- * 设置获取所有权限编码的回调
41
- * @param provider 回调函数
42
- */
43
- static setAllCodesProvider(provider: LYAllCodesProvider): void;
44
- /**
45
- * 设置 Session 创建后的回调
46
- * @param callback 回调函数
47
- */
48
- static setOnSessionCreated(callback: LYSessionCreatedCallback): void;
49
23
  static get(): LYSession | undefined;
50
24
  static create(type: LYSessionType, authentication_name: string, id: string, token: string, user_id: string, user_name: string, expires_in: number, permissions: Record<string, Record<string, LYAction[]>>, is_first_login?: boolean, display_name?: string, email?: string, phone?: string, country_code?: string): LYSession;
51
25
  static clear(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laiye_packages/uci",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "description": "A comprehensive utility library for frontend applications with HTTP client, storage, i18n, crypto, logger, and OpenTelemetry support",
6
6
  "exports": {
@@ -63,12 +63,12 @@
63
63
  "downloadjs": "^1.4.7",
64
64
  "events": "^3.3.0",
65
65
  "gm-crypto": "^0.1.12",
66
- "i18next": "^25.0.1",
66
+ "i18next": "25.8.0",
67
67
  "idb": "^8.0.2",
68
68
  "js-sha256": "^0.11.1",
69
69
  "lodash": "^4.17.21",
70
70
  "qs": "^6.14.0",
71
- "sm-crypto": "^0.3.13"
71
+ "sm-crypto": "0.3.13"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@rslib/core": "^0.13.3",