Socket
Socket
Sign inDemoInstall

@date-io/date-fns

Package Overview
Dependencies
4
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.13.2 to 2.14.0

2

build/date-fns-utils.d.ts

@@ -38,2 +38,4 @@ import { IUtils, DateIOFormats, Unit } from "@date-io/core/IUtils";

isSameHour: (value: Date, comparing: Date) => boolean;
startOfYear: (value: Date) => Date;
endOfYear: (value: Date) => Date;
startOfMonth: (value: Date) => Date;

@@ -40,0 +42,0 @@ endOfMonth: (value: Date) => Date;

@@ -206,2 +206,8 @@ import addDays from 'date-fns/addDays';

};
this.startOfYear = function (value) {
return startOfYear(value);
};
this.endOfYear = function (value) {
return endOfYear(value);
};
this.startOfMonth = function (value) {

@@ -208,0 +214,0 @@ return startOfMonth(value);

@@ -261,2 +261,8 @@ 'use strict';

};
this.startOfYear = function (value) {
return startOfYear__default["default"](value);
};
this.endOfYear = function (value) {
return endOfYear__default["default"](value);
};
this.startOfMonth = function (value) {

@@ -263,0 +269,0 @@ return startOfMonth__default["default"](value);

6

package.json
{
"name": "@date-io/date-fns",
"version": "2.13.2",
"version": "2.14.0",
"description": "Abstraction over common javascript date management libraries",

@@ -41,3 +41,3 @@ "main": "build/index.js",

"dependencies": {
"@date-io/core": "^2.13.2"
"@date-io/core": "^2.14.0"
},

@@ -49,3 +49,3 @@ "devDependencies": {

},
"gitHead": "c83bcc817b3589b4fe0d031e065f9ccd36a4d4c1"
"gitHead": "77f89b4859d228ed8f34c740e3defc78d52bdba1"
}

@@ -244,2 +244,10 @@ import addDays from "date-fns/addDays";

public startOfYear = (value: Date) => {
return startOfYear(value);
};
public endOfYear = (value: Date) => {
return endOfYear(value);
};
public startOfMonth = (value: Date) => {

@@ -246,0 +254,0 @@ return startOfMonth(value);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc