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.16.4 to 1.16.5

22

lib/index.js

@@ -390,12 +390,18 @@ const toStamp = require('./util').toStamp

this.db.batch([
{ type: 'put', key: pkey, value: value },
{ type: 'put', key: tkey, value: 0 }
], function (err) {
if (err) {
return cb(err)
this.db.get(pkey, (_err, old) => {
if (old) {
return cb(new Error(`There is already another entry with stamp ${toStamp(pkey)}. Please move, update, or delete it first.`))
}
var stamp = toStamp(pkey)
return cb(null, stamp)
this.db.batch([
{ type: 'put', key: pkey, value: value },
{ type: 'put', key: tkey, value: 0 }
], function (err) {
if (err) {
return cb(err)
}
var stamp = toStamp(pkey)
return cb(null, stamp)
})
})

@@ -402,0 +408,0 @@ }

{
"name": "clocker",
"version": "1.16.4",
"version": "1.16.5",
"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