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

clocker

Package Overview
Dependencies
Maintainers
3
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clocker - npm Package Compare versions

Comparing version 1.15.1 to 1.15.2

.travis.yml

13

bin/index.js

@@ -251,7 +251,7 @@ #!/usr/bin/env node

var reportDay = (cmd.reportDay && typeof cmd.reportDay === 'string') ? cmd.reportDay : getDate('today')
var reportDayTomorrow = new Date(reportDay)
reportDayTomorrow.setDate(reportDayTomorrow.getDate() + 1)
var reportDay = (cmd.reportDay && typeof cmd.reportDay === 'string') ? cmd.reportDay : 'today'
reportDay = getDate(reportDay)
var reportDayTomorrow = new Date(reportDay.getTime() + (24 * 60 * 60 * 1000))
filter.gt = reportDay
filter.lt = reportDayTomorrow

@@ -617,2 +617,7 @@ console.log('Report for %s:', printDate(reportDay))

function printDate (date) {
if (typeof date === 'string') {
date = getDate(date)
return printDate(date)
}
var monthNames = [

@@ -619,0 +624,0 @@ 'January', 'February', 'March',

@@ -8,3 +8,2 @@ var parseTime = require('parse-messy-time')

var d
var timestamp = Date.parse(expr)

@@ -17,6 +16,6 @@ if (expr === null || expr === undefined) {

d = new Date(expr * 1000)
} else if (isNaN(timestamp)) {
} else if (typeof expr === 'string') {
d = parseTime(expr)
} else {
d = new Date(timestamp)
d = new Date(expr)
}

@@ -23,0 +22,0 @@

{
"name": "clocker",
"version": "1.15.1",
"version": "1.15.2",
"description": "track project hours",

@@ -5,0 +5,0 @@ "bin": {

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