nnews-react 0.3.9 → 0.3.10
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.d.ts +1 -0
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -35901,16 +35901,17 @@ function dP({ config: e, children: t }) {
|
|
|
35901
35901
|
}
|
|
35902
35902
|
});
|
|
35903
35903
|
o.interceptors.request.use((u) => {
|
|
35904
|
-
var h, f, p;
|
|
35905
|
-
const d = i.current
|
|
35906
|
-
return d && Object.entries(d).forEach(([
|
|
35907
|
-
|
|
35908
|
-
}), console.log("[NNews] Request interceptor:", {
|
|
35904
|
+
var h, f, p, g;
|
|
35905
|
+
const d = i.current;
|
|
35906
|
+
return d.headers && Object.entries(d.headers).forEach(([b, y]) => {
|
|
35907
|
+
y && u.headers.set(b, y);
|
|
35908
|
+
}), d.tenantId && u.headers.set("X-Tenant-Id", d.tenantId), console.log("[NNews] Request interceptor:", {
|
|
35909
35909
|
method: (h = u.method) == null ? void 0 : h.toUpperCase(),
|
|
35910
35910
|
url: `${u.baseURL || ""}${u.url || ""}`,
|
|
35911
35911
|
headers: {
|
|
35912
35912
|
Authorization: ((f = u.headers) == null ? void 0 : f.Authorization) || "(not set)",
|
|
35913
|
-
"Content-Type": ((p = u.headers) == null ? void 0 : p["Content-Type"]) || "(not set)"
|
|
35913
|
+
"Content-Type": ((p = u.headers) == null ? void 0 : p["Content-Type"]) || "(not set)",
|
|
35914
|
+
"X-Tenant-Id": ((g = u.headers) == null ? void 0 : g["X-Tenant-Id"]) || "(not set)"
|
|
35914
35915
|
}
|
|
35915
35916
|
}), u;
|
|
35916
35917
|
});
|
|
@@ -35922,7 +35923,7 @@ function dP({ config: e, children: t }) {
|
|
|
35922
35923
|
categoryApi: l,
|
|
35923
35924
|
tagApi: c
|
|
35924
35925
|
};
|
|
35925
|
-
}, [e.apiUrl, e.apiClient]);
|
|
35926
|
+
}, [e.apiUrl, e.apiClient, e.tenantId]);
|
|
35926
35927
|
return /* @__PURE__ */ N(vy, { i18n: n, children: /* @__PURE__ */ N(ub.Provider, { value: s, children: t }) });
|
|
35927
35928
|
}
|
|
35928
35929
|
function ls() {
|