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

moment-business-time

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment-business-time - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

4

lib/business-hours.js

@@ -239,3 +239,3 @@ var moment = require('moment'),

if (unit === 'day') {
diff++;
diff--;
} else {

@@ -248,3 +248,3 @@ diff += from.diff(openingTimes(from)[1], unit, true);

if (unit === 'day') {
diff++;
diff--;
} else {

@@ -251,0 +251,0 @@ diff += from.diff(to, unit, true);

{
"name": "moment-business-time",
"version": "0.3.1",
"version": "0.4.0",
"description": "Query and manipulate moment objects within the context of business/working hours",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -390,4 +390,4 @@ var moment = require('../lib/business-hours');

from.workingDiff(to, 'days').should.equal(16);
to.workingDiff(from, 'days').should.equal(-16);
from.workingDiff(to, 'days').should.equal(-16);
to.workingDiff(from, 'days').should.equal(16);
});

@@ -394,0 +394,0 @@

Sorry, the diff of this file is not supported yet

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