@impelsys/validatorjs 3.22.4 → 3.23.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/dist/lang/en.js +1 -54
- package/dist/validator.js +2 -2183
- package/package.json +2 -2
- package/src/{async.js → async.mjs} +1 -1
- package/src/{attributes.js → attributes.mjs} +1 -1
- package/src/{errors.js → errors.mjs} +1 -1
- package/src/lang/{en.js → en.mjs} +1 -1
- package/src/{lang.js → lang.mjs} +3 -6
- package/src/{messages.js → messages.mjs} +2 -2
- package/src/{rules.js → rules.mjs} +4 -4
- package/src/{validator.js → validator.mjs} +7 -6
package/dist/lang/en.js
CHANGED
|
@@ -1,54 +1 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = {
|
|
3
|
-
accepted: 'The :attribute must be accepted.',
|
|
4
|
-
after: 'The :attribute must be after :after.',
|
|
5
|
-
after_or_equal: 'The :attribute must be equal or after :after_or_equal.',
|
|
6
|
-
alpha: 'The :attribute field must contain only alphabetic characters.',
|
|
7
|
-
alpha_dash: 'The :attribute field may only contain alpha-numeric characters, as well as dashes and underscores.',
|
|
8
|
-
alpha_num: 'The :attribute field must be alphanumeric.',
|
|
9
|
-
before: 'The :attribute must be before :before.',
|
|
10
|
-
before_or_equal: 'The :attribute must be equal or before :before_or_equal.',
|
|
11
|
-
between: {
|
|
12
|
-
numeric: 'The :attribute field must be between :min and :max.',
|
|
13
|
-
string: 'The :attribute field must be between :min and :max characters.',
|
|
14
|
-
},
|
|
15
|
-
confirmed: 'The :attribute confirmation does not match.',
|
|
16
|
-
email: 'The :attribute format is invalid.',
|
|
17
|
-
date: 'The :attribute is not a valid date format.',
|
|
18
|
-
def: 'The :attribute attribute has errors.',
|
|
19
|
-
digits: 'The :attribute must be :digits digits.',
|
|
20
|
-
digits_between: 'The :attribute field must be between :min and :max digits.',
|
|
21
|
-
different: 'The :attribute and :different must be different.',
|
|
22
|
-
in: 'The selected :attribute is invalid.',
|
|
23
|
-
integer: 'The :attribute must be an integer.',
|
|
24
|
-
hex: 'The :attribute field should have hexadecimal format',
|
|
25
|
-
min: {
|
|
26
|
-
numeric: 'The :attribute must be at least :min.',
|
|
27
|
-
string: 'The :attribute must be at least :min characters.'
|
|
28
|
-
},
|
|
29
|
-
max: {
|
|
30
|
-
numeric: 'The :attribute may not be greater than :max.',
|
|
31
|
-
string: 'The :attribute may not be greater than :max characters.'
|
|
32
|
-
},
|
|
33
|
-
not_in: 'The selected :attribute is invalid.',
|
|
34
|
-
numeric: 'The :attribute must be a number.',
|
|
35
|
-
present: 'The :attribute field must be present (but can be empty).',
|
|
36
|
-
required: 'The :attribute field is required.',
|
|
37
|
-
required_if: 'The :attribute field is required when :other is :value.',
|
|
38
|
-
required_unless: 'The :attribute field is required when :other is not :value.',
|
|
39
|
-
required_with: 'The :attribute field is required when :field is not empty.',
|
|
40
|
-
required_with_all: 'The :attribute field is required when :fields are not empty.',
|
|
41
|
-
required_without: 'The :attribute field is required when :field is empty.',
|
|
42
|
-
required_without_all: 'The :attribute field is required when :fields are empty.',
|
|
43
|
-
same: 'The :attribute and :same fields must match.',
|
|
44
|
-
size: {
|
|
45
|
-
numeric: 'The :attribute must be :size.',
|
|
46
|
-
string: 'The :attribute must be :size characters.'
|
|
47
|
-
},
|
|
48
|
-
string: 'The :attribute must be a string.',
|
|
49
|
-
url: 'The :attribute format is invalid.',
|
|
50
|
-
regex: 'The :attribute format is invalid.',
|
|
51
|
-
attributes: {}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
},{}]},{},[]);
|
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({},{},[]);
|