@websolutespa/bom-mixer-forms 0.3.3 → 0.3.4

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-mixer-forms
2
2
 
3
+ ## 0.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Removed: log
8
+
3
9
  ## 0.3.3
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -967,7 +967,6 @@ function patternToRegEx(pattern) {
967
967
  var import_bom_core3 = require("@websolutespa/bom-core");
968
968
  function RequiredIfValidator(condition) {
969
969
  return function(value, rootValue, control, root) {
970
- console.log("RequiredIfValidator", value, Boolean(condition(value, rootValue, control, root)));
971
970
  if (Boolean(condition(value, rootValue, control, root)) === true) {
972
971
  if ((0, import_bom_core3.isArray)(value) || typeof value === "string") {
973
972
  return value.length === 0 ? { required: true } : null;
package/dist/index.mjs CHANGED
@@ -919,7 +919,6 @@ function patternToRegEx(pattern) {
919
919
  import { isArray } from "@websolutespa/bom-core";
920
920
  function RequiredIfValidator(condition) {
921
921
  return function(value, rootValue, control, root) {
922
- console.log("RequiredIfValidator", value, Boolean(condition(value, rootValue, control, root)));
923
922
  if (Boolean(condition(value, rootValue, control, root)) === true) {
924
923
  if (isArray(value) || typeof value === "string") {
925
924
  return value.length === 0 ? { required: true } : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-mixer-forms",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Mixer Forms module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
@@ -7,7 +7,7 @@ import { FormValidator, FormValue } from '../types';
7
7
  */
8
8
  export function RequiredIfValidator(condition: (value: FormValue, rootValue: FormValue, control?: FormAbstract, root?: FormAbstract) => boolean): FormValidator {
9
9
  return function (value, rootValue, control, root) {
10
- console.log('RequiredIfValidator', value, Boolean(condition(value, rootValue, control, root)));
10
+ // console.log('RequiredIfValidator', value, Boolean(condition(value, rootValue, control, root)));
11
11
  if (Boolean(condition(value, rootValue, control, root)) === true) {
12
12
  if (isArray(value) || typeof value === 'string') {
13
13
  return (value.length === 0) ? { required: true } : null;