reqwise-core 1.0.0 → 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.
- package/dist/index.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +81 -31
- package/dist/index.mjs +199 -38
- package/package.json +26 -25
- package/.turbo/turbo-build.log +0 -26
- package/dist/chunk-DKID2ES7.mjs +0 -96
- package/dist/chunk-DKID2ES7.mjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/storage-P7DHGOZ3.mjs +0 -19
- package/dist/storage-P7DHGOZ3.mjs.map +0 -1
- package/public/banner.png +0 -0
- package/public/logo.png +0 -0
- package/src/banner.b64.txt +0 -1
- package/src/client.ts +0 -163
- package/src/filter.ts +0 -96
- package/src/i18n.ts +0 -843
- package/src/images.ts +0 -2
- package/src/index.ts +0 -24
- package/src/panel.ts +0 -446
- package/src/renderer.ts +0 -574
- package/src/storage.ts +0 -102
- package/src/styles.ts +0 -730
- package/src/types.ts +0 -59
- package/tsconfig.json +0 -15
- package/tsup.config.ts +0 -9
package/dist/index.d.mts
CHANGED
|
@@ -46,11 +46,21 @@ declare function initClient(c?: Partial<ReqwiseConfig>): void;
|
|
|
46
46
|
declare function recordPartial(entry: Partial<ReqwiseEntry>): void;
|
|
47
47
|
declare function wrapAxios(instance: any): void;
|
|
48
48
|
declare function fetchWithRecord(input: RequestInfo, init?: RequestInit & RequestConfig): Promise<Response>;
|
|
49
|
+
declare function get(url: string, config?: RequestConfig): Promise<any>;
|
|
50
|
+
declare function post(url: string, data?: unknown, config?: RequestConfig): Promise<any>;
|
|
51
|
+
declare function put(url: string, data?: unknown, config?: RequestConfig): Promise<any>;
|
|
52
|
+
declare function patch(url: string, data?: unknown, config?: RequestConfig): Promise<any>;
|
|
53
|
+
declare function del(url: string, config?: RequestConfig): Promise<any>;
|
|
49
54
|
declare const ReqwiseClient: {
|
|
50
55
|
init: typeof initClient;
|
|
51
56
|
wrapAxios: typeof wrapAxios;
|
|
52
57
|
fetch: typeof fetchWithRecord;
|
|
53
58
|
record: typeof recordPartial;
|
|
59
|
+
get: typeof get;
|
|
60
|
+
post: typeof post;
|
|
61
|
+
put: typeof put;
|
|
62
|
+
patch: typeof patch;
|
|
63
|
+
delete: typeof del;
|
|
54
64
|
};
|
|
55
65
|
|
|
56
66
|
type Translations = Record<string, string>;
|
|
@@ -104,7 +114,7 @@ interface PanelConfig {
|
|
|
104
114
|
defaultOpen?: boolean;
|
|
105
115
|
placement?: Placement;
|
|
106
116
|
hotkey?: string;
|
|
107
|
-
theme?: 'dark' | 'light' | '
|
|
117
|
+
theme?: 'dark' | 'light' | 'system';
|
|
108
118
|
}
|
|
109
119
|
type RendererFn = (container: HTMLElement) => void;
|
|
110
120
|
declare const panel: {
|
|
@@ -150,6 +160,11 @@ declare const _default: {
|
|
|
150
160
|
wrapAxios: typeof wrapAxios;
|
|
151
161
|
fetch: typeof fetchWithRecord;
|
|
152
162
|
record: typeof recordPartial;
|
|
163
|
+
get: typeof get;
|
|
164
|
+
post: typeof post;
|
|
165
|
+
put: typeof put;
|
|
166
|
+
patch: typeof patch;
|
|
167
|
+
delete: typeof del;
|
|
153
168
|
};
|
|
154
169
|
};
|
|
155
170
|
|
package/dist/index.d.ts
CHANGED
|
@@ -46,11 +46,21 @@ declare function initClient(c?: Partial<ReqwiseConfig>): void;
|
|
|
46
46
|
declare function recordPartial(entry: Partial<ReqwiseEntry>): void;
|
|
47
47
|
declare function wrapAxios(instance: any): void;
|
|
48
48
|
declare function fetchWithRecord(input: RequestInfo, init?: RequestInit & RequestConfig): Promise<Response>;
|
|
49
|
+
declare function get(url: string, config?: RequestConfig): Promise<any>;
|
|
50
|
+
declare function post(url: string, data?: unknown, config?: RequestConfig): Promise<any>;
|
|
51
|
+
declare function put(url: string, data?: unknown, config?: RequestConfig): Promise<any>;
|
|
52
|
+
declare function patch(url: string, data?: unknown, config?: RequestConfig): Promise<any>;
|
|
53
|
+
declare function del(url: string, config?: RequestConfig): Promise<any>;
|
|
49
54
|
declare const ReqwiseClient: {
|
|
50
55
|
init: typeof initClient;
|
|
51
56
|
wrapAxios: typeof wrapAxios;
|
|
52
57
|
fetch: typeof fetchWithRecord;
|
|
53
58
|
record: typeof recordPartial;
|
|
59
|
+
get: typeof get;
|
|
60
|
+
post: typeof post;
|
|
61
|
+
put: typeof put;
|
|
62
|
+
patch: typeof patch;
|
|
63
|
+
delete: typeof del;
|
|
54
64
|
};
|
|
55
65
|
|
|
56
66
|
type Translations = Record<string, string>;
|
|
@@ -104,7 +114,7 @@ interface PanelConfig {
|
|
|
104
114
|
defaultOpen?: boolean;
|
|
105
115
|
placement?: Placement;
|
|
106
116
|
hotkey?: string;
|
|
107
|
-
theme?: 'dark' | 'light' | '
|
|
117
|
+
theme?: 'dark' | 'light' | 'system';
|
|
108
118
|
}
|
|
109
119
|
type RendererFn = (container: HTMLElement) => void;
|
|
110
120
|
declare const panel: {
|
|
@@ -150,6 +160,11 @@ declare const _default: {
|
|
|
150
160
|
wrapAxios: typeof wrapAxios;
|
|
151
161
|
fetch: typeof fetchWithRecord;
|
|
152
162
|
record: typeof recordPartial;
|
|
163
|
+
get: typeof get;
|
|
164
|
+
post: typeof post;
|
|
165
|
+
put: typeof put;
|
|
166
|
+
patch: typeof patch;
|
|
167
|
+
delete: typeof del;
|
|
153
168
|
};
|
|
154
169
|
};
|
|
155
170
|
|