@kosdev-code/kos-ui-sdk 2.1.28 → 2.1.30
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/core/core/decorators/kosModel.d.ts.map +1 -1
- package/core/core/kos-container-model.d.ts +1 -1
- package/core/core/kos-container-model.d.ts.map +1 -1
- package/core/util/kos-service-request.d.ts.map +1 -1
- package/index.cjs +2 -2
- package/index.cjs.map +1 -1
- package/index.js +18 -9
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1900,12 +1900,12 @@ class Ge {
|
|
|
1900
1900
|
await this._removeEvictedModels(r), this._logEvictionComplete(r.length), this.increment();
|
|
1901
1901
|
}
|
|
1902
1902
|
/**
|
|
1903
|
-
* Log capacity exceeded
|
|
1903
|
+
* Log capacity exceeded info (Zone 3)
|
|
1904
1904
|
* @private
|
|
1905
1905
|
*/
|
|
1906
1906
|
_logCapacityWarning(e) {
|
|
1907
|
-
le.
|
|
1908
|
-
`Container capacity exceeded (${this._data.size}/${this._maxCapacity}). Evicting ${e} models using ${this._evictionStrategy} strategy
|
|
1907
|
+
le.info(
|
|
1908
|
+
`Container capacity exceeded (${this._data.size}/${this._maxCapacity}). Evicting ${e} models using ${this._evictionStrategy} strategy.`,
|
|
1909
1909
|
{ parentId: this._parentId }
|
|
1910
1910
|
);
|
|
1911
1911
|
}
|
|
@@ -1967,7 +1967,7 @@ class Ge {
|
|
|
1967
1967
|
*/
|
|
1968
1968
|
async _removeEvictedModels(e) {
|
|
1969
1969
|
for (const s of e)
|
|
1970
|
-
le.
|
|
1970
|
+
le.info(
|
|
1971
1971
|
`Evicting model: ${s.id} (type: ${s.constructor.name})`,
|
|
1972
1972
|
{
|
|
1973
1973
|
modelId: s.id,
|
|
@@ -2582,14 +2582,19 @@ function yh(t, e) {
|
|
|
2582
2582
|
const s = t.constructor.prototype[ht];
|
|
2583
2583
|
if (!s)
|
|
2584
2584
|
return;
|
|
2585
|
-
const { mode: r, parentProperty: n, excludeProperties: o } = s, i = e
|
|
2585
|
+
const { mode: r, parentProperty: n, excludeProperties: o } = s, i = e.companionParent;
|
|
2586
2586
|
if (!i) {
|
|
2587
2587
|
Nn.warn(
|
|
2588
|
-
|
|
2588
|
+
"Companion decorator configured but no parent model found in initialData.companionParent"
|
|
2589
2589
|
);
|
|
2590
2590
|
return;
|
|
2591
2591
|
}
|
|
2592
|
-
if (t.getCompanionParent = () => i,
|
|
2592
|
+
if (t.getCompanionParent = () => i, Object.defineProperty(t, n, {
|
|
2593
|
+
get: () => i,
|
|
2594
|
+
enumerable: !0,
|
|
2595
|
+
configurable: !0
|
|
2596
|
+
// Allow MobX to make this observable if needed
|
|
2597
|
+
}), r === "composition")
|
|
2593
2598
|
return;
|
|
2594
2599
|
const a = [
|
|
2595
2600
|
"init",
|
|
@@ -2665,7 +2670,7 @@ const vh = {
|
|
|
2665
2670
|
logger: i,
|
|
2666
2671
|
kosContext: n
|
|
2667
2672
|
});
|
|
2668
|
-
return dh(a), fh(a), ph(a), gh(a), mh(a, s),
|
|
2673
|
+
return yh(a, r), dh(a), fh(a), ph(a), gh(a), mh(a, s), Md(a), hh(a, s), bh(a);
|
|
2669
2674
|
}
|
|
2670
2675
|
};
|
|
2671
2676
|
function R(t) {
|
|
@@ -4245,7 +4250,11 @@ async function Vs(t, e, s, r, n) {
|
|
|
4245
4250
|
const o = r != null && r.path ? Object.keys(r.path).reduce(
|
|
4246
4251
|
(h, f) => String(h).replace(`{${f}}`, r == null ? void 0 : r.path[f]),
|
|
4247
4252
|
String(t)
|
|
4248
|
-
) : String(t), i = r != null && r.query ? Object.keys(r.query).map(
|
|
4253
|
+
) : String(t), i = r != null && r.query ? Object.keys(r.query).map(
|
|
4254
|
+
(h) => `${encodeURIComponent(h)}=${encodeURIComponent(
|
|
4255
|
+
r.query[h]
|
|
4256
|
+
)}`
|
|
4257
|
+
).join("&") : "", a = `${gf().URL}${o}${i ? `?${i}` : ""}`;
|
|
4249
4258
|
mf.debug(`fullUrl: ${a}`);
|
|
4250
4259
|
const c = {
|
|
4251
4260
|
method: String(e).toUpperCase(),
|