fimo 0.3.5-experimental.1 → 0.3.5-staging.1
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/cli/bundle.json
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -103822,8 +103822,7 @@ async function loadPublicTenantLabels(cwd, locale) {
|
|
|
103822
103822
|
try {
|
|
103823
103823
|
const url2 = new URL("/labels", apiUrl);
|
|
103824
103824
|
url2.searchParams.set("locale", locale);
|
|
103825
|
-
const
|
|
103826
|
-
const response = await fetchWithTimeout(url2, 4e3, headers);
|
|
103825
|
+
const response = await fetchWithTimeout(url2, 4e3);
|
|
103827
103826
|
if (!response.ok) {
|
|
103828
103827
|
return null;
|
|
103829
103828
|
}
|
|
@@ -103831,17 +103830,17 @@ async function loadPublicTenantLabels(cwd, locale) {
|
|
|
103831
103830
|
if (Array.isArray(body.data)) {
|
|
103832
103831
|
return labelsToRecord(body.data);
|
|
103833
103832
|
}
|
|
103834
|
-
return body.data?.labels ??
|
|
103833
|
+
return body.data?.labels ?? {};
|
|
103835
103834
|
} catch {
|
|
103836
103835
|
return null;
|
|
103837
103836
|
}
|
|
103838
103837
|
}
|
|
103839
103838
|
__name(loadPublicTenantLabels, "loadPublicTenantLabels");
|
|
103840
|
-
async function fetchWithTimeout(url2, timeoutMs
|
|
103839
|
+
async function fetchWithTimeout(url2, timeoutMs) {
|
|
103841
103840
|
const controller = new AbortController();
|
|
103842
103841
|
const timeout = setTimeout(() => controller.abort(), timeoutMs);
|
|
103843
103842
|
try {
|
|
103844
|
-
return await fetch(url2, { signal: controller.signal
|
|
103843
|
+
return await fetch(url2, { signal: controller.signal });
|
|
103845
103844
|
} finally {
|
|
103846
103845
|
clearTimeout(timeout);
|
|
103847
103846
|
}
|
|
@@ -103855,9 +103854,6 @@ async function readProjectEnv(cwd) {
|
|
|
103855
103854
|
if (process.env.VITE_API_URL) {
|
|
103856
103855
|
values.VITE_API_URL = process.env.VITE_API_URL;
|
|
103857
103856
|
}
|
|
103858
|
-
if (process.env.VITE_FIMO_BRANCH) {
|
|
103859
|
-
values.VITE_FIMO_BRANCH = process.env.VITE_FIMO_BRANCH;
|
|
103860
|
-
}
|
|
103861
103857
|
return values;
|
|
103862
103858
|
}
|
|
103863
103859
|
__name(readProjectEnv, "readProjectEnv");
|
package/package.json
CHANGED