New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

date-frequency

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-frequency - npm Package Compare versions

Comparing version 3.0.0 to 3.1.1

9

lib/util/date.js

@@ -9,2 +9,5 @@ 'use strict';

var MINUTE = 60000;
var WEEK = 604800000;
var weekday = function weekday(date) {

@@ -14,2 +17,7 @@ return (date.getDay() + 6) % 7 + 1;

var weekEpoch = new Date(1970, 0, -2); // monday before unix epoch in local timezone
var weekOfEpoch = function weekOfEpoch(date) {
return Math.floor((date - weekEpoch + (weekEpoch.getTimezoneOffset() - date.getTimezoneOffset()) * MINUTE) / WEEK);
};
function modify(date, unit, value) {

@@ -67,2 +75,3 @@ switch (unit) {

W: {
E: weekOfEpoch,
Y: _weeknumber.weekNumber

@@ -69,0 +78,0 @@ },

2

package.json
{
"name": "date-frequency",
"version": "3.0.0",
"version": "3.1.1",
"description": "Temporal frequency library",

@@ -5,0 +5,0 @@ "main": "lib/frequency.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