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

moment-business-days

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment-business-days - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

5

index.js

@@ -72,6 +72,7 @@ 'use strict';

moment.fn.businessAdd = function(number, period = 'days') {
moment.fn.businessAdd = function(number, period) {
var day = this.clone();
var signal = number < 0 ? -1 : 1;
var remaining = Math.abs(number);
period = (typeof period !== 'undefined') ? period : 'days';

@@ -89,3 +90,3 @@ while (remaining) {

moment.fn.businessSubtract = function(number, period = 'days') {
moment.fn.businessSubtract = function(number, period) {
return this.businessAdd(-number, period);

@@ -92,0 +93,0 @@ };

2

package.json
{
"name": "moment-business-days",
"version": "1.0.5",
"version": "1.0.6",
"description": "MomentJS plugin to use business days ",

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