dff-util 1.1.4 → 1.1.5

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 [DFF TECH]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -214,6 +214,7 @@ export type SessionInfo = {
214
214
  mobile?: string;
215
215
  name?: string;
216
216
  roles: string[];
217
+ type?: string;
217
218
  requestId?: string;
218
219
  token?: string;
219
220
  iat?: number;
@@ -231,6 +232,7 @@ export type SessionUser = {
231
232
  mobile?: string;
232
233
  name?: string;
233
234
  roles: string[];
235
+ type?: string;
234
236
  };
235
237
  ```
236
238
 
@@ -5,6 +5,7 @@ export type SessionInfo = {
5
5
  name?: string;
6
6
  roles: string[];
7
7
  requestId?: string;
8
+ type?: string;
8
9
  token?: string;
9
10
  iat?: number;
10
11
  exp?: number;
@@ -16,6 +17,7 @@ export type SessionUser = {
16
17
  mobile?: string;
17
18
  name?: string;
18
19
  roles: string[];
20
+ type?: string;
19
21
  };
20
22
  export type ResponseType = {
21
23
  status?: string | number;
@@ -25,5 +25,5 @@ export declare class Http {
25
25
  static Token(sessionInfo: any, appKey: string, apiKey?: string, type?: RespType): Promise<any>;
26
26
  static FormUpload(url: string, file: File, isHeadersAddMultiForm?: boolean, data?: Record<string, any>, headers?: any, method?: 'POST' | 'PUT', type?: RespType): Promise<any>;
27
27
  static CloudUpload(fullUrl: string, file: File, headers?: any, method?: 'POST' | 'PUT'): Promise<Response>;
28
- static FileDownload(fullUrl: string, params: any, headers?: any, method?: string): Promise<Buffer<ArrayBufferLike>>;
28
+ static FileDownload(fullUrl: string, params: any, headers?: any, method?: string): Promise<Buffer<ArrayBuffer>>;
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -14,7 +14,7 @@
14
14
  "util"
15
15
  ],
16
16
  "author": "DesignForFeature",
17
- "license": "ISC",
17
+ "license": "MIT",
18
18
  "description": "DesignForFeature Utilities",
19
19
  "devDependencies": {
20
20
  "@types/jwt-encode": "^1.0.3",