Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "parse-time", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Utility for parsing time strings", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -21,4 +21,4 @@ 'use strict'; | ||
function getMinute(value){ | ||
if (validMinute(value)){ | ||
function getMinute(value, config){ | ||
if (validMinute(value, config)){ | ||
return value * 1 | ||
@@ -28,4 +28,4 @@ } | ||
function getSecond(value){ | ||
if (validSecond(value)){ | ||
function getSecond(value, config){ | ||
if (validSecond(value, config)){ | ||
return value * 1 | ||
@@ -82,3 +82,3 @@ } | ||
if (withMeridian){ | ||
meridian = getMeridian(parts[1]) | ||
meridian = getMeridian(parts[1], config) | ||
@@ -139,3 +139,3 @@ if (meridian === undefined){ | ||
hour = getHour(parts[0], config) | ||
minute = getMinute(parts[1]) | ||
minute = getMinute(parts[1], config) | ||
@@ -142,0 +142,0 @@ if (hour === undefined){ |
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
32234
0