Comparing version 1.0.0 to 1.0.1
@@ -287,5 +287,10 @@ /** | ||
var split = v.split(' '); | ||
// Add an "s" as the unit of measurement used in Moment | ||
if (!split[1].match(/s$/)) split[1] += 's'; | ||
v = moment.duration(parseInt(split[0], 10), split[1]).valueOf(); | ||
if (split.length == 1) { | ||
// It must be an integer in string form. | ||
v = parseInt(v, 10); | ||
} else { | ||
// Add an "s" as the unit of measurement used in Moment | ||
if (!split[1].match(/s$/)) split[1] += 's'; | ||
v = moment.duration(parseInt(split[0], 10), split[1]).valueOf(); | ||
} | ||
break; | ||
@@ -292,0 +297,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "Unruly configuration management for nodejs", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"homepage": "https://github.com/mozilla/node-convict", | ||
@@ -8,0 +8,0 @@ "repository": { |
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
29010
420