react-js-plugins 3.2.0 → 3.3.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/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ pnpm add react-js-plugins
|
|
|
27
27
|
### **Documentation Site in Progress...**
|
|
28
28
|
*We're building an enhanced documentation experience with better navigation and examples. Coming soon!*
|
|
29
29
|
|
|
30
|
-
### ✅ **
|
|
30
|
+
### ✅ **createAxiosInstance**
|
|
31
31
|
|
|
32
32
|
Creates a **preconfigured instance** for **authenticated API calls**.
|
|
33
33
|
It supports automatic date formatting, optional data encryption/decryption, seamless data transformation, enhanced security, and built-in error handling with full cross-browser compatibility.
|
|
@@ -39,8 +39,8 @@ const apiPrivate = createAxiosInstance({
|
|
|
39
39
|
withCredentials: true,
|
|
40
40
|
enableDateTransform: true,
|
|
41
41
|
enableEncryptDecrypt: true,
|
|
42
|
-
transformRequest: (data) =>
|
|
43
|
-
transformResponse: (data) =>
|
|
42
|
+
transformRequest: (data) => transform(data),
|
|
43
|
+
transformResponse: (data) => transform(data),
|
|
44
44
|
handleAuthError: async (instance, originalRequest, error) => {
|
|
45
45
|
console.error('API Error:', error.message);
|
|
46
46
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-js-plugins",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "A powerful and efficient React utility library designed to enhance application performance by streamlining and simplifying the management of complex asynchronous operations.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|