@kosdev-code/kos-ui-sdk 2.1.15 → 2.1.17
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/log/log.d.ts.map +1 -1
- package/index.cjs +2 -2
- package/index.cjs.map +1 -1
- package/index.js +12 -8
- package/index.js.map +1 -1
- package/models/models/storage-device/services/storage-device-services.d.ts +1 -0
- package/models/models/storage-device/services/storage-device-services.d.ts.map +1 -1
- package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -768,10 +768,12 @@ const la = ca, Au = () => la.profiles || [], ko = (e) => Au().includes(e), Tw =
|
|
|
768
768
|
}, Lu = () => window.kosMessageLogging || process.env.KOS_MESSAGE_LOGGING === "true", Fu = () => window.kosMessageStudioLogging || process.env.KOS_MESSAGE_STUDIO_LOGGING === "true", ua = "ws-log", Nu = S.methodFactory, da = Lu(), Uu = Fu();
|
|
769
769
|
S.methodFactory = function(e, t, s) {
|
|
770
770
|
const r = Nu(e, t, s);
|
|
771
|
-
return function(n
|
|
771
|
+
return function(...n) {
|
|
772
772
|
var c;
|
|
773
|
-
const
|
|
774
|
-
|
|
773
|
+
const o = s ? String(s) : "", i = o ? `[${String(o).substring(o.lastIndexOf(":") + 1)}] | ` : "[root] | ", a = n.map(
|
|
774
|
+
(u) => typeof u == "object" ? JSON.stringify(u) : String(u)
|
|
775
|
+
).join(" ");
|
|
776
|
+
r(`${i}${a}`), (c = globalThis == null ? void 0 : globalThis.kosConfig) != null && c.logging && globalThis.kosLog && (s !== ua || da && Uu) && globalThis.kosLog(`UI: ${i}${a}`);
|
|
775
777
|
};
|
|
776
778
|
};
|
|
777
779
|
let ha = ku();
|
|
@@ -13994,11 +13996,13 @@ let ys = class {
|
|
|
13994
13996
|
}
|
|
13995
13997
|
async load() {
|
|
13996
13998
|
this.logger.debug(`loading storage-device-container container ${this.id}`), (await fl()).forEach((t) => {
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
13999
|
+
if (t.deviceType !== "disk") {
|
|
14000
|
+
const s = {
|
|
14001
|
+
...t,
|
|
14002
|
+
kosParentId: this.id
|
|
14003
|
+
}, r = Un.instance(t.id).options(s).build();
|
|
14004
|
+
this.addModel(r);
|
|
14005
|
+
}
|
|
14002
14006
|
});
|
|
14003
14007
|
}
|
|
14004
14008
|
};
|