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

schemaglobin

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schemaglobin - npm Package Compare versions

Comparing version 5.8.0 to 5.8.1

8

dist/helpers/date.js

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

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