@creative-web-solution/front-library 7.1.0 → 7.1.1

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,6 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## 7.1.1
5
+
6
+ * Validator: Fix error message generation
7
+
8
+
4
9
  ## 7.1.0
5
10
 
6
11
  * Typescript cleanup
@@ -194,7 +194,7 @@ export default class Input {
194
194
  if ( !validator.isValid() ) {
195
195
  this.#validatorsInErrors.push( validator );
196
196
  }
197
- })
197
+ });
198
198
 
199
199
  return this.#validatorsInErrors;
200
200
  }
@@ -250,9 +250,7 @@ export default class Input {
250
250
  * Return an array of error messages and labels
251
251
  */
252
252
  getErrorMessages( _locale?: { [ key: string ]: string } ): { message: string, label: string, type: string }[] {
253
- if ( !this.#validatorsInErrors ) {
254
- this.getErrors();
255
- }
253
+ this.getErrors();
256
254
 
257
255
  if ( !this.#validatorsInErrors.length ) {
258
256
  return [];
@@ -299,9 +297,7 @@ export default class Input {
299
297
  * Get custom data of all validators
300
298
  */
301
299
  getData(): any[] {
302
- if ( !this.#validatorsInErrors ) {
303
- this.getErrors();
304
- }
300
+ this.getErrors();
305
301
 
306
302
  if ( !this.#validatorsInErrors.length ) {
307
303
  return [];
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Front Library
2
2
 
3
- @version: 7.1.0
3
+ @version: 7.1.1
4
4
 
5
5
 
6
6
  ## Use
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@creative-web-solution/front-library",
3
3
  "title": "Frontend library",
4
4
  "description": "Frontend functions and modules",
5
- "version": "7.1.0",
5
+ "version": "7.1.1",
6
6
  "homepage": "https://github.com/creative-web-solution/front-library",
7
7
  "author": "Creative Web Solution <contact@cws-studio.com> (https://www.cws-studio.com)",
8
8
  "keywords": [],