Socket
Socket
Sign inDemoInstall

calendar-base

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

45

dist/index.d.ts

@@ -10,2 +10,24 @@ export interface CalendarDate {

}
export interface CalendarOptions {
/**
* Date object indicating the selected start date
*/
startDate?: CalendarDate | null;
/**
* Date object indicating the selected end date
*/
endDate?: CalendarDate | null;
/**
* Calculate dates from sibling months (before and after the current month, based on weekStart)
*/
siblingMonths?: boolean;
/**
* Calculate the week days
*/
weekNumbers?: boolean;
/**
* Day of the week to start the calendar, respects `Date.prototype.getDay` (defaults to `0`, Sunday)
*/
weekStart?: number;
}
/**

@@ -25,24 +47,3 @@ * Calendar object

*/
constructor({ startDate, endDate, siblingMonths, weekNumbers, weekStart, }?: {
/**
* Date object indicating the selected start date
*/
startDate?: CalendarDate | null;
/**
* Date object indicating the selected end date
*/
endDate?: CalendarDate | null;
/**
* Calculate dates from sibling months (before and after the current month, based on weekStart)
*/
siblingMonths?: boolean;
/**
* Calculate the week days
*/
weekNumbers?: boolean;
/**
* Day of the week to start the calendar, respects `Date.prototype.getDay` (defaults to `0`, Sunday)
*/
weekStart?: number;
});
constructor({ startDate, endDate, siblingMonths, weekNumbers, weekStart, }?: CalendarOptions);
/**

@@ -49,0 +50,0 @@ * Calculate a calendar month

{
"name": "calendar-base",
"description": "Base methods for generating calendars using JavaScript.",
"version": "1.0.0",
"version": "1.1.0",
"author": "Wes Souza <hey@wes.dev> (https://wes.dev/)",

@@ -32,4 +32,4 @@ "license": "MIT",

"devDependencies": {
"@types/jest": "^25.1.3",
"tsdx": "^0.12.3",
"@types/jest": "^25.2.1",
"tsdx": "^0.13.2",
"tslib": "^1.11.1",

@@ -73,2 +73,2 @@ "typescript": "^3.8.3"

}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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