@symbo.ls/scratch 2.11.237 → 2.11.239
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/cjs/factory.js +25 -2
- package/dist/cjs/index.js +25 -2
- package/dist/cjs/set.js +25 -2
- package/dist/cjs/system/color.js +25 -2
- package/dist/cjs/system/document.js +25 -2
- package/dist/cjs/system/font.js +25 -2
- package/dist/cjs/system/index.js +25 -2
- package/dist/cjs/system/reset.js +25 -2
- package/dist/cjs/system/shadow.js +25 -2
- package/dist/cjs/system/spacing.js +25 -2
- package/dist/cjs/system/svg.js +25 -2
- package/dist/cjs/system/theme.js +25 -2
- package/dist/cjs/system/timing.js +25 -2
- package/dist/cjs/system/typography.js +25 -2
- package/dist/cjs/transforms/index.js +25 -2
- package/dist/cjs/utils/color.js +25 -2
- package/dist/cjs/utils/index.js +25 -2
- package/dist/cjs/utils/sequence.js +25 -2
- package/dist/cjs/utils/sprite.js +25 -2
- package/dist/cjs/utils/var.js +25 -2
- package/package.json +2 -2
package/dist/cjs/factory.js
CHANGED
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/index.js
CHANGED
|
@@ -443,7 +443,8 @@ var require_string = __commonJS({
|
|
|
443
443
|
var string_exports = {};
|
|
444
444
|
__export2(string_exports, {
|
|
445
445
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
446
|
-
stringIncludesAny: () => stringIncludesAny
|
|
446
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
447
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
447
448
|
});
|
|
448
449
|
module2.exports = __toCommonJS2(string_exports);
|
|
449
450
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -454,6 +455,10 @@ var require_string = __commonJS({
|
|
|
454
455
|
}
|
|
455
456
|
return false;
|
|
456
457
|
};
|
|
458
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
459
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
460
|
+
return str.replace(pattern, "");
|
|
461
|
+
};
|
|
457
462
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
458
463
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
459
464
|
if (!str.includes("{{"))
|
|
@@ -505,6 +510,7 @@ var require_object = __commonJS({
|
|
|
505
510
|
clone: () => clone,
|
|
506
511
|
deepClone: () => deepClone2,
|
|
507
512
|
deepCloneExclude: () => deepCloneExclude,
|
|
513
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
508
514
|
deepContains: () => deepContains,
|
|
509
515
|
deepDestringify: () => deepDestringify,
|
|
510
516
|
deepDiff: () => deepDiff,
|
|
@@ -635,6 +641,23 @@ var require_object = __commonJS({
|
|
|
635
641
|
}
|
|
636
642
|
return o;
|
|
637
643
|
};
|
|
644
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
645
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
646
|
+
for (const prop in obj) {
|
|
647
|
+
if (prop === "__proto__")
|
|
648
|
+
continue;
|
|
649
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
650
|
+
continue;
|
|
651
|
+
const objProp = obj[prop];
|
|
652
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
653
|
+
continue;
|
|
654
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
655
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
656
|
+
} else
|
|
657
|
+
o[prop] = objProp;
|
|
658
|
+
}
|
|
659
|
+
return o;
|
|
660
|
+
};
|
|
638
661
|
var deepStringify = (obj, stringified = {}) => {
|
|
639
662
|
for (const prop in obj) {
|
|
640
663
|
const objProp = obj[prop];
|
|
@@ -665,7 +688,7 @@ var require_object = __commonJS({
|
|
|
665
688
|
const spaces = " ".repeat(indent);
|
|
666
689
|
let str = "{\n";
|
|
667
690
|
for (const [key, value] of Object.entries(obj)) {
|
|
668
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
691
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
669
692
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
670
693
|
str += `${spaces} ${stringedKey}: `;
|
|
671
694
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/set.js
CHANGED
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/system/color.js
CHANGED
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/system/font.js
CHANGED
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/system/index.js
CHANGED
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/system/reset.js
CHANGED
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/system/svg.js
CHANGED
|
@@ -443,7 +443,8 @@ var require_string = __commonJS({
|
|
|
443
443
|
var string_exports = {};
|
|
444
444
|
__export2(string_exports, {
|
|
445
445
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
446
|
-
stringIncludesAny: () => stringIncludesAny
|
|
446
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
447
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
447
448
|
});
|
|
448
449
|
module2.exports = __toCommonJS2(string_exports);
|
|
449
450
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -454,6 +455,10 @@ var require_string = __commonJS({
|
|
|
454
455
|
}
|
|
455
456
|
return false;
|
|
456
457
|
};
|
|
458
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
459
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
460
|
+
return str.replace(pattern, "");
|
|
461
|
+
};
|
|
457
462
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
458
463
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
459
464
|
if (!str.includes("{{"))
|
|
@@ -505,6 +510,7 @@ var require_object = __commonJS({
|
|
|
505
510
|
clone: () => clone,
|
|
506
511
|
deepClone: () => deepClone2,
|
|
507
512
|
deepCloneExclude: () => deepCloneExclude,
|
|
513
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
508
514
|
deepContains: () => deepContains,
|
|
509
515
|
deepDestringify: () => deepDestringify,
|
|
510
516
|
deepDiff: () => deepDiff,
|
|
@@ -635,6 +641,23 @@ var require_object = __commonJS({
|
|
|
635
641
|
}
|
|
636
642
|
return o;
|
|
637
643
|
};
|
|
644
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
645
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
646
|
+
for (const prop in obj) {
|
|
647
|
+
if (prop === "__proto__")
|
|
648
|
+
continue;
|
|
649
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
650
|
+
continue;
|
|
651
|
+
const objProp = obj[prop];
|
|
652
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
653
|
+
continue;
|
|
654
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
655
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
656
|
+
} else
|
|
657
|
+
o[prop] = objProp;
|
|
658
|
+
}
|
|
659
|
+
return o;
|
|
660
|
+
};
|
|
638
661
|
var deepStringify = (obj, stringified = {}) => {
|
|
639
662
|
for (const prop in obj) {
|
|
640
663
|
const objProp = obj[prop];
|
|
@@ -665,7 +688,7 @@ var require_object = __commonJS({
|
|
|
665
688
|
const spaces = " ".repeat(indent);
|
|
666
689
|
let str = "{\n";
|
|
667
690
|
for (const [key, value] of Object.entries(obj)) {
|
|
668
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
691
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
669
692
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
670
693
|
str += `${spaces} ${stringedKey}: `;
|
|
671
694
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/system/theme.js
CHANGED
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/utils/color.js
CHANGED
|
@@ -443,7 +443,8 @@ var require_string = __commonJS({
|
|
|
443
443
|
var string_exports = {};
|
|
444
444
|
__export2(string_exports, {
|
|
445
445
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
446
|
-
stringIncludesAny: () => stringIncludesAny
|
|
446
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
447
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
447
448
|
});
|
|
448
449
|
module2.exports = __toCommonJS2(string_exports);
|
|
449
450
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -454,6 +455,10 @@ var require_string = __commonJS({
|
|
|
454
455
|
}
|
|
455
456
|
return false;
|
|
456
457
|
};
|
|
458
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
459
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
460
|
+
return str.replace(pattern, "");
|
|
461
|
+
};
|
|
457
462
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
458
463
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
459
464
|
if (!str.includes("{{"))
|
|
@@ -505,6 +510,7 @@ var require_object = __commonJS({
|
|
|
505
510
|
clone: () => clone,
|
|
506
511
|
deepClone: () => deepClone,
|
|
507
512
|
deepCloneExclude: () => deepCloneExclude,
|
|
513
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
508
514
|
deepContains: () => deepContains,
|
|
509
515
|
deepDestringify: () => deepDestringify,
|
|
510
516
|
deepDiff: () => deepDiff,
|
|
@@ -635,6 +641,23 @@ var require_object = __commonJS({
|
|
|
635
641
|
}
|
|
636
642
|
return o;
|
|
637
643
|
};
|
|
644
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
645
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
646
|
+
for (const prop in obj) {
|
|
647
|
+
if (prop === "__proto__")
|
|
648
|
+
continue;
|
|
649
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
650
|
+
continue;
|
|
651
|
+
const objProp = obj[prop];
|
|
652
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
653
|
+
continue;
|
|
654
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
655
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
656
|
+
} else
|
|
657
|
+
o[prop] = objProp;
|
|
658
|
+
}
|
|
659
|
+
return o;
|
|
660
|
+
};
|
|
638
661
|
var deepStringify = (obj, stringified = {}) => {
|
|
639
662
|
for (const prop in obj) {
|
|
640
663
|
const objProp = obj[prop];
|
|
@@ -665,7 +688,7 @@ var require_object = __commonJS({
|
|
|
665
688
|
const spaces = " ".repeat(indent);
|
|
666
689
|
let str = "{\n";
|
|
667
690
|
for (const [key, value] of Object.entries(obj)) {
|
|
668
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
691
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
669
692
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
670
693
|
str += `${spaces} ${stringedKey}: `;
|
|
671
694
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -443,7 +443,8 @@ var require_string = __commonJS({
|
|
|
443
443
|
var string_exports = {};
|
|
444
444
|
__export2(string_exports, {
|
|
445
445
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
446
|
-
stringIncludesAny: () => stringIncludesAny
|
|
446
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
447
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
447
448
|
});
|
|
448
449
|
module2.exports = __toCommonJS2(string_exports);
|
|
449
450
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -454,6 +455,10 @@ var require_string = __commonJS({
|
|
|
454
455
|
}
|
|
455
456
|
return false;
|
|
456
457
|
};
|
|
458
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
459
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
460
|
+
return str.replace(pattern, "");
|
|
461
|
+
};
|
|
457
462
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
458
463
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
459
464
|
if (!str.includes("{{"))
|
|
@@ -505,6 +510,7 @@ var require_object = __commonJS({
|
|
|
505
510
|
clone: () => clone,
|
|
506
511
|
deepClone: () => deepClone2,
|
|
507
512
|
deepCloneExclude: () => deepCloneExclude,
|
|
513
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
508
514
|
deepContains: () => deepContains,
|
|
509
515
|
deepDestringify: () => deepDestringify,
|
|
510
516
|
deepDiff: () => deepDiff,
|
|
@@ -635,6 +641,23 @@ var require_object = __commonJS({
|
|
|
635
641
|
}
|
|
636
642
|
return o;
|
|
637
643
|
};
|
|
644
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
645
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
646
|
+
for (const prop in obj) {
|
|
647
|
+
if (prop === "__proto__")
|
|
648
|
+
continue;
|
|
649
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
650
|
+
continue;
|
|
651
|
+
const objProp = obj[prop];
|
|
652
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
653
|
+
continue;
|
|
654
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
655
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
656
|
+
} else
|
|
657
|
+
o[prop] = objProp;
|
|
658
|
+
}
|
|
659
|
+
return o;
|
|
660
|
+
};
|
|
638
661
|
var deepStringify = (obj, stringified = {}) => {
|
|
639
662
|
for (const prop in obj) {
|
|
640
663
|
const objProp = obj[prop];
|
|
@@ -665,7 +688,7 @@ var require_object = __commonJS({
|
|
|
665
688
|
const spaces = " ".repeat(indent);
|
|
666
689
|
let str = "{\n";
|
|
667
690
|
for (const [key, value] of Object.entries(obj)) {
|
|
668
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
691
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
669
692
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
670
693
|
str += `${spaces} ${stringedKey}: `;
|
|
671
694
|
if ((0, import_types.isArray)(value)) {
|
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/utils/sprite.js
CHANGED
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
package/dist/cjs/utils/var.js
CHANGED
|
@@ -407,7 +407,8 @@ var require_string = __commonJS({
|
|
|
407
407
|
var string_exports = {};
|
|
408
408
|
__export2(string_exports, {
|
|
409
409
|
replaceLiteralsWithObjectFields: () => replaceLiteralsWithObjectFields,
|
|
410
|
-
stringIncludesAny: () => stringIncludesAny
|
|
410
|
+
stringIncludesAny: () => stringIncludesAny,
|
|
411
|
+
trimStringFromSymbols: () => trimStringFromSymbols
|
|
411
412
|
});
|
|
412
413
|
module2.exports = __toCommonJS2(string_exports);
|
|
413
414
|
var stringIncludesAny = (str, characters) => {
|
|
@@ -418,6 +419,10 @@ var require_string = __commonJS({
|
|
|
418
419
|
}
|
|
419
420
|
return false;
|
|
420
421
|
};
|
|
422
|
+
var trimStringFromSymbols = (str, characters) => {
|
|
423
|
+
const pattern = new RegExp(`[${characters.join("\\")}]`, "g");
|
|
424
|
+
return str.replace(pattern, "");
|
|
425
|
+
};
|
|
421
426
|
var brackRegex = /\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g;
|
|
422
427
|
var replaceLiteralsWithObjectFields = (str, state) => {
|
|
423
428
|
if (!str.includes("{{"))
|
|
@@ -469,6 +474,7 @@ var require_object = __commonJS({
|
|
|
469
474
|
clone: () => clone,
|
|
470
475
|
deepClone: () => deepClone2,
|
|
471
476
|
deepCloneExclude: () => deepCloneExclude,
|
|
477
|
+
deepCloneWithExtnd: () => deepCloneWithExtnd,
|
|
472
478
|
deepContains: () => deepContains,
|
|
473
479
|
deepDestringify: () => deepDestringify,
|
|
474
480
|
deepDiff: () => deepDiff,
|
|
@@ -599,6 +605,23 @@ var require_object = __commonJS({
|
|
|
599
605
|
}
|
|
600
606
|
return o;
|
|
601
607
|
};
|
|
608
|
+
var deepCloneWithExtnd = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
609
|
+
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
610
|
+
for (const prop in obj) {
|
|
611
|
+
if (prop === "__proto__")
|
|
612
|
+
continue;
|
|
613
|
+
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
614
|
+
continue;
|
|
615
|
+
const objProp = obj[prop];
|
|
616
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
617
|
+
continue;
|
|
618
|
+
if ((0, import_types.isObjectLike)(objProp)) {
|
|
619
|
+
o[prop] = deepCloneWithExtnd(objProp, excludeFrom, cleanUndefined);
|
|
620
|
+
} else
|
|
621
|
+
o[prop] = objProp;
|
|
622
|
+
}
|
|
623
|
+
return o;
|
|
624
|
+
};
|
|
602
625
|
var deepStringify = (obj, stringified = {}) => {
|
|
603
626
|
for (const prop in obj) {
|
|
604
627
|
const objProp = obj[prop];
|
|
@@ -629,7 +652,7 @@ var require_object = __commonJS({
|
|
|
629
652
|
const spaces = " ".repeat(indent);
|
|
630
653
|
let str = "{\n";
|
|
631
654
|
for (const [key, value] of Object.entries(obj)) {
|
|
632
|
-
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!"]);
|
|
655
|
+
const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
|
|
633
656
|
const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
|
|
634
657
|
str += `${spaces} ${stringedKey}: `;
|
|
635
658
|
if ((0, import_types.isArray)(value)) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@symbo.ls/scratch",
|
|
3
3
|
"description": "Φ / CSS framework and methodology.",
|
|
4
4
|
"author": "symbo.ls",
|
|
5
|
-
"version": "2.11.
|
|
5
|
+
"version": "2.11.239",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"dist"
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"@symbo.ls/utils": "latest",
|
|
30
30
|
"color-contrast-checker": "^1.5.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "41a7706e6ed0e20fce89aa1a0ed4975f7aa92aac"
|
|
33
33
|
}
|