Comparing version 1.17.3 to 1.17.4
const toStamp = require('./util').toStamp | ||
const { Transform } = require('readable-stream') | ||
const { formatElapsed, getKey } = require('./util') | ||
@@ -13,3 +14,2 @@ | ||
var strftime = require('strftime') | ||
var through2 = require('through2') | ||
@@ -426,13 +426,15 @@ var util = require('./util') | ||
var stream = s.pipe(through2.obj(function (row, _, cb) { | ||
var entry = Clocker.getDataObject(row) | ||
cb(null, entry) | ||
})).pipe(through2.obj(function (entry, _, cb) { | ||
if (filter.test(entry)) { | ||
cb(null, entry) | ||
} else { | ||
cb() | ||
const transformer = new Transform({ | ||
readableObjectMode: true, | ||
writableObjectMode: true, | ||
transform (row, encoding, cb) { | ||
var entry = Clocker.getDataObject(row) | ||
if (filter.test(entry)) { | ||
cb(null, entry) | ||
} else { | ||
cb() | ||
} | ||
} | ||
})) | ||
}) | ||
var stream = s.pipe(transformer) | ||
return stream | ||
@@ -452,6 +454,5 @@ } | ||
return cb(null, data) | ||
}).pipe(through2.obj(function (entry, _, finish) { | ||
}).on('data', function (entry) { | ||
data.push(entry) | ||
finish() | ||
})) | ||
}) | ||
} | ||
@@ -470,3 +471,3 @@ | ||
return cb(null, data) | ||
}).pipe(through2.obj(function (entry, _, finish) { | ||
}).on('data', function (entry) { | ||
// entry might correspond to different by's | ||
@@ -481,5 +482,3 @@ | ||
}) | ||
finish() | ||
})) | ||
}) | ||
} | ||
@@ -486,0 +485,0 @@ |
{ | ||
"name": "clocker", | ||
"version": "1.17.3", | ||
"version": "1.17.4", | ||
"description": "track project hours", | ||
@@ -12,4 +12,4 @@ "bin": { | ||
"dependencies": { | ||
"commander": "^5.0.0", | ||
"editor": "^0.1.0", | ||
"commander": "^6.0.0", | ||
"editor": "^1.0.0", | ||
"json-stable-stringify": "^1.0.0", | ||
@@ -19,4 +19,3 @@ "level": "^6.0.1", | ||
"parse-messy-time": "^2.1.0", | ||
"strftime": "^0.8.0", | ||
"through2": "^2.0.3" | ||
"strftime": "^0.8.0" | ||
}, | ||
@@ -23,0 +22,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
7
2121
120519
+ Addedcommander@6.2.1(transitive)
+ Addededitor@1.0.0(transitive)
- Removedthrough2@^2.0.3
- Removedcommander@5.1.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removededitor@0.1.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedthrough2@2.0.5(transitive)
Updatedcommander@^6.0.0
Updatededitor@^1.0.0