@net-vert/core 0.0.4 → 0.0.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/dist/index.d.ts +3 -11
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,14 +3,6 @@ declare interface BasicCredentials {
|
|
|
3
3
|
password: string;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
declare interface EnhancedProgressEvent {
|
|
7
|
-
readonly lengthComputable: boolean;
|
|
8
|
-
readonly loaded: number;
|
|
9
|
-
readonly total: number;
|
|
10
|
-
readonly target?: EventTarget;
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
6
|
export declare const extendRequestor: {
|
|
15
7
|
createCacheRequestor: (config?: {
|
|
16
8
|
key?: (config: UnifiedConfig) => string;
|
|
@@ -35,13 +27,13 @@ declare interface RequestConfig<D = any> {
|
|
|
35
27
|
method?: keyof Requestor;
|
|
36
28
|
baseURL?: string;
|
|
37
29
|
headers?: Record<string, any>;
|
|
38
|
-
params?: any;
|
|
30
|
+
params?: Record<string, any> | string;
|
|
39
31
|
data?: D;
|
|
40
32
|
timeout?: number;
|
|
41
33
|
auth?: BasicCredentials;
|
|
42
34
|
responseType?: ResponseType;
|
|
43
|
-
onUploadProgress?: (progressEvent:
|
|
44
|
-
onDownloadProgress?: (progressEvent:
|
|
35
|
+
onUploadProgress?: <P extends ProgressEvent>(progressEvent: P) => void;
|
|
36
|
+
onDownloadProgress?: <P extends ProgressEvent>(progressEvent: P) => void;
|
|
45
37
|
validateStatus?: ((status: number) => boolean) | null;
|
|
46
38
|
signal?: AbortSignal;
|
|
47
39
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@net-vert/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Dependency Inversion Network Library with Type-Safe Injection.",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "run-p type-check build-only",
|
|
9
9
|
"build-only": "vite build",
|
|
10
|
-
"type-check": "
|
|
10
|
+
"type-check": "tsc --noEmit"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"typescript": "~5.7.2"
|