Comparing version 4.5.3 to 4.5.4
@@ -51,2 +51,6 @@ "use strict"; | ||
var _dateTimeAfter = _interopRequireDefault(require("./validators/date-time-after")); | ||
var _dateTimeAfterOrEqual = _interopRequireDefault(require("./validators/date-time-after-or-equal")); | ||
var _email = _interopRequireDefault(require("./validators/email")); | ||
@@ -142,2 +146,4 @@ | ||
'dateFormat:$1': _dateFormat["default"].validate, | ||
'dateTimeAfter:$1:$2:$3:$4': _dateTimeAfter["default"].validate, | ||
'dateTimeAfterOrEqual:$1:$2:$3:$4': _dateTimeAfterOrEqual["default"].validate, | ||
'equal:$1': _equal["default"].validate, | ||
@@ -194,2 +200,4 @@ 'equal-to-field:$1': _equalToField["default"].validate, | ||
'dateFormat:$1': _dateFormat["default"].message, | ||
'dateTimeAfter:$1:$2:$3:$4': _dateTimeAfter["default"].message, | ||
'dateTimeAfterOrEqual:$1:$2:$3:$4': _dateTimeAfterOrEqual["default"].message, | ||
'equal:$1': _equal["default"].message, | ||
@@ -196,0 +204,0 @@ 'equal-to-field:$1': _equalToField["default"].message, |
@@ -47,2 +47,6 @@ "use strict"; | ||
var _dateTimeAfter = _interopRequireDefault(require("./validators/date-time-after")); | ||
var _dateTimeAfterOrEqual = _interopRequireDefault(require("./validators/date-time-after-or-equal")); | ||
var _timeAfter = _interopRequireDefault(require("./validators/time-after")); | ||
@@ -169,2 +173,4 @@ | ||
'dateBeforeOrEqual:$1:$2:$3:$4': _dateBeforeOrEqual["default"].validate, | ||
'dateTimeAfter:$1:$2:$3:$4': _dateTimeAfter["default"].validate, | ||
'dateTimeAfterOrEqual:$1:$2:$3:$4': _dateTimeAfterOrEqual["default"].validate, | ||
'timeAfter:$1:$2:$3': _timeAfter["default"].validate, | ||
@@ -234,2 +240,4 @@ 'timeAfterOrEqual:$1:$2:$3': _timeAfterOrEqual["default"].validate, | ||
'dateBeforeOrEqual:$1:$2:$3:$4': _dateBeforeOrEqual["default"].message, | ||
'dateTimeAfter:$1:$2:$3:$4': _dateTimeAfter["default"].message, | ||
'dateTimeAfterOrEqual:$1:$2:$3:$4': _dateTimeAfterOrEqual["default"].message, | ||
'timeAfter:$1:$2:$3': _timeAfter["default"].message, | ||
@@ -236,0 +244,0 @@ 'timeAfterOrEqual:$1:$2:$3': _timeAfterOrEqual["default"].message, |
@@ -21,2 +21,4 @@ "use strict"; | ||
'dateFormat:$1': 'Format tanggal tidak valid.', | ||
'dateTimeAfter:$1:$2:$3:$4': 'Tanggal/Waktu tidak valid.', | ||
'dateTimeAfterOrEqual:$1:$2:$3:$4': 'Tanggal/Waktu tidak valid.', | ||
'email': 'Format email tidak valid.', | ||
@@ -23,0 +25,0 @@ 'emptyString': 'Input harus kosong', |
{ | ||
"name": "satpam", | ||
"version": "4.5.3", | ||
"version": "4.5.4", | ||
"description": "Simple and Effective Object Validator", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -83,2 +83,4 @@ # Satpam | ||
- `dateBefore:<the date input format, e.g. DD-MM-YYYY>:<date after e.g. 'now' or 20-1-2015>:<offset>:<unit of time e.g. 'days'>` | ||
- `dateTimeAfter:<the date input format, e.g. YYYY-MM-DDTHH:mm:ss.SSS[Z]>:<date time after e.g. 'now' or 20-1-2015T18:30:00.000+07>:<offset>:<unit of time e.g. 'hours'>` | ||
- `dateTimeAfterOrEqual:<the date input format, e.g. YYYY-MM-DDTHH:mm:ss.SSS[Z]>:<date time after or equal e.g. 'now' or 20-1-2015T18:30:00.000+07>:<offset>:<unit of time e.g. 'hours'>` | ||
- `timeAfter:<time after i.e. now or time in unix form>:<offset>:<unit of time e.g. 'minutes'>` | ||
@@ -85,0 +87,0 @@ - `timeAfterOrEqual:<time after or equal i.e. now or time in unix form>:<offset>:<unit of time e.g. 'minutes'>` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
495906
147
8346
287