Skip to content

Commit

Permalink
Bump version to 0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
apih committed Jun 2, 2024
1 parent d47c7e3 commit 4a481bf
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 12 deletions.
3 changes: 2 additions & 1 deletion dist/locales/en.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* quival v0.3.1 (https://github.com/apih/quival)
* quival v0.3.2 (https://github.com/apih/quival)
* (c) 2023 Mohd Hafizuddin M Marzuki <hafizuddin_83@yahoo.com>
* Released under the MIT License.
*/
Expand Down Expand Up @@ -33,6 +33,7 @@ this.quival.locales.en = (function () {
boolean: 'The :attribute field must be true or false.',
can: 'The :attribute field contains an unauthorized value.',
confirmed: 'The :attribute field confirmation does not match.',
contains: 'The :attribute field is missing a required value.',
current_password: 'The password is incorrect.',
date: 'The :attribute field must be a valid date.',
date_equals: 'The :attribute field must be a date equal to :date.',
Expand Down
4 changes: 2 additions & 2 deletions dist/locales/en.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/locales/ms.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* quival v0.3.1 (https://github.com/apih/quival)
* quival v0.3.2 (https://github.com/apih/quival)
* (c) 2023 Mohd Hafizuddin M Marzuki <hafizuddin_83@yahoo.com>
* Released under the MIT License.
*/
Expand Down Expand Up @@ -33,6 +33,7 @@ this.quival.locales.ms = (function () {
boolean: 'Medan :attribute mesti benar atau salah.',
can: 'Medan :attribute field mengandungi nilai yang tidak dibenarkan.',
confirmed: 'Pengesahan medan :attribute tidak sepadan.',
contains: 'Medan :attribute tiada nilai yang diperlukan.',
current_password: 'Kata laluan tidak sah.',
date: 'Medan :attribute mesti tarikh yang sah.',
date_equals: 'Medan :attribute mesti bersamaan dengan :date.',
Expand Down
4 changes: 2 additions & 2 deletions dist/locales/ms.min.js

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion dist/quival.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* quival v0.3.1 (https://github.com/apih/quival)
* quival v0.3.2 (https://github.com/apih/quival)
* (c) 2023 Mohd Hafizuddin M Marzuki <hafizuddin_83@yahoo.com>
* Released under the MIT License.
*/
Expand Down Expand Up @@ -663,6 +663,17 @@ var quival = (function (exports) {
return new RegExp(pattern).test(value);
}
// Array / Object
checkContains(attribute, value, parameters) {
if (!this.checkArray(attribute, value)) {
return false;
}
for (const parameter of parameters) {
if (!value.includes(parameter)) {
return false;
}
}
return true;
}
checkDistinct(attribute, value, parameters) {
const unparsed = this.validator.getPrimaryAttribute(attribute);
if (!unparsed.includes('*')) {
Expand Down
4 changes: 2 additions & 2 deletions dist/quival.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quival",
"version": "0.3.1",
"version": "0.3.2",
"description": "Data validation à la Laravel Validation",
"author": "Mohd Hafizuddin M Marzuki <hafizuddin_83@yahoo.com>",
"license": "MIT",
Expand Down

0 comments on commit 4a481bf

Please sign in to comment.