@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 +5 -0
- package/Modules/Validator/Internal/Input.ts +3 -7
- package/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
303
|
-
this.getErrors();
|
|
304
|
-
}
|
|
300
|
+
this.getErrors();
|
|
305
301
|
|
|
306
302
|
if ( !this.#validatorsInErrors.length ) {
|
|
307
303
|
return [];
|
package/README.md
CHANGED
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.
|
|
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": [],
|