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

date-duration

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-duration - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

3

dist/duration.js

@@ -65,3 +65,4 @@ 'use strict';

return (iso.match(parser) || [undefined]).slice(1).filter(function (part) {
return typeof part !== 'undefined';
return (/^[0-9]+[A-Z]$/i.test(part)
);
}).map(function (part) {

@@ -68,0 +69,0 @@ return (0, _defineProperty3.default)({}, part[part.length - 1], parseInt(part.slice(0, -1), 10));

{
"name": "date-duration",
"version": "1.4.0",
"version": "1.4.1",
"description": "Manipulate Date objects with ISO 8601-formatted durations",

@@ -40,2 +40,3 @@ "main": "dist/duration.js",

"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",

@@ -42,0 +43,0 @@ "babel-register": "^6.26.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