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/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
- }
package/tsup.config.ts DELETED
@@ -1,9 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- export default defineConfig({
4
- entry: ['src/index.ts'],
5
- format: ['cjs', 'esm'],
6
- dts: true,
7
- sourcemap: true,
8
- clean: true,
9
- })