Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

satpam

Package Overview
Dependencies
Maintainers
7
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

satpam - npm Package Compare versions

Comparing version 4.5.3 to 4.5.4

lib/validators/date-time-after-or-equal.js

8

lib/frontend.js

@@ -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,

2

lib/locale/id.js

@@ -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',

2

package.json
{
"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'>`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc