date-duration
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15282
123
0
12