@oondemand/oon-core-front 0.4.19 → 0.4.20
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.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -89,9 +89,10 @@ function createRestClient(deps) {
|
|
|
89
89
|
if (token && !config.headers.Authorization) {
|
|
90
90
|
config.headers.Authorization = `Bearer ${token}`;
|
|
91
91
|
}
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
const explicitTenantId = config.headers.get("x-oon-tenant-id");
|
|
93
|
+
const tenantId = explicitTenantId || getTenantId?.();
|
|
94
|
+
if (tenantId) config.headers.set("x-oon-tenant-id", String(tenantId));
|
|
95
|
+
else config.headers.delete("x-oon-tenant-id");
|
|
95
96
|
if (appId) config.headers["x-oon-app"] = appId;
|
|
96
97
|
return config;
|
|
97
98
|
});
|
|
@@ -5467,7 +5468,7 @@ function Sidebar({ app, menu, registry }) {
|
|
|
5467
5468
|
// package.json
|
|
5468
5469
|
var package_default = {
|
|
5469
5470
|
name: "@oondemand/oon-core-front",
|
|
5470
|
-
version: "0.4.
|
|
5471
|
+
version: "0.4.20",
|
|
5471
5472
|
repository: {
|
|
5472
5473
|
type: "git",
|
|
5473
5474
|
url: "git+https://github.com/oondemand/oon-platform.git",
|