@nine-lab/nine-mu 0.1.230 → 0.1.231
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/nine-mu.js +13 -7
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineDiffPopup.js +9 -2
package/package.json
CHANGED
|
@@ -103,9 +103,16 @@ export class NineDiffPopup extends HTMLElement {
|
|
|
103
103
|
|
|
104
104
|
#handleConfirm() {
|
|
105
105
|
// 에디터에서 직접 콘텐츠 추출
|
|
106
|
-
const
|
|
106
|
+
const jsonString = this.#diffView ? this.#diffView.getContents() : this.#asisBackup;
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
const cleanedData = JSON.parse(jsonString, (key, value) => {
|
|
109
|
+
if (key === 'isNew') {
|
|
110
|
+
return undefined;
|
|
111
|
+
}
|
|
112
|
+
return value;
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
console.log(JSON.stringify(cleanedData));
|
|
109
116
|
|
|
110
117
|
return;
|
|
111
118
|
|