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

parse-time

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-time - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"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){

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