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 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' | 'auto';
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' | 'auto';
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