@stacksjs/calendar-api 0.61.24 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -544,7 +544,7 @@ var buildLink = function(propertiesAndComponents) {
544
544
  return `data:text/calendar;charset=utf8;base64,${btoa(propertiesAndComponents.join("\r\n"))}`;
545
545
  };
546
546
  var dateDiffInDays = function(from, to) {
547
- const _MS_PER_DAY = 86400000;
547
+ const _MS_PER_DAY = 1000 * 60 * 60 * 24;
548
548
  const utc1 = Date.UTC(from.getFullYear(), from.getMonth(), from.getDate());
549
549
  const utc2 = Date.UTC(to.getFullYear(), to.getMonth(), to.getDate());
550
550
  return Math.floor((utc2 - utc1) / _MS_PER_DAY);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/calendar-api",
3
3
  "type": "module",
4
- "version": "0.61.24",
4
+ "version": "0.62.0",
5
5
  "description": "Easily interact with calendar APIs.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",