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.5.1 to 1.6.0

9

dist/duration.js

@@ -32,2 +32,6 @@ "use strict";

var _debug = _interopRequireDefault(require("debug"));
var debug = (0, _debug.default)('date-duration');
var clone = function clone(value) {

@@ -68,3 +72,6 @@ if ((0, _typeof2.default)(value) === 'object' && typeof value.toDate === 'function') {

} else {
date["set".concat(methods[key])](operator(date["get".concat(methods[key])](), key !== 'W' ? parts[key] : parts[key] * 7));
var original = date["get".concat(methods[key])]();
var value = operator(original, key !== 'W' ? parts[key] : parts[key] * 7);
date["set".concat(methods[key])](value);
debug("set ".concat(key, " ").concat(original, " to ").concat(value, ": ").concat(date));
}

@@ -71,0 +78,0 @@ });

5

package.json
{
"name": "date-duration",
"version": "1.5.1",
"version": "1.6.0",
"description": "Manipulate Date objects with ISO 8601-formatted durations",

@@ -54,3 +54,4 @@ "main": "dist/duration.js",

"@babel/polyfill": "^7.2.5",
"@babel/runtime": "^7.3.1"
"@babel/runtime": "^7.3.1",
"debug": "^4.1.1"
},

@@ -57,0 +58,0 @@ "browserslist": [

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