@fluxstack/live-client 0.6.0 → 0.7.0
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.cjs +27 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -2
- package/dist/index.js.map +1 -1
- package/dist/live-client.browser.global.js +27 -3
- package/dist/live-client.browser.global.js.map +1 -1
- package/package.json +49 -49
- package/src/component.ts +22 -1
- package/src/rooms.ts +22 -1
package/dist/index.cjs
CHANGED
|
@@ -448,15 +448,27 @@ function isPlainObject(v) {
|
|
|
448
448
|
return v !== null && typeof v === "object" && !Array.isArray(v) && Object.getPrototypeOf(v) === Object.prototype;
|
|
449
449
|
}
|
|
450
450
|
function deepMerge(target, source, seen) {
|
|
451
|
+
return deepMergeImpl(target, source, 0, seen);
|
|
452
|
+
}
|
|
453
|
+
function deepMergeImpl(target, source, depth, seen) {
|
|
451
454
|
if (!seen) seen = /* @__PURE__ */ new Set();
|
|
452
455
|
if (seen.has(source)) return target;
|
|
453
456
|
seen.add(source);
|
|
454
457
|
const result = { ...target };
|
|
455
458
|
for (const key of Object.keys(source)) {
|
|
456
459
|
const newVal = source[key];
|
|
460
|
+
if (newVal === void 0) continue;
|
|
461
|
+
if (newVal === null) {
|
|
462
|
+
if (depth === 0) {
|
|
463
|
+
result[key] = null;
|
|
464
|
+
} else {
|
|
465
|
+
delete result[key];
|
|
466
|
+
}
|
|
467
|
+
continue;
|
|
468
|
+
}
|
|
457
469
|
const oldVal = result[key];
|
|
458
470
|
if (isPlainObject(oldVal) && isPlainObject(newVal)) {
|
|
459
|
-
result[key] =
|
|
471
|
+
result[key] = deepMergeImpl(oldVal, newVal, depth + 1, seen);
|
|
460
472
|
} else {
|
|
461
473
|
result[key] = newVal;
|
|
462
474
|
}
|
|
@@ -728,15 +740,27 @@ function isPlainObject2(v) {
|
|
|
728
740
|
return v !== null && typeof v === "object" && !Array.isArray(v) && Object.getPrototypeOf(v) === Object.prototype;
|
|
729
741
|
}
|
|
730
742
|
function deepMerge2(target, source, seen) {
|
|
743
|
+
return deepMergeImpl2(target, source, 0, seen);
|
|
744
|
+
}
|
|
745
|
+
function deepMergeImpl2(target, source, depth, seen) {
|
|
731
746
|
if (!seen) seen = /* @__PURE__ */ new Set();
|
|
732
747
|
if (seen.has(source)) return target;
|
|
733
748
|
seen.add(source);
|
|
734
749
|
const result = { ...target };
|
|
735
750
|
for (const key of Object.keys(source)) {
|
|
736
751
|
const newVal = source[key];
|
|
752
|
+
if (newVal === void 0) continue;
|
|
753
|
+
if (newVal === null) {
|
|
754
|
+
if (depth === 0) {
|
|
755
|
+
result[key] = null;
|
|
756
|
+
} else {
|
|
757
|
+
delete result[key];
|
|
758
|
+
}
|
|
759
|
+
continue;
|
|
760
|
+
}
|
|
737
761
|
const oldVal = result[key];
|
|
738
762
|
if (isPlainObject2(oldVal) && isPlainObject2(newVal)) {
|
|
739
|
-
result[key] =
|
|
763
|
+
result[key] = deepMergeImpl2(oldVal, newVal, depth + 1, seen);
|
|
740
764
|
} else {
|
|
741
765
|
result[key] = newVal;
|
|
742
766
|
}
|
|
@@ -1286,6 +1310,7 @@ var ChunkedUploader = class {
|
|
|
1286
1310
|
});
|
|
1287
1311
|
}
|
|
1288
1312
|
}
|
|
1313
|
+
componentId;
|
|
1289
1314
|
options;
|
|
1290
1315
|
abortController = null;
|
|
1291
1316
|
adaptiveSizer = null;
|