@oliasoft-open-source/react-ui-library 5.2.2-beta-5 → 5.2.2-beta-6
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.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -184638,7 +184638,9 @@ const filterByChangedKeys = (data, changedKeys) => {
|
|
|
184638
184638
|
let source = data;
|
|
184639
184639
|
parts.forEach((part, idx) => {
|
|
184640
184640
|
if (idx === parts.length - 1) {
|
|
184641
|
-
|
|
184641
|
+
if ((source == null ? void 0 : source[part]) !== void 0) {
|
|
184642
|
+
current[part] = source == null ? void 0 : source[part];
|
|
184643
|
+
}
|
|
184642
184644
|
} else {
|
|
184643
184645
|
current[part] = current[part] || {};
|
|
184644
184646
|
current = current[part];
|
|
@@ -184667,6 +184669,8 @@ const DiffViewer = ({
|
|
|
184667
184669
|
const changedKeys = getChangedKeys(parsedOld, parsedNew);
|
|
184668
184670
|
const trimmedOld = filterByChangedKeys(parsedOld, changedKeys);
|
|
184669
184671
|
const trimmedNew = filterByChangedKeys(parsedNew, changedKeys);
|
|
184672
|
+
console.log(parsedOld);
|
|
184673
|
+
console.log(parsedNew);
|
|
184670
184674
|
const added = Math.max(
|
|
184671
184675
|
0,
|
|
184672
184676
|
newJson.split("\n").length - oldJson.split("\n").length
|