reqwise-core 1.1.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.
Files changed (2) hide show
  1. package/README.md +71 -0
  2. package/package.json +23 -21
package/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # @reqwise/core 🚀
2
+
3
+ > **Reqwise**, React və vanilla JavaScript tətbiqlərində edilən HTTP API istəklərini (Axios/Fetch) tutan, qeyd edən və tətbiq daxilində vizuallaşdıran güclü bir tərtibatçı (developer) alətidir.
4
+
5
+ Tətbiqinizin içində mini bir **Postman** və ya **Chrome DevTools Network** paneli kimi işləyir. Sayfada üzən (floating aside) bir panel vasitəsilə istəkləri real vaxt rejimində izləyə, tarixçəyə baxa və tək kliklə test istəkləri göndərə bilərsiniz.
6
+
7
+ ---
8
+
9
+ ## ✨ Özəlliklər
10
+
11
+ - 🔄 **Tam HTTP İzləmə:** `ReqwiseClient` üzərindən keçən bütün Payload-ları (method, url, body, headers, duration, response) avtomatik qeyd edir.
12
+ - 💾 **Davamlılıq (Persistence):** İstəkləri `localStorage` (`reqwise_log` açarı) üzərində saxlayır, səhifə yenilənsə belə itmir.
13
+ - 🛡️ **Təhlükəsizlik (Masking):** Həssas məlumatları gizlətmək üçün `maskHeaders` (məs. Authorization) və `maskFields` (məs. password) dəstəyi.
14
+ - 🌍 **Beynəlmiləlləşdirmə (i18n):** Daxili 15 dil dəstəyi və ağıllı `t(key, lang)` köməkçisi.
15
+ - ⌨️ **Hotkey Dəstəyi:** Özəlləşdirilə bilən qısayollar (məs. `ctrl+shift+e`) ilə paneli gizlədib-açma.
16
+
17
+ ---
18
+
19
+ ## 📦 Qurulum (Installation)
20
+
21
+ Paketi layihənizə `npm` və ya `pnpm` vasitəsilə əlavə edin:
22
+
23
+ ```bash
24
+ npm install @reqwise/core
25
+ # və ya
26
+ pnpm add @reqwise/core
27
+ ```
28
+
29
+ ---
30
+
31
+ ## 🚀 İşləmə Məntiqi (Architecture Flow)
32
+
33
+ Reqwise tətbiqiniz ilə backend arasında bir körpü rolunu oynayır:
34
+
35
+ front ➔ ReqwiseClient ➔ axios (və ya fetch fallback) ➔ backend
36
+
37
+ 1. İstək göndərilir ➔ Payload (`ReqwiseEntry` formatında) qeyd olunur.
38
+ 2. Gerçək HTTP istəyi icra edilir.
39
+ 3. Cavab (Response) alınır ➔ Müddət (duration) və status qeyd olunur.
40
+ 4. Məlumatlar `reqwise_log` ilə local-a yazılır və `reqwise:update` eventi tetiklenir.
41
+ 5. DOM-a yeridilmiş `#reqwise-panel` interfeysi dərhal yenilənir.
42
+
43
+ ---
44
+
45
+ ## 🛠️ Konfiqurasiya Nümunəsi
46
+
47
+ Projenin core tərəfini başlamaq üçün `core.configure()` funksiyasından istifadə olunur:
48
+
49
+ ```typescript
50
+ import { core } from "@reqwise/core";
51
+
52
+ core.configure({
53
+ theme: "dark",
54
+ placement: "right",
55
+ enabled: true,
56
+ maxItems: 500,
57
+ persistHistory: true,
58
+ ignore: ["/health", "/ping"],
59
+ maskHeaders: ["Authorization"]
60
+ });
61
+ ```
62
+
63
+ ---
64
+
65
+ ## 🤖 Reqwise Development Agent (RDA)
66
+
67
+ Bu layihə **RDA (Reqwise Development Agent)** adlı xüsusi bir AI arxitekturası tərəfindən idarə olunur və inkişaf etdirilir. RDA layihənin struktur bütövlüyünü qorumaq, `.b64.txt` kimi böyük faylların bundle-a girməsinin qarşısını almaq (`/bundle-check`) və ciddi isimləndirmə qaydalarına riayət etmək üçün xüsusi əmrlərə (`/status`, `/fix`, `/checklist`) malikdir.
68
+
69
+ ## 📄 Lisenziya
70
+
71
+ MIT © Alizadeh
package/package.json CHANGED
@@ -1,26 +1,28 @@
1
1
  {
2
2
  "name": "reqwise-core",
3
- "version": "1.1.0",
4
- "main": "dist/index.js",
5
- "module": "dist/index.mjs",
6
- "types": "dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "import": "./dist/index.mjs",
11
- "require": "./dist/index.js"
12
- }
3
+ "version": "1.1.1",
4
+ "description": "Core vanilla TypeScript HTTP interceptor and floating developer panel for Reqwise ecosystem.",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "keywords": [
9
+ "reqwise",
10
+ "devtools",
11
+ "http-logger",
12
+ "network-inspector",
13
+ "monorepo",
14
+ "axios-interceptor",
15
+ "fetch-logger"
16
+ ],
17
+ "author": "Ali Zadeh <alizadehh04@example.com>",
18
+ "license": "MIT",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com",
22
+ "directory": "packages/core"
13
23
  },
14
- "scripts": {
15
- "build": "tsup",
16
- "type-check": "tsc -p tsconfig.json --noEmit"
24
+ "bugs": {
25
+ "url": "https://github.com"
17
26
  },
18
- "peerDependencies": {
19
- "axios": ">=1.0.0"
20
- },
21
- "peerDependenciesMeta": {
22
- "axios": {
23
- "optional": true
24
- }
25
- }
27
+ "homepage": "https://github.com"
26
28
  }