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

@date-io/date-fns

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@date-io/date-fns - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

2

build/date-fns-utils.d.ts

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

endOfMonth(value: Date): Date;
startOfWeek(value: Date): Date;
endOfWeek(value: Date): Date;
getYear(value: Date): number;

@@ -32,0 +34,0 @@ setYear(value: Date, count: number): Date;

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

};
DateFnsUtils.prototype.startOfWeek = function (value) {
return startOfWeek(value);
};
DateFnsUtils.prototype.endOfWeek = function (value) {
return endOfWeek(value);
};
DateFnsUtils.prototype.getYear = function (value) {

@@ -134,0 +140,0 @@ return getYear(value);

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

};
DateFnsUtils.prototype.startOfWeek = function (value) {
return startOfWeek(value);
};
DateFnsUtils.prototype.endOfWeek = function (value) {
return endOfWeek(value);
};
DateFnsUtils.prototype.getYear = function (value) {

@@ -138,0 +144,0 @@ return getYear(value);

6

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

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

"dependencies": {
"@date-io/core": "^2.3.0"
"@date-io/core": "^2.4.0"
},

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

},
"gitHead": "9073e951057d018665cdc2facd75892914cfa9bc"
"gitHead": "d1b13999d15fce1c7b06d20654f1867ec6a7e096"
}

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

public startOfWeek(value: Date) {
return startOfWeek(value);
}
public endOfWeek(value: Date) {
return endOfWeek(value);
}
public getYear(value: Date) {

@@ -164,0 +172,0 @@ return getYear(value);

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