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

clocker

Package Overview
Dependencies
Maintainers
1
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.3.0 to 1.4.0

15

bin/cmd.js

@@ -11,2 +11,3 @@ #!/usr/bin/env node

var editor = require('editor');
var stringify = require('json-stable-stringify');
var os = require('os');

@@ -138,3 +139,3 @@ var tmpdir = (os.tmpdir || os.tmpDir)();

console.log(JSON.stringify([ {
console.log(stringify([ {
title: title,

@@ -149,3 +150,3 @@ rate: rate,

})
} ], null, 2));
} ], { space: 2 }));
}));

@@ -160,3 +161,3 @@ }

s.pipe(through(function (row) {
if (argv.raw) return console.log(row);
if (argv.raw) return console.log(stringify(row));
if (row.value.archive && !argv.archive) return;

@@ -197,4 +198,6 @@ if (argv.type && row.value.type !== argv.type) return;

else if (argv._[0] === 'rm') {
var key = getKey(argv._[1]);
db.del(key, error);
argv._.slice(1).forEach(function (k) {
var key = getKey(k);
db.del(key, error);
});
}

@@ -218,3 +221,3 @@ else if (argv._[0] === 'set') {

if (err) return error(err);
var src = JSON.stringify(prop ? row[prop] : row, null, 2);
var src = stringify(prop ? row[prop] : row, { space: 2 });
edit(src, function (err, src_) {

@@ -221,0 +224,0 @@ if (err) return error(err);

2

bin/usage.txt

@@ -27,3 +27,3 @@ usage:

clocker rm STAMP
clocker rm STAMP...
Remove the data at STAMP.

@@ -30,0 +30,0 @@

{
"name": "clocker",
"version": "1.3.0",
"version": "1.4.0",
"description": "track project hours",

@@ -9,9 +9,10 @@ "bin": {

"dependencies": {
"editor": "~0.1.0",
"json-stable-stringify": "^1.0.0",
"level": "~0.18.0",
"minimist": "~0.0.7",
"mkdirp": "~0.3.5",
"sprintf": "~0.1.3",
"strftime": "~0.6.2",
"sprintf": "~0.1.3",
"through": "~2.3.4",
"editor": "~0.1.0"
"through": "~2.3.4"
},

@@ -18,0 +19,0 @@ "devDependencies": {

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