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.3.9 to 1.3.11

9

build/index.esm.js

@@ -26,3 +26,5 @@ import defaultMoment from 'moment';

}
return this.moment(value);
var moment = this.moment(value);
moment.locale(this.locale);
return moment;
};

@@ -135,6 +137,3 @@ MomentUtils.prototype.isValid = function (value) {

MomentUtils.prototype.getWeekdays = function () {
var _this = this;
return [0, 1, 2, 3, 4, 5, 6].map(function (dayOfWeek) {
return _this.format(_this.moment().weekday(dayOfWeek), "dd");
});
return this.moment.weekdaysShort(true);
};

@@ -141,0 +140,0 @@ MomentUtils.prototype.isEqual = function (value, comparing) {

@@ -30,3 +30,5 @@ 'use strict';

}
return this.moment(value);
var moment = this.moment(value);
moment.locale(this.locale);
return moment;
};

@@ -139,6 +141,3 @@ MomentUtils.prototype.isValid = function (value) {

MomentUtils.prototype.getWeekdays = function () {
var _this = this;
return [0, 1, 2, 3, 4, 5, 6].map(function (dayOfWeek) {
return _this.format(_this.moment().weekday(dayOfWeek), "dd");
});
return this.moment.weekdaysShort(true);
};

@@ -145,0 +144,0 @@ MomentUtils.prototype.isEqual = function (value, comparing) {

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

@@ -12,8 +12,8 @@ "main": "build/index.js",

"dependencies": {
"@date-io/core": "^1.3.9"
"@date-io/core": "^1.3.11"
},
"devDependencies": {
"moment": "^2.24.0",
"rollup": "^1.18.0",
"typescript": "^3.5.3"
"rollup": "^1.20.3",
"typescript": "^3.6.2"
},

@@ -44,3 +44,3 @@ "scripts": {

"license": "MIT",
"gitHead": "612dfa035ca8ab0c9b78de9a186460c0b8693e58"
"gitHead": "5c1e9483f74a62e173ed71eb732f78fe5b19ef95"
}

@@ -50,3 +50,6 @@ import defaultMoment from "moment";

return this.moment(value);
const moment = this.moment(value);
moment.locale(this.locale);
return moment;
}

@@ -197,5 +200,3 @@

public getWeekdays() {
return [0, 1, 2, 3, 4, 5, 6].map(dayOfWeek =>
this.format(this.moment().weekday(dayOfWeek), "dd")
);
return this.moment.weekdaysShort(true);
}

@@ -202,0 +203,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