vaniy 0.1.1 → 0.1.3

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 CHANGED
@@ -82,6 +82,17 @@ onPageLoad(() => console.log("DOM loaded"));
82
82
 
83
83
  ### HTTP
84
84
 
85
+ **Caching shorthand codes:**
86
+
87
+ | Rule | Description |
88
+ | ----- | ------------------------------ |
89
+ | `CFL` | cache-first + localStorage |
90
+ | `CFS` | cache-first + sessionStorage |
91
+ | `CFM` | cache-first + memory |
92
+ | `NFL` | network-first + localStorage |
93
+ | `NFS` | network-first + sessionStorage |
94
+ | `NFM` | network-first + memory |
95
+
85
96
  HTTP client with caching, interceptors, and progress tracking.
86
97
 
87
98
  ```javascript
@@ -123,17 +134,6 @@ const data = await HTTP.get("/data", {
123
134
  },
124
135
  });
125
136
 
126
- **Shorthand codes:**
127
-
128
- | Rule | Description |
129
- | ---------- | ------------------------------- |
130
- | `CFL` | cache-first + localStorage |
131
- | `CFS` | cache-first + sessionStorage |
132
- | `CFM` | cache-first + memory |
133
- | `NFL` | network-first + localStorage |
134
- | `NFS` | network-first + sessionStorage |
135
- | `NFM` | network-first + memory |
136
-
137
137
  // Or with cache helper see table below for options
138
138
  const data = await HTTP.get("/data", cache("CFL 1min"));
139
139