@schukai/monster 3.108.0 → 3.108.1
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.108.
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.108.1"}
|
@@ -205,7 +205,9 @@ class SaveButton extends CustomElement {
|
|
205
205
|
const result = diff(self[originValuesSymbol], currentValues);
|
206
206
|
if (self.getOption("logLevel") === "debug") {
|
207
207
|
console.groupCollapsed("SaveButton");
|
208
|
-
console.log(
|
208
|
+
console.log("originValues", JSON.parse(JSON.stringify(currentValues)));
|
209
|
+
console.log("result of diff", result);
|
210
|
+
console.log("ignoreChanges", ignoreChanges);
|
209
211
|
|
210
212
|
if (isArray(result) && result.length > 0) {
|
211
213
|
const formattedDiff = result.map((change) => ({
|
@@ -229,7 +231,13 @@ class SaveButton extends CustomElement {
|
|
229
231
|
for (const item of result) {
|
230
232
|
for (const ignorePattern of ignoreChanges) {
|
231
233
|
const p = new RegExp(ignorePattern);
|
232
|
-
|
234
|
+
|
235
|
+
let matchPath = item.path
|
236
|
+
if(isArray(item.path)){
|
237
|
+
matchPath = item.path.join(".");
|
238
|
+
}
|
239
|
+
|
240
|
+
if (p.test(matchPath)) {
|
233
241
|
itemsToRemove.push(item);
|
234
242
|
break;
|
235
243
|
}
|