calendar-base
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
128191
0
15