async-writer
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -9,6 +9,12 @@ { | ||
"scripts": { | ||
"test": "node_modules/.bin/mocha --ui bdd --reporter spec ./test" | ||
"test": "npm run mocha && npm run jshint", | ||
"mocha": "mocha --ui bdd --reporter spec ./test/", | ||
"mocha-debug": "node-debug _mocha ./test/", | ||
"jshint": "jshint src/" | ||
}, | ||
"author": "Patrick Steele-Idem <pnidem@gmail.com>", | ||
"maintainers": "Patrick Steele-Idem <pnidem@gmail.com>", | ||
"maintainers": [ | ||
"Patrick Steele-Idem <pnidem@gmail.com>", | ||
"Michael Rawlings <ml.rawlings@gmail.com>" | ||
], | ||
"dependencies": { | ||
@@ -19,2 +25,3 @@ "events": "^1.0.2" | ||
"chai": "~1.8.1", | ||
"jshint": "^2.9.3", | ||
"mocha": "~1.15.1", | ||
@@ -24,3 +31,3 @@ "through": "^2.3.4", | ||
}, | ||
"license": "Apache License v2.0", | ||
"license": "Apache-2.0", | ||
"bin": {}, | ||
@@ -31,3 +38,3 @@ "main": "src/index.js", | ||
}, | ||
"version": "2.0.0" | ||
"version": "2.0.1" | ||
} |
@@ -1,6 +0,6 @@ | ||
var AsyncWriter = require('./AsyncWriter'); | ||
var AsyncStream = require('./AsyncStream'); | ||
function AsyncTracker(stream) { | ||
function AsyncTracker(stream, originalWriter) { | ||
this.originalStream = stream; | ||
this.originalWriter = stream._originalWriter; | ||
this.originalWriter = originalWriter; | ||
this.remaining = 0; | ||
@@ -41,6 +41,6 @@ this.last = 0; | ||
if (timeout == null) { | ||
timeout = AsyncWriter.DEFAULT_TIMEOUT; | ||
timeout = AsyncStream.DEFAULT_TIMEOUT; | ||
} | ||
newWriter.stack = AsyncWriter.INCLUDE_STACK ? new Error().stack : null; | ||
newWriter.stack = AsyncStream.INCLUDE_STACK ? new Error().stack : null; | ||
newWriter.name = name; | ||
@@ -97,5 +97,5 @@ | ||
}, | ||
} | ||
}; | ||
module.exports = AsyncTracker; |
@@ -25,3 +25,3 @@ /* | ||
var AsyncWriter = require('./AsyncWriter'); | ||
var AsyncStream = require('./AsyncStream'); | ||
@@ -42,3 +42,3 @@ exports.create = function (writer, options) { | ||
var asyncWriter = new AsyncWriter( | ||
var asyncStream = new AsyncStream( | ||
writer, | ||
@@ -49,6 +49,6 @@ null /* Internally used to pass parent */, | ||
return asyncWriter; | ||
return asyncStream; | ||
}; | ||
exports.AsyncWriter = AsyncWriter; | ||
exports.enableAsyncStackTrace = AsyncWriter.enableAsyncStackTrace; | ||
exports.AsyncStream = exports.AsyncWriter /* legacy */ = AsyncStream; | ||
exports.enableAsyncStackTrace = AsyncStream.enableAsyncStackTrace; |
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
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
46831
15
0
1210
0
5