New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@date-io/moment

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@date-io/moment - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

5

build/index.esm.js

@@ -32,6 +32,3 @@ import defaultMoment from 'moment';

MomentUtils.prototype.isNull = function (date) {
if (date === null) {
return true;
}
return date.parsingFlags().nullInput;
return date === null;
};

@@ -38,0 +35,0 @@ MomentUtils.prototype.getDiff = function (date, comparing) {

@@ -36,6 +36,3 @@ 'use strict';

MomentUtils.prototype.isNull = function (date) {
if (date === null) {
return true;
}
return date.parsingFlags().nullInput;
return date === null;
};

@@ -42,0 +39,0 @@ MomentUtils.prototype.getDiff = function (date, comparing) {

2

build/moment-utils.d.ts

@@ -5,2 +5,4 @@ import defaultMoment from "moment";

locale?: string;
instance?: typeof defaultMoment;
/** @deprecated */
moment?: typeof defaultMoment;

@@ -7,0 +9,0 @@ }

{
"name": "@date-io/moment",
"version": "1.1.0",
"version": "1.2.0",
"description": "Abstraction over common javascript date management libraries",

@@ -11,10 +11,7 @@ "main": "build/index.js",

},
"dependencies": {
"@date-io/core": "^1.1.0"
},
"devDependencies": {
"@date-io/core": "^0.0.1",
"moment": "^2.22.2",
"@date-io/core": "^1.2.0",
"moment": "^2.24.0",
"rollup": "^0.66.6",
"typescript": "^3.2.4"
"typescript": "^3.4.4"
},

@@ -45,3 +42,3 @@ "scripts": {

"license": "MIT",
"gitHead": "75f08408e702874235295cf283747ed5c02193f0"
"gitHead": "dc8ace95621e7f1a14024dbfd5b9d42fa18f4e88"
}

@@ -6,2 +6,4 @@ import defaultMoment from "moment";

locale?: string;
instance?: typeof defaultMoment;
/** @deprecated */
moment?: typeof defaultMoment;

@@ -57,7 +59,3 @@ }

public isNull(date: Moment) {
if (date === null) {
return true;
}
return date.parsingFlags().nullInput;
return date === null;
}

@@ -64,0 +62,0 @@

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