schemaglobin
Advanced tools
Comparing version 5.8.0 to 5.8.1
@@ -16,3 +16,3 @@ "use strict"; | ||
exports.getMidnight = (date = new Date()) => { | ||
const d = exports.makeDate(date); | ||
const d = new Date(date); | ||
d.setHours(0); | ||
@@ -26,3 +26,3 @@ d.setMinutes(0); | ||
exports.getMonday = (date = new Date()) => { | ||
const d = exports.makeDate(date); | ||
const d = new Date(date); | ||
const y = d.getDay(); | ||
@@ -38,3 +38,3 @@ if (y === 0) | ||
exports.addDays = (change, date = new Date()) => { | ||
const d = exports.makeDate(date); | ||
const d = new Date(date); | ||
d.setDate(d.getDate() + change); | ||
@@ -45,3 +45,3 @@ return d; | ||
exports.addHours = (change, date = new Date()) => { | ||
const d = exports.makeDate(date); | ||
const d = new Date(date); | ||
d.setHours(d.getHours() + change); | ||
@@ -48,0 +48,0 @@ return d; |
{ | ||
"name": "schemaglobin", | ||
"description": "Validate user-entered data.", | ||
"version": "5.8.0", | ||
"version": "5.8.1", | ||
"repository": "https://github.com/dhoulb/schemaglobin", | ||
@@ -6,0 +6,0 @@ "author": "Dave Houlbrooke <dave@shax.com>", |
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
148351