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

are-we-there-yet

Package Overview
Dependencies
Maintainers
5
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

are-we-there-yet - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

28

lib/tracker-stream.js
'use strict'
const stream = require('readable-stream')
const delegate = require('delegates')
const stream = require('stream')
const Tracker = require('./tracker.js')

@@ -12,5 +11,9 @@

this.id = this.tracker.id
this.tracker.on('change', delegateChange(this))
this.tracker.on('change', this.trackerChange.bind(this))
}
trackerChange (name, completion) {
this.emit('change', name, completion, this)
}
_transform (data, encoding, cb) {

@@ -26,15 +29,16 @@ this.tracker.completeWork(data.length ? data.length : 1)

}
}
function delegateChange (trackerStream) {
return function (name, completion, tracker) {
trackerStream.emit('change', name, completion, trackerStream)
completed () {
return this.tracker.completed()
}
addWork (work) {
return this.tracker.addWork(work)
}
finish () {
return this.tracker.finish()
}
}
delegate(TrackerStream.prototype, 'tracker')
.method('completed')
.method('addWork')
.method('finish')
module.exports = TrackerStream
{
"name": "are-we-there-yet",
"version": "4.0.1",
"version": "4.0.2",
"description": "Keep track of the overall completion of many disparate processes",

@@ -8,3 +8,3 @@ "main": "lib/index.js",

"test": "tap",
"lint": "eslint \"**/*.js\"",
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"lintfix": "npm run lint -- --fix",

@@ -29,9 +29,5 @@ "posttest": "npm run lint",

"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.17.0",
"@npmcli/template-oss": "4.21.3",
"tap": "^16.0.1"
},
"dependencies": {
"delegates": "^1.0.0",
"readable-stream": "^4.1.0"
},
"files": [

@@ -56,5 +52,5 @@ "bin/",

"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.17.0",
"version": "4.21.3",
"publish": true
}
}
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