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

moment-duration-format

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment-duration-format - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

2

bower.json
{
"name": "moment-duration-format",
"version": "2.2.1",
"version": "2.2.2",
"description": "A moment.js plugin for formatting durations.",

@@ -5,0 +5,0 @@ "main": "lib/moment-duration-format.js",

@@ -1,4 +0,4 @@

/*! Moment Duration Format v2.2.1
/*! Moment Duration Format v2.2.2
* https://github.com/jsmreese/moment-duration-format
* Date: 2018-01-21
* Date: 2018-02-16
*

@@ -733,3 +733,3 @@ * Duration format plugin function for the Moment.js library

// Treat invalid durations as having a value of 0 milliseconds.
if (this.isValid() === false) {
if (typeof this.isValid === "function" && this.isValid() === false) {
asMilliseconds = 0;

@@ -1415,3 +1415,3 @@ asMonths = 0;

if (isNegative && (momentType.value > 0 || find(stopTrim, momentType.type) || find(outputTypes, momentType.type))) {
if (isNegative && (momentType.value > 0 || trim === "" || find(stopTrim, momentType.type) || find(outputTypes, momentType.type))) {
out += "-";

@@ -1418,0 +1418,0 @@ isNegative = false;

{
"name": "moment-duration-format",
"version": "2.2.1",
"version": "2.2.2",
"description": "A moment.js plugin for formatting durations.",

@@ -5,0 +5,0 @@ "main": "lib/moment-duration-format.js",

Sorry, the diff of this file is too big to display

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