@leancodepl/validation 7.8.2 → 8.1.0

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/index.cjs.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  function handleValidationErrors(validationErrors, errorCodesMap, validationResults = []) {
6
4
  const handle = (validationErrorsToHandle, handler)=>{
7
5
  let result = undefined;
@@ -21,8 +19,7 @@ function handleValidationErrors(validationErrors, errorCodesMap, validationResul
21
19
  result
22
20
  ];
23
21
  }
24
- return handleValidationErrors(// eslint-disable-next-line @typescript-eslint/no-explicit-any
25
- validationErrors, errorCodesMap, nextResult);
22
+ return handleValidationErrors(validationErrors, errorCodesMap, nextResult);
26
23
  };
27
24
  const handleAll = (_validationErrorsToHandle, handler)=>{
28
25
  let result = undefined;
@@ -52,8 +49,7 @@ function handleValidationErrors(validationErrors, errorCodesMap, validationResul
52
49
  result
53
50
  ];
54
51
  }
55
- return handleValidationErrors(// eslint-disable-next-line @typescript-eslint/no-explicit-any
56
- validationErrors, errorCodesMap, nextResult);
52
+ return handleValidationErrors(validationErrors, errorCodesMap, nextResult);
57
53
  };
58
54
  return {
59
55
  handle,
@@ -63,7 +59,6 @@ function handleValidationErrors(validationErrors, errorCodesMap, validationResul
63
59
  return validationResults.reduce(reducer.reducer, reducer.initialValue);
64
60
  }
65
61
  return;
66
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
67
62
  }
68
63
  };
69
64
  }
package/index.esm.js CHANGED
@@ -17,8 +17,7 @@ function handleValidationErrors(validationErrors, errorCodesMap, validationResul
17
17
  result
18
18
  ];
19
19
  }
20
- return handleValidationErrors(// eslint-disable-next-line @typescript-eslint/no-explicit-any
21
- validationErrors, errorCodesMap, nextResult);
20
+ return handleValidationErrors(validationErrors, errorCodesMap, nextResult);
22
21
  };
23
22
  const handleAll = (_validationErrorsToHandle, handler)=>{
24
23
  let result = undefined;
@@ -48,8 +47,7 @@ function handleValidationErrors(validationErrors, errorCodesMap, validationResul
48
47
  result
49
48
  ];
50
49
  }
51
- return handleValidationErrors(// eslint-disable-next-line @typescript-eslint/no-explicit-any
52
- validationErrors, errorCodesMap, nextResult);
50
+ return handleValidationErrors(validationErrors, errorCodesMap, nextResult);
53
51
  };
54
52
  return {
55
53
  handle,
@@ -59,7 +57,6 @@ function handleValidationErrors(validationErrors, errorCodesMap, validationResul
59
57
  return validationResults.reduce(reducer.reducer, reducer.initialValue);
60
58
  }
61
59
  return;
62
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
63
60
  }
64
61
  };
65
62
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@leancodepl/validation",
3
- "version": "7.8.2",
3
+ "version": "8.1.0",
4
4
  "license": "Apache-2.0",
5
5
  "dependencies": {
6
- "@leancodepl/cqrs-client-base": "7.8.2"
6
+ "@leancodepl/cqrs-client-base": "8.1.0"
7
7
  },
8
8
  "devDependencies": {
9
9
  "sinon": "15.2.0"
@@ -12,10 +12,12 @@
12
12
  "./package.json": "./package.json",
13
13
  ".": {
14
14
  "module": "./index.esm.js",
15
+ "types": "./index.esm.d.ts",
15
16
  "import": "./index.cjs.mjs",
16
17
  "default": "./index.cjs.js"
17
18
  }
18
19
  },
19
20
  "module": "./index.esm.js",
20
- "main": "./index.cjs.js"
21
+ "main": "./index.cjs.js",
22
+ "types": "./index.esm.d.ts"
21
23
  }