nnews-react 0.3.3 → 0.3.5
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33876,7 +33876,21 @@ function OM({ config: e, children: t }) {
|
|
|
33876
33876
|
"Content-Type": "application/json",
|
|
33877
33877
|
...e.headers
|
|
33878
33878
|
}
|
|
33879
|
-
})
|
|
33879
|
+
});
|
|
33880
|
+
r.interceptors.request.use((a) => {
|
|
33881
|
+
var l, c, u;
|
|
33882
|
+
return e.headers && Object.entries(e.headers).forEach(([d, h]) => {
|
|
33883
|
+
h && a.headers.set(d, h);
|
|
33884
|
+
}), console.log("[NNews] Request interceptor:", {
|
|
33885
|
+
method: (l = a.method) == null ? void 0 : l.toUpperCase(),
|
|
33886
|
+
url: `${a.baseURL || ""}${a.url || ""}`,
|
|
33887
|
+
headers: {
|
|
33888
|
+
Authorization: ((c = a.headers) == null ? void 0 : c.Authorization) || "(not set)",
|
|
33889
|
+
"Content-Type": ((u = a.headers) == null ? void 0 : u["Content-Type"]) || "(not set)"
|
|
33890
|
+
}
|
|
33891
|
+
}), a;
|
|
33892
|
+
});
|
|
33893
|
+
const i = new BL(r), s = new FL(r), o = new qL(r);
|
|
33880
33894
|
return {
|
|
33881
33895
|
config: e,
|
|
33882
33896
|
apiClient: r,
|