Comparing version 1.3.0 to 1.4.0
@@ -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); |
@@ -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": { |
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
346
16178
8
4
+ Addedjson-stable-stringify@^1.0.0
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.6(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedjson-stable-stringify@1.2.0(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedmath-intrinsics@1.0.0(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedset-function-length@1.2.2(transitive)