bt-core-app 1.4.111 → 1.4.112
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/bt-core-app.js +5 -9
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -1813,7 +1813,7 @@ function lt() {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
function Wr() {
|
|
1815
1815
|
const e = le == null ? void 0 : le.getEnv();
|
|
1816
|
-
return
|
|
1816
|
+
return le == null ? "" : (le[e] ?? le.development).auth ?? "";
|
|
1817
1817
|
}
|
|
1818
1818
|
function gn(e) {
|
|
1819
1819
|
const t = le == null ? void 0 : le.getEnv();
|
|
@@ -1876,7 +1876,7 @@ function bn(e) {
|
|
|
1876
1876
|
var l, S, s, g, I;
|
|
1877
1877
|
e.storeMode ?? (e.storeMode = ((S = (l = e.navigation) == null ? void 0 : l.findItem(e.nav)) == null ? void 0 : S.storeMode) ?? "session"), e.storageMode ?? (e.storageMode = ((g = (s = e.navigation) == null ? void 0 : s.findItem(e.nav)) == null ? void 0 : g.storageMode) ?? "local-cache"), e.storeName ?? (e.storeName = ((I = e.navigation) == null ? void 0 : I.findStoreName(e.nav)) ?? e.nav);
|
|
1878
1878
|
const t = { ...e, storeName: e.storeName ?? "" };
|
|
1879
|
-
if (
|
|
1879
|
+
if (e.storeName == null)
|
|
1880
1880
|
throw new Error("no store name provided");
|
|
1881
1881
|
if (e.storeMode == "whole-last-updated") {
|
|
1882
1882
|
if (e.api == null)
|
|
@@ -2095,21 +2095,17 @@ function qr(e) {
|
|
|
2095
2095
|
return `${e.storeName}_${((c = e.auth) == null ? void 0 : c.credentials.value.userID) ?? "no-user-id"}`;
|
|
2096
2096
|
}
|
|
2097
2097
|
async function N() {
|
|
2098
|
-
if (
|
|
2099
|
-
console.log("saving");
|
|
2098
|
+
if (P == !0) {
|
|
2100
2099
|
const c = {
|
|
2101
2100
|
meta: J(g),
|
|
2102
2101
|
data: J(t) ?? [],
|
|
2103
2102
|
count: J(l) ?? 0,
|
|
2104
2103
|
filters: []
|
|
2105
2104
|
};
|
|
2106
|
-
console.log(c);
|
|
2107
2105
|
try {
|
|
2108
2106
|
await ve().setItem(_(), JSON.parse(JSON.stringify(c)));
|
|
2109
2107
|
} catch (y) {
|
|
2110
2108
|
console.log("sav err"), console.log(y);
|
|
2111
|
-
} finally {
|
|
2112
|
-
console.log("done");
|
|
2113
2109
|
}
|
|
2114
2110
|
}
|
|
2115
2111
|
}
|
|
@@ -2159,12 +2155,12 @@ function qr(e) {
|
|
|
2159
2155
|
};
|
|
2160
2156
|
}
|
|
2161
2157
|
if (e.api == null)
|
|
2162
|
-
return
|
|
2158
|
+
return {
|
|
2163
2159
|
count: (T = t.value) == null ? void 0 : T.length,
|
|
2164
2160
|
data: t.value ?? [],
|
|
2165
2161
|
filters: s.value
|
|
2166
2162
|
};
|
|
2167
|
-
|
|
2163
|
+
t.value ?? (t.value = []);
|
|
2168
2164
|
try {
|
|
2169
2165
|
return await $(c), {
|
|
2170
2166
|
count: (x = t.value) == null ? void 0 : x.length,
|
package/package.json
CHANGED