@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-core
2
2
 
3
+ ## 1.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixing: JsonService containsClause
8
+
3
9
  ## 1.7.1
4
10
 
5
11
  ### Patch Changes
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() === String(value).toLowerCase(), false);
704
+ return value.reduce((p, c) => p || String(c).toLowerCase() === contains, false);
704
705
  } else if (typeof value === "string") {
705
- return value.toLowerCase().includes(String(contains).toLowerCase());
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() === String(value).toLowerCase(), false);
586
+ return value.reduce((p, c) => p || String(c).toLowerCase() === contains, false);
586
587
  } else if (typeof value === "string") {
587
- return value.toLowerCase().includes(String(contains).toLowerCase());
588
+ return value.toLowerCase().includes(contains);
588
589
  } else {
589
590
  return false;
590
591
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-core",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Core module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",