reqwise-core 1.0.0 → 1.1.1
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/README.md +71 -0
- 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 +28 -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/src/types.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE"
|
|
2
|
-
|
|
3
|
-
export type SupportedLang =
|
|
4
|
-
| "en"
|
|
5
|
-
| "tr"
|
|
6
|
-
| "az"
|
|
7
|
-
| "ru"
|
|
8
|
-
| "de"
|
|
9
|
-
| "fr"
|
|
10
|
-
| "es"
|
|
11
|
-
| "pt"
|
|
12
|
-
| "zh"
|
|
13
|
-
| "ja"
|
|
14
|
-
| "ar"
|
|
15
|
-
| "ko"
|
|
16
|
-
| "it"
|
|
17
|
-
| "pl"
|
|
18
|
-
| "nl"
|
|
19
|
-
|
|
20
|
-
export interface ReqwiseEntry {
|
|
21
|
-
id: string
|
|
22
|
-
source: "auto" | "manual"
|
|
23
|
-
page: string
|
|
24
|
-
timestamp: string
|
|
25
|
-
method: HttpMethod
|
|
26
|
-
url: string
|
|
27
|
-
params?: Record<string, unknown>
|
|
28
|
-
requestHeaders?: Record<string, string>
|
|
29
|
-
requestBody?: unknown
|
|
30
|
-
status?: number
|
|
31
|
-
statusText?: string
|
|
32
|
-
responseHeaders?: Record<string, string>
|
|
33
|
-
responseBody?: unknown
|
|
34
|
-
duration?: number
|
|
35
|
-
error?: { message: string; stack?: string }
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface ReqwiseConfig {
|
|
39
|
-
axiosInstance?: unknown
|
|
40
|
-
theme?: "light" | "dark" | "system"
|
|
41
|
-
placement?: "top" | "right" | "bottom" | "left"
|
|
42
|
-
show?: "general" | "detailed"
|
|
43
|
-
defaultOpen?: boolean
|
|
44
|
-
enabled?: boolean
|
|
45
|
-
hotkey?: string
|
|
46
|
-
langs?: SupportedLang[]
|
|
47
|
-
defaultLang?: SupportedLang
|
|
48
|
-
ignore?: string[]
|
|
49
|
-
maskHeaders?: string[]
|
|
50
|
-
maskFields?: string[]
|
|
51
|
-
maxItems?: number
|
|
52
|
-
persistHistory?: boolean
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface RequestConfig {
|
|
56
|
-
params?: Record<string, unknown>
|
|
57
|
-
headers?: Record<string, string>
|
|
58
|
-
[key: string]: unknown
|
|
59
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "NodeNext",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"outDir": "dist",
|
|
7
|
-
"rootDir": "src",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"moduleResolution": "NodeNext",
|
|
12
|
-
"ignoreDeprecations": "6.0"
|
|
13
|
-
},
|
|
14
|
-
"include": ["src/**/*"]
|
|
15
|
-
}
|