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

@date-io/dayjs

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@date-io/dayjs - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

2

build/dayjs-utils.d.ts

@@ -52,2 +52,4 @@ import defaultDayjs from "dayjs";

endOfMonth(date: Dayjs): defaultDayjs.Dayjs;
startOfWeek(date: Dayjs): defaultDayjs.Dayjs;
endOfWeek(date: Dayjs): defaultDayjs.Dayjs;
getNextMonth(date: Dayjs): defaultDayjs.Dayjs;

@@ -54,0 +56,0 @@ getPreviousMonth(date: Dayjs): defaultDayjs.Dayjs;

@@ -165,2 +165,8 @@ import defaultDayjs from 'dayjs';

};
DayjsUtils.prototype.startOfWeek = function (date) {
return date.clone().startOf("week");
};
DayjsUtils.prototype.endOfWeek = function (date) {
return date.clone().endOf("week");
};
DayjsUtils.prototype.getNextMonth = function (date) {

@@ -167,0 +173,0 @@ return date.clone().add(1, "month");

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

};
DayjsUtils.prototype.startOfWeek = function (date) {
return date.clone().startOf("week");
};
DayjsUtils.prototype.endOfWeek = function (date) {
return date.clone().endOf("week");
};
DayjsUtils.prototype.getNextMonth = function (date) {

@@ -171,0 +177,0 @@ return date.clone().add(1, "month");

6

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

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

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

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

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

@@ -222,2 +222,10 @@ import defaultDayjs from "dayjs";

public startOfWeek(date: Dayjs) {
return date.clone().startOf("week");
}
public endOfWeek(date: Dayjs) {
return date.clone().endOf("week");
}
public getNextMonth(date: Dayjs) {

@@ -224,0 +232,0 @@ return date.clone().add(1, "month");

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