date-streaks
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -14,6 +14,8 @@ "use strict"; | ||
var relativeDates = exports.relativeDates = { | ||
today: (0, _moment2.default)().startOf("day"), | ||
yesterday: (0, _moment2.default)().subtract(1, "days").startOf("day"), | ||
tomorrow: (0, _moment2.default)().add(1, "days").startOf("day") | ||
var relativeDates = exports.relativeDates = function relativeDates() { | ||
return { | ||
today: (0, _moment2.default)().startOf("day"), | ||
yesterday: (0, _moment2.default)().subtract(1, "days").startOf("day"), | ||
tomorrow: (0, _moment2.default)().add(1, "days").startOf("day") | ||
}; | ||
}; | ||
@@ -20,0 +22,0 @@ |
@@ -24,6 +24,8 @@ "use strict"; | ||
dates = _ref$dates === undefined ? [] : _ref$dates; | ||
var today = _helpers.relativeDates.today, | ||
yesterday = _helpers.relativeDates.yesterday, | ||
tomorrow = _helpers.relativeDates.tomorrow; | ||
var _relativeDates = (0, _helpers.relativeDates)(), | ||
today = _relativeDates.today, | ||
yesterday = _relativeDates.yesterday, | ||
tomorrow = _relativeDates.tomorrow; | ||
var allDates = (0, _helpers.filterInvalidDates)(dates); | ||
@@ -30,0 +32,0 @@ var sortedDates = (0, _helpers.sortDates)(allDates); |
{ | ||
"name": "date-streaks", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Find a variety of streak metrics from a list of dates.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
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
21221
11
379