@websolutespa/bom-core 1.7.1 → 1.7.2
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 +6 -0
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -699,10 +699,11 @@ var JsonService = class {
|
|
|
699
699
|
}
|
|
700
700
|
containsClause_(value, contains) {
|
|
701
701
|
if (typeof contains !== "undefined") {
|
|
702
|
+
contains = String(contains).toLowerCase();
|
|
702
703
|
if (Array.isArray(value)) {
|
|
703
|
-
return value.reduce((p, c) => p || String(c).toLowerCase() ===
|
|
704
|
+
return value.reduce((p, c) => p || String(c).toLowerCase() === contains, false);
|
|
704
705
|
} else if (typeof value === "string") {
|
|
705
|
-
return value.toLowerCase().includes(
|
|
706
|
+
return value.toLowerCase().includes(contains);
|
|
706
707
|
} else {
|
|
707
708
|
return false;
|
|
708
709
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -581,10 +581,11 @@ var JsonService = class {
|
|
|
581
581
|
}
|
|
582
582
|
containsClause_(value, contains) {
|
|
583
583
|
if (typeof contains !== "undefined") {
|
|
584
|
+
contains = String(contains).toLowerCase();
|
|
584
585
|
if (Array.isArray(value)) {
|
|
585
|
-
return value.reduce((p, c) => p || String(c).toLowerCase() ===
|
|
586
|
+
return value.reduce((p, c) => p || String(c).toLowerCase() === contains, false);
|
|
586
587
|
} else if (typeof value === "string") {
|
|
587
|
-
return value.toLowerCase().includes(
|
|
588
|
+
return value.toLowerCase().includes(contains);
|
|
588
589
|
} else {
|
|
589
590
|
return false;
|
|
590
591
|
}
|