Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

date-streaks

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-streaks - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

dist/streakDateRanges.js

10

dist/helpers.js

@@ -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 @@

8

dist/summary.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc