are-we-there-yet
Advanced tools
+16
-12
| '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 |
+4
-8
| { | ||
| "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 | ||
| } | ||
| } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
-100%177
1.14%0
-100%13527
-0.82%- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed