readable-stream
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -944,7 +944,9 @@ // Copyright Joyent, Inc. and other Node contributors. | ||
Readable.prototype[Symbol.asyncIterator] = function () { | ||
emitExperimentalWarning('Readable[Symbol.asyncIterator]'); | ||
if (ReadableAsyncIterator === undefined) ReadableAsyncIterator = require('./internal/streams/async_iterator'); | ||
return new ReadableAsyncIterator(this); | ||
}; | ||
if (typeof Symbol === 'function') { | ||
Readable.prototype[Symbol.asyncIterator] = function () { | ||
emitExperimentalWarning('Readable[Symbol.asyncIterator]'); | ||
if (ReadableAsyncIterator === undefined) ReadableAsyncIterator = require('./internal/streams/async_iterator'); | ||
return new ReadableAsyncIterator(this); | ||
}; | ||
} | ||
@@ -951,0 +953,0 @@ Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { |
@@ -8,2 +8,8 @@ // Ported from https://github.com/mafintosh/pump with | ||
function once(callback) { | ||
var called = false;return function () { | ||
if (called) return;called = true;callback.apply(undefined, arguments); | ||
}; | ||
} | ||
var _require$codes = require('../../../errors').codes, | ||
@@ -13,11 +19,2 @@ ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, | ||
function once(callback) { | ||
var called = false; | ||
return function (err) { | ||
if (called) return; | ||
called = true; | ||
callback(err); | ||
}; | ||
} | ||
function noop(err) { | ||
@@ -24,0 +21,0 @@ // Rethrow the error if it exists to avoid swallowing it |
{ | ||
"name": "readable-stream", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Streams3, a user-land copy of the stream library from Node.js", | ||
@@ -53,3 +53,3 @@ "main": "readable.js", | ||
"test-browsers": "airtap --sauce-connect --loopback airtap.local -- test/browser.js", | ||
"test-browser-local": "airtap --local -- test/browser.js", | ||
"test-browser-local": "airtap --open --local -- test/browser.js", | ||
"cover": "nyc npm test", | ||
@@ -56,0 +56,0 @@ "report": "nyc report --reporter=lcov", |
@@ -18,3 +18,3 @@ # readable-stream | ||
Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v10.10.0/docs/api/stream.html). | ||
Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v10.11.0/docs/api/stream.html). | ||
@@ -21,0 +21,0 @@ If you want to guarantee a stable streams base, regardless of what version of |
113889
2574