vanilla-calendar-pro
Advanced tools
Comparing version 3.0.0-beta.29 to 3.0.0-beta.30
{ | ||
"name": "vanilla-calendar-pro", | ||
"description": "The Vanilla Calendar Pro is a versatile JavaScript date and time picker component with TypeScript support, making it compatible with any JavaScript frameworks and libraries. It is designed to be lightweight, easy to use, and feature-rich, without relying on external dependencies.", | ||
"version": "3.0.0-beta.29", | ||
"version": "3.0.0-beta.30", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "homepage": "https://vanilla-calendar.pro", |
@@ -1,39 +0,2 @@ | ||
/*! name: vanilla-calendar-pro v3.0.0-beta.29 | url: https://github.com/uvarov-frontend/vanilla-calendar-pro */ | ||
(function(global, factory) { | ||
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.VanillaCalendarProUtils = {})); | ||
})(this, function(exports2) { | ||
"use strict"; | ||
const getDate$1 = (date) => /* @__PURE__ */ new Date(`${date}T00:00:00.000Z`); | ||
const getDateString$1 = (date) => { | ||
const year = date.getFullYear(); | ||
const month = String(date.getMonth() + 1).padStart(2, "0"); | ||
const day = String(date.getDate()).padStart(2, "0"); | ||
return `${year}-${month}-${day}`; | ||
}; | ||
const parseDates$1 = (dates) => dates.reduce((accumulator, date) => { | ||
if (date instanceof Date || typeof date === "number") { | ||
const d = date instanceof Date ? date : new Date(date); | ||
accumulator.push(d.toISOString().substring(0, 10)); | ||
} else if (date.match(/^(\d{4}-\d{2}-\d{2})$/g)) { | ||
accumulator.push(date); | ||
} else { | ||
date.replace(/(\d{4}-\d{2}-\d{2}).*?(\d{4}-\d{2}-\d{2})/g, (_, startDateStr, endDateStr) => { | ||
const startDate = getDate$1(startDateStr); | ||
const endDate = getDate$1(endDateStr); | ||
const currentDate = new Date(startDate.getTime()); | ||
for (currentDate; currentDate <= endDate; currentDate.setDate(currentDate.getDate() + 1)) { | ||
accumulator.push(getDateString$1(currentDate)); | ||
} | ||
return _; | ||
}); | ||
} | ||
return accumulator; | ||
}, []); | ||
const parseDates = (dates) => parseDates$1(dates); | ||
const getDateString = (date) => getDateString$1(date); | ||
const getDate = (date) => getDate$1(date); | ||
exports2.getDate = getDate; | ||
exports2.getDateString = getDateString; | ||
exports2.parseDates = parseDates; | ||
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" }); | ||
}); | ||
/*! name: vanilla-calendar-pro v3.0.0-beta.30 | url: https://github.com/uvarov-frontend/vanilla-calendar-pro */ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).VanillaCalendarProUtils={})}(this,(function(e){"use strict";const t=e=>new Date(`${e}T00:00:00.000Z`),n=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`;e.getDate=e=>t(e),e.getDateString=e=>n(e),e.parseDates=e=>(e=>e.reduce(((e,a)=>{if(a instanceof Date||"number"==typeof a){const t=a instanceof Date?a:new Date(a);e.push(t.toISOString().substring(0,10))}else a.match(/^(\d{4}-\d{2}-\d{2})$/g)?e.push(a):a.replace(/(\d{4}-\d{2}-\d{2}).*?(\d{4}-\d{2}-\d{2})/g,((a,o,r)=>{const i=t(o),d=t(r),s=new Date(i.getTime());for(;s<=d;s.setDate(s.getDate()+1))e.push(n(s));return a}));return e}),[]))(e),Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})})); |
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
20
279877
248