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.17.3 to 1.17.4

35

lib/index.js
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": {

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