1
0
mirror of synced 2024-11-21 21:06:04 +03:00

chore(release): 0.7.3

This commit is contained in:
1on 2021-11-11 11:41:05 +03:00
parent 2f3a63b012
commit 0b5607bbbe
5 changed files with 13 additions and 6 deletions

View File

@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [0.7.3](https://github.com/retailcrm/vue-formulario/compare/v0.7.2...v0.7.3) (2021-11-11)
### Fixes
* Fixed toString calls in validators ([da56b04](https://github.com/retailcrm/vue-formulario/commit/da56b04213b6ebc3d001a273b26a350a59e0382b))
### [0.7.2](https://github.com/retailcrm/vue-formulario/compare/v0.7.1...v0.7.2) (2021-10-21)

View File

@ -482,7 +482,7 @@ const rules = {
return value <= maximum;
}
if (typeof value === 'string' || (force === 'length')) {
value = !isNaN(value) ? value.toString() : value;
value = !isNaN(value) ? String(value) : value;
return value.length <= maximum;
}
return false;
@ -500,7 +500,7 @@ const rules = {
return value >= minimum;
}
if (typeof value === 'string' || (force === 'length')) {
value = !isNaN(value) ? value.toString() : value;
value = !isNaN(value) ? String(value) : value;
return value.length >= minimum;
}
return false;

File diff suppressed because one or more lines are too long

View File

@ -487,7 +487,7 @@
return value <= maximum;
}
if (typeof value === 'string' || (force === 'length')) {
value = !isNaN(value) ? value.toString() : value;
value = !isNaN(value) ? String(value) : value;
return value.length <= maximum;
}
return false;
@ -505,7 +505,7 @@
return value >= minimum;
}
if (typeof value === 'string' || (force === 'length')) {
value = !isNaN(value) ? value.toString() : value;
value = !isNaN(value) ? String(value) : value;
return value.length >= minimum;
}
return false;

View File

@ -1,6 +1,6 @@
{
"name": "@retailcrm/vue-formulario",
"version": "0.7.2",
"version": "0.7.3",
"license": "MIT",
"author": "RetailDriverLLC <integration@retailcrm.ru>",
"main": "dist/formulario.umd.js",