diff options
Diffstat (limited to 'deps/npm/node_modules/sorted-union-stream')
16 files changed, 287 insertions, 324 deletions
diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/core-util-is/package.json b/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/core-util-is/package.json index 38f236aeb0..e9ed29b272 100644 --- a/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/core-util-is/package.json +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/core-util-is/package.json @@ -1,38 +1,18 @@ { - "_args": [ - [ - { - "raw": "core-util-is@~1.0.0", - "scope": null, - "escapedName": "core-util-is", - "name": "core-util-is", - "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" - }, - "/Users/zkat/code/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream" - ] - ], - "_from": "core-util-is@>=1.0.0 <1.1.0", + "_from": "core-util-is@~1.0.0", "_id": "core-util-is@1.0.2", - "_inCache": true, - "_installable": true, + "_integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "_location": "/sorted-union-stream/from2/readable-stream/core-util-is", - "_nodeVersion": "4.0.0", - "_npmUser": { - "name": "isaacs", - "email": "i@izs.me" - }, - "_npmVersion": "3.3.2", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "core-util-is@~1.0.0", - "scope": null, - "escapedName": "core-util-is", "name": "core-util-is", + "escapedName": "core-util-is", "rawSpec": "~1.0.0", - "spec": ">=1.0.0 <1.1.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "~1.0.0" }, "_requiredBy": [ "/sorted-union-stream/from2/readable-stream" @@ -41,26 +21,23 @@ "_shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7", "_shrinkwrap": null, "_spec": "core-util-is@~1.0.0", - "_where": "/Users/zkat/code/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream", + "_where": "/Users/zkat/Documents/code/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", "url": "http://blog.izs.me/" }, + "bin": null, "bugs": { "url": "https://github.com/isaacs/core-util-is/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "The `util.is*` functions introduced in Node v0.12.", "devDependencies": { "tap": "^2.3.0" }, - "directories": {}, - "dist": { - "shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7", - "tarball": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" - }, - "gitHead": "a177da234df5638b363ddc15fa324619a38577c8", "homepage": "https://github.com/isaacs/core-util-is#readme", "keywords": [ "util", @@ -75,15 +52,9 @@ ], "license": "MIT", "main": "lib/util.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], "name": "core-util-is", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git://github.com/isaacs/core-util-is.git" diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/isarray/package.json b/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/isarray/package.json index 8c7f7a2815..862dd06faf 100644 --- a/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/isarray/package.json +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/isarray/package.json @@ -1,37 +1,18 @@ { - "_args": [ - [ - { - "raw": "isarray@0.0.1", - "scope": null, - "escapedName": "isarray", - "name": "isarray", - "rawSpec": "0.0.1", - "spec": "0.0.1", - "type": "version" - }, - "/Users/zkat/code/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream" - ] - ], "_from": "isarray@0.0.1", "_id": "isarray@0.0.1", - "_inCache": true, - "_installable": true, + "_integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", "_location": "/sorted-union-stream/from2/readable-stream/isarray", - "_npmUser": { - "name": "juliangruber", - "email": "julian@juliangruber.com" - }, - "_npmVersion": "1.2.18", "_phantomChildren": {}, "_requested": { + "type": "version", + "registry": true, "raw": "isarray@0.0.1", - "scope": null, - "escapedName": "isarray", "name": "isarray", + "escapedName": "isarray", "rawSpec": "0.0.1", - "spec": "0.0.1", - "type": "version" + "saveSpec": null, + "fetchSpec": "0.0.1" }, "_requiredBy": [ "/sorted-union-stream/from2/readable-stream" @@ -40,25 +21,23 @@ "_shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf", "_shrinkwrap": null, "_spec": "isarray@0.0.1", - "_where": "/Users/zkat/code/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream", + "_where": "/Users/zkat/Documents/code/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream", "author": { "name": "Julian Gruber", "email": "mail@juliangruber.com", "url": "http://juliangruber.com" }, + "bin": null, "bugs": { "url": "https://github.com/juliangruber/isarray/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "Array#isArray for older browsers", "devDependencies": { "tap": "*" }, - "directories": {}, - "dist": { - "shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf", - "tarball": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz" - }, "homepage": "https://github.com/juliangruber/isarray", "keywords": [ "browser", @@ -67,15 +46,9 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "juliangruber", - "email": "julian@juliangruber.com" - } - ], "name": "isarray", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git://github.com/juliangruber/isarray.git" diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/string_decoder/package.json b/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/string_decoder/package.json index e5c74b4d51..c743dd4925 100644 --- a/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/string_decoder/package.json +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/node_modules/string_decoder/package.json @@ -1,37 +1,18 @@ { - "_args": [ - [ - { - "raw": "string_decoder@~0.10.x", - "scope": null, - "escapedName": "string_decoder", - "name": "string_decoder", - "rawSpec": "~0.10.x", - "spec": ">=0.10.0 <0.11.0", - "type": "range" - }, - "/Users/zkat/code/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream" - ] - ], - "_from": "string_decoder@>=0.10.0 <0.11.0", + "_from": "string_decoder@~0.10.x", "_id": "string_decoder@0.10.31", - "_inCache": true, - "_installable": true, + "_integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", "_location": "/sorted-union-stream/from2/readable-stream/string_decoder", - "_npmUser": { - "name": "rvagg", - "email": "rod@vagg.org" - }, - "_npmVersion": "1.4.23", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "string_decoder@~0.10.x", - "scope": null, - "escapedName": "string_decoder", "name": "string_decoder", + "escapedName": "string_decoder", "rawSpec": "~0.10.x", - "spec": ">=0.10.0 <0.11.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "~0.10.x" }, "_requiredBy": [ "/sorted-union-stream/from2/readable-stream" @@ -40,21 +21,18 @@ "_shasum": "62e203bc41766c6c28c9fc84301dab1c5310fa94", "_shrinkwrap": null, "_spec": "string_decoder@~0.10.x", - "_where": "/Users/zkat/code/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream", + "_where": "/Users/zkat/Documents/code/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream", + "bin": null, "bugs": { "url": "https://github.com/rvagg/string_decoder/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "The string_decoder module from Node core", "devDependencies": { "tap": "~0.4.8" }, - "directories": {}, - "dist": { - "shasum": "62e203bc41766c6c28c9fc84301dab1c5310fa94", - "tarball": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz" - }, - "gitHead": "d46d4fd87cf1d06e031c23f1ba170ca7d4ade9a0", "homepage": "https://github.com/rvagg/string_decoder", "keywords": [ "string", @@ -64,19 +42,9 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "substack", - "email": "mail@substack.net" - }, - { - "name": "rvagg", - "email": "rod@vagg.org" - } - ], "name": "string_decoder", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git://github.com/rvagg/string_decoder.git" diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/package.json b/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/package.json index f506ea3325..9074c95356 100644 --- a/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/package.json +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/from2/node_modules/readable-stream/package.json @@ -1,42 +1,18 @@ { - "_args": [ - [ - { - "raw": "readable-stream@~1.1.10", - "scope": null, - "escapedName": "readable-stream", - "name": "readable-stream", - "rawSpec": "~1.1.10", - "spec": ">=1.1.10 <1.2.0", - "type": "range" - }, - "/Users/zkat/code/npm/node_modules/sorted-union-stream/node_modules/from2" - ] - ], - "_from": "readable-stream@>=1.1.10 <1.2.0", + "_from": "readable-stream@~1.1.10", "_id": "readable-stream@1.1.14", - "_inCache": true, - "_installable": true, + "_integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "_location": "/sorted-union-stream/from2/readable-stream", - "_nodeVersion": "5.10.1", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/readable-stream-1.1.14.tgz_1460563293219_0.5682175166439265" - }, - "_npmUser": { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - }, - "_npmVersion": "3.8.3", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "readable-stream@~1.1.10", - "scope": null, - "escapedName": "readable-stream", "name": "readable-stream", + "escapedName": "readable-stream", "rawSpec": "~1.1.10", - "spec": ">=1.1.10 <1.2.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "~1.1.10" }, "_requiredBy": [ "/sorted-union-stream/from2" @@ -45,34 +21,31 @@ "_shasum": "7cf4c54ef648e3813084c636dd2079e166c081d9", "_shrinkwrap": null, "_spec": "readable-stream@~1.1.10", - "_where": "/Users/zkat/code/npm/node_modules/sorted-union-stream/node_modules/from2", + "_where": "/Users/zkat/Documents/code/npm/node_modules/sorted-union-stream/node_modules/from2", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", "url": "http://blog.izs.me/" }, + "bin": null, "browser": { "util": false }, "bugs": { "url": "https://github.com/isaacs/readable-stream/issues" }, + "bundleDependencies": false, "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.1", "isarray": "0.0.1", "string_decoder": "~0.10.x" }, + "deprecated": false, "description": "Streams3, a user-land copy of the stream library from Node.js v0.11.x", "devDependencies": { "tap": "~0.2.6" }, - "directories": {}, - "dist": { - "shasum": "7cf4c54ef648e3813084c636dd2079e166c081d9", - "tarball": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz" - }, - "gitHead": "52550840cb1d6e8a98ef9a909a4bea360bc6f7da", "homepage": "https://github.com/isaacs/readable-stream#readme", "keywords": [ "readable", @@ -81,27 +54,9 @@ ], "license": "MIT", "main": "readable.js", - "maintainers": [ - { - "name": "isaacs", - "email": "isaacs@npmjs.com" - }, - { - "name": "tootallnate", - "email": "nathan@tootallnate.net" - }, - { - "name": "rvagg", - "email": "rod@vagg.org" - }, - { - "name": "cwmma", - "email": "calvin.metcalf@gmail.com" - } - ], "name": "readable-stream", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git://github.com/isaacs/readable-stream.git" diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/from2/package.json b/deps/npm/node_modules/sorted-union-stream/node_modules/from2/package.json index a5ec25b657..4e1e9e597b 100644 --- a/deps/npm/node_modules/sorted-union-stream/node_modules/from2/package.json +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/from2/package.json @@ -1,40 +1,20 @@ { - "_args": [ - [ - { - "raw": "from2@^1.3.0", - "scope": null, - "escapedName": "from2", - "name": "from2", - "rawSpec": "^1.3.0", - "spec": ">=1.3.0 <2.0.0", - "type": "range" - }, - "/Users/zkat/code/npm/node_modules/sorted-union-stream" - ] - ], - "_from": "from2@>=1.3.0 <2.0.0", + "_from": "from2@^1.3.0", "_id": "from2@1.3.0", - "_inCache": true, - "_installable": true, + "_integrity": "sha1-iEE7qqX5pZfP3pIh2GmGzTwGHf0=", "_location": "/sorted-union-stream/from2", - "_nodeVersion": "0.10.35", - "_npmUser": { - "name": "mafintosh", - "email": "mathiasbuus@gmail.com" - }, - "_npmVersion": "2.1.17", "_phantomChildren": { - "inherits": "2.0.1" + "inherits": "2.0.3" }, "_requested": { + "type": "range", + "registry": true, "raw": "from2@^1.3.0", - "scope": null, - "escapedName": "from2", "name": "from2", + "escapedName": "from2", "rawSpec": "^1.3.0", - "spec": ">=1.3.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.3.0" }, "_requiredBy": [ "/sorted-union-stream" @@ -43,15 +23,17 @@ "_shasum": "88413baaa5f9a597cfde9221d86986cd3c061dfd", "_shrinkwrap": null, "_spec": "from2@^1.3.0", - "_where": "/Users/zkat/code/npm/node_modules/sorted-union-stream", + "_where": "/Users/zkat/Documents/code/npm/node_modules/sorted-union-stream", "author": { "name": "Hugh Kennedy", "email": "hughskennedy@gmail.com", "url": "http://hughsk.io/" }, + "bin": null, "bugs": { "url": "https://github.com/hughsk/from2/issues" }, + "bundleDependencies": false, "contributors": [ { "name": "Mathias Buus", @@ -62,16 +44,11 @@ "inherits": "~2.0.1", "readable-stream": "~1.1.10" }, + "deprecated": false, "description": "Convenience wrapper for ReadableStream, with an API lifted from \"from\" and \"through2\"", "devDependencies": { "tape": "~2.4.2" }, - "directories": {}, - "dist": { - "shasum": "88413baaa5f9a597cfde9221d86986cd3c061dfd", - "tarball": "https://registry.npmjs.org/from2/-/from2-1.3.0.tgz" - }, - "gitHead": "96118ea0d8aff6fb28cb8b7d8bc63ab1adb946a9", "homepage": "https://github.com/hughsk/from2", "keywords": [ "from", @@ -83,19 +60,9 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "hughsk", - "email": "hughskennedy@gmail.com" - }, - { - "name": "mafintosh", - "email": "mathiasbuus@gmail.com" - } - ], "name": "from2", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git://github.com/hughsk/from2.git" diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/README.md b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/README.md index 37d68d4bc7..001112045b 100644 --- a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/README.md +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/README.md @@ -18,10 +18,16 @@ var stream = from.obj(['a', 'b', 'c']) var read = iterate(stream) -read(function (err, data, next) { - console.log(err, data) - next() -}) +loop() + +// recursively iterates through each item in the stream +function loop () { + read(function (err, data, next) { + console.log(err, data) + next() + loop() + }) +} ``` If you don't call `next` and call `read` again the same `(err, value)` pair will be returned. diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/index.js b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/index.js index 2dac155cbf..c60d6ab550 100644 --- a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/index.js +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/index.js @@ -1,4 +1,5 @@ -var Readable = require('stream').Readable +var Readable = require('readable-stream').Readable +var shift = require('stream-shift') var stream2 = function (stream) { if (stream._readableState) return stream @@ -34,7 +35,7 @@ module.exports = function (stream) { var update = function () { if (!fn) return - data = stream.read() + data = shift(stream) if (data === null && !ended) return onresult() } diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/.npmignore b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/.npmignore new file mode 100644 index 0000000000..3c3629e647 --- /dev/null +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/.npmignore @@ -0,0 +1 @@ +node_modules diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/.travis.yml b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/.travis.yml new file mode 100644 index 0000000000..ecd4193f60 --- /dev/null +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/.travis.yml @@ -0,0 +1,6 @@ +language: node_js +node_js: + - "0.10" + - "0.12" + - "4" + - "6" diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/LICENSE b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/LICENSE new file mode 100644 index 0000000000..bae9da7bfa --- /dev/null +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/README.md b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/README.md new file mode 100644 index 0000000000..d9cc2d945f --- /dev/null +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/README.md @@ -0,0 +1,25 @@ +# stream-shift + +Returns the next buffer/object in a stream's readable queue + +``` +npm install stream-shift +``` + +[![build status](http://img.shields.io/travis/mafintosh/stream-shift.svg?style=flat)](http://travis-ci.org/mafintosh/stream-shift) + +## Usage + +``` js +var shift = require('stream-shift') + +console.log(shift(someStream)) // first item in its buffer +``` + +## Credit + +Thanks [@dignifiedquire](https://github.com/dignifiedquire) for making this work on node 6 + +## License + +MIT diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/index.js b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/index.js new file mode 100644 index 0000000000..c4b18b9c2a --- /dev/null +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/index.js @@ -0,0 +1,20 @@ +module.exports = shift + +function shift (stream) { + var rs = stream._readableState + if (!rs) return null + return rs.objectMode ? stream.read() : stream.read(getStateLength(rs)) +} + +function getStateLength (state) { + if (state.buffer.length) { + // Since node 6.3.0 state.buffer is a BufferList not an array + if (state.buffer.head) { + return state.buffer.head.data.length + } + + return state.buffer[0].length + } + + return state.length +} diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/package.json b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/package.json new file mode 100644 index 0000000000..83077ba491 --- /dev/null +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/package.json @@ -0,0 +1,56 @@ +{ + "_from": "stream-shift@^1.0.0", + "_id": "stream-shift@1.0.0", + "_integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "_location": "/sorted-union-stream/stream-iterate/stream-shift", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "stream-shift@^1.0.0", + "name": "stream-shift", + "escapedName": "stream-shift", + "rawSpec": "^1.0.0", + "saveSpec": null, + "fetchSpec": "^1.0.0" + }, + "_requiredBy": [ + "/sorted-union-stream/stream-iterate" + ], + "_resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", + "_shasum": "d5c752825e5367e786f78e18e445ea223a155952", + "_shrinkwrap": null, + "_spec": "stream-shift@^1.0.0", + "_where": "/Users/zkat/Documents/code/npm/node_modules/sorted-union-stream/node_modules/stream-iterate", + "author": { + "name": "Mathias Buus", + "url": "@mafintosh" + }, + "bin": null, + "bugs": { + "url": "https://github.com/mafintosh/stream-shift/issues" + }, + "bundleDependencies": false, + "dependencies": {}, + "deprecated": false, + "description": "Returns the next buffer/object in a stream's readable queue", + "devDependencies": { + "standard": "^7.1.2", + "tape": "^4.6.0", + "through2": "^2.0.1" + }, + "homepage": "https://github.com/mafintosh/stream-shift", + "license": "MIT", + "main": "index.js", + "name": "stream-shift", + "optionalDependencies": {}, + "peerDependencies": {}, + "repository": { + "type": "git", + "url": "git+https://github.com/mafintosh/stream-shift.git" + }, + "scripts": { + "test": "standard && tape test.js" + }, + "version": "1.0.0" +} diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/test.js b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/test.js new file mode 100644 index 0000000000..c0222c37d5 --- /dev/null +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/node_modules/stream-shift/test.js @@ -0,0 +1,48 @@ +var tape = require('tape') +var through = require('through2') +var stream = require('stream') +var shift = require('./') + +tape('shifts next', function (t) { + var passthrough = through() + + passthrough.write('hello') + passthrough.write('world') + + t.same(shift(passthrough), Buffer('hello')) + t.same(shift(passthrough), Buffer('world')) + t.end() +}) + +tape('shifts next with core', function (t) { + var passthrough = stream.PassThrough() + + passthrough.write('hello') + passthrough.write('world') + + t.same(shift(passthrough), Buffer('hello')) + t.same(shift(passthrough), Buffer('world')) + t.end() +}) + +tape('shifts next with object mode', function (t) { + var passthrough = through({objectMode: true}) + + passthrough.write({hello: 1}) + passthrough.write({world: 1}) + + t.same(shift(passthrough), {hello: 1}) + t.same(shift(passthrough), {world: 1}) + t.end() +}) + +tape('shifts next with object mode with core', function (t) { + var passthrough = stream.PassThrough({objectMode: true}) + + passthrough.write({hello: 1}) + passthrough.write({world: 1}) + + t.same(shift(passthrough), {hello: 1}) + t.same(shift(passthrough), {world: 1}) + t.end() +}) diff --git a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/package.json b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/package.json index 74030fe493..c8f83d017b 100644 --- a/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/package.json +++ b/deps/npm/node_modules/sorted-union-stream/node_modules/stream-iterate/package.json @@ -1,79 +1,53 @@ { - "_args": [ - [ - { - "raw": "stream-iterate@^1.1.0", - "scope": null, - "escapedName": "stream-iterate", - "name": "stream-iterate", - "rawSpec": "^1.1.0", - "spec": ">=1.1.0 <2.0.0", - "type": "range" - }, - "/Users/zkat/code/npm/node_modules/sorted-union-stream" - ] - ], - "_from": "stream-iterate@>=1.1.0 <2.0.0", - "_id": "stream-iterate@1.1.1", - "_inCache": true, - "_installable": true, + "_from": "stream-iterate@^1.1.0", + "_id": "stream-iterate@1.2.0", + "_integrity": "sha1-K9fHcpbBcCpGSIuK1B95hl7s1OE=", "_location": "/sorted-union-stream/stream-iterate", - "_nodeVersion": "1.6.4", - "_npmUser": { - "name": "mafintosh", - "email": "mathiasbuus@gmail.com" - }, - "_npmVersion": "2.7.5", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "stream-iterate@^1.1.0", - "scope": null, - "escapedName": "stream-iterate", "name": "stream-iterate", + "escapedName": "stream-iterate", "rawSpec": "^1.1.0", - "spec": ">=1.1.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.1.0" }, "_requiredBy": [ "/sorted-union-stream" ], - "_resolved": "https://registry.npmjs.org/stream-iterate/-/stream-iterate-1.1.1.tgz", - "_shasum": "5d7d197aa52bc9e271b44547c9e388b2b1b33836", + "_resolved": "https://registry.npmjs.org/stream-iterate/-/stream-iterate-1.2.0.tgz", + "_shasum": "2bd7c77296c1702a46488b8ad41f79865eecd4e1", "_shrinkwrap": null, "_spec": "stream-iterate@^1.1.0", - "_where": "/Users/zkat/code/npm/node_modules/sorted-union-stream", + "_where": "/Users/zkat/Documents/code/npm/node_modules/sorted-union-stream", "author": { "name": "Mathias Buus", "url": "@mafintosh" }, + "bin": null, "bugs": { "url": "https://github.com/mafintosh/stream-iterate/issues" }, - "dependencies": {}, + "bundleDependencies": false, + "dependencies": { + "readable-stream": "^2.1.5", + "stream-shift": "^1.0.0" + }, + "deprecated": false, "description": "Iterate through the values of a stream", "devDependencies": { "from2": "^1.3.0", "standard": "^3.3.2", "tape": "^4.0.0" }, - "directories": {}, - "dist": { - "shasum": "5d7d197aa52bc9e271b44547c9e388b2b1b33836", - "tarball": "https://registry.npmjs.org/stream-iterate/-/stream-iterate-1.1.1.tgz" - }, - "gitHead": "7a6e5e07b213fccd3efffda5f14b0442b1d360c9", "homepage": "https://github.com/mafintosh/stream-iterate", "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "mafintosh", - "email": "mathiasbuus@gmail.com" - } - ], "name": "stream-iterate", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/mafintosh/stream-iterate.git" @@ -81,5 +55,5 @@ "scripts": { "test": "standard && tape test.js" }, - "version": "1.1.1" + "version": "1.2.0" } diff --git a/deps/npm/node_modules/sorted-union-stream/package.json b/deps/npm/node_modules/sorted-union-stream/package.json index 249245c065..0a77f8b16b 100644 --- a/deps/npm/node_modules/sorted-union-stream/package.json +++ b/deps/npm/node_modules/sorted-union-stream/package.json @@ -1,72 +1,49 @@ { - "_args": [ - [ - { - "raw": "sorted-union-stream", - "scope": null, - "escapedName": "sorted-union-stream", - "name": "sorted-union-stream", - "rawSpec": "", - "spec": "latest", - "type": "tag" - }, - "/Users/zkat/code/npm" - ] - ], - "_from": "sorted-union-stream@latest", + "_from": "sorted-union-stream@~2.1.3", "_id": "sorted-union-stream@2.1.3", - "_inCache": true, - "_installable": true, + "_integrity": "sha1-x3lMfgd4gAUv9xqNSi27Sppjisc=", "_location": "/sorted-union-stream", - "_nodeVersion": "2.2.1", - "_npmUser": { - "name": "mafintosh", - "email": "mathiasbuus@gmail.com" - }, - "_npmVersion": "2.11.0", "_phantomChildren": { - "inherits": "2.0.1" + "inherits": "2.0.3", + "readable-stream": "2.2.9" }, "_requested": { - "raw": "sorted-union-stream", - "scope": null, - "escapedName": "sorted-union-stream", + "type": "range", + "registry": true, + "raw": "sorted-union-stream@~2.1.3", "name": "sorted-union-stream", - "rawSpec": "", - "spec": "latest", - "type": "tag" + "escapedName": "sorted-union-stream", + "rawSpec": "~2.1.3", + "saveSpec": null, + "fetchSpec": "~2.1.3" }, "_requiredBy": [ - "#USER", "/" ], "_resolved": "https://registry.npmjs.org/sorted-union-stream/-/sorted-union-stream-2.1.3.tgz", "_shasum": "c7794c7e077880052ff71a8d4a2dbb4a9a638ac7", "_shrinkwrap": null, - "_spec": "sorted-union-stream", - "_where": "/Users/zkat/code/npm", + "_spec": "sorted-union-stream@~2.1.3", + "_where": "/Users/zkat/Documents/code/npm", "author": { "name": "Mathias Buus Madsen", "email": "mathiasbuus@gmail.com" }, + "bin": null, "bugs": { "url": "https://github.com/mafintosh/sorted-union-stream/issues" }, + "bundleDependencies": false, "dependencies": { "from2": "^1.3.0", "stream-iterate": "^1.1.0" }, + "deprecated": false, "description": "Get the union of two sorted streams", "devDependencies": { "standard": "^3.3.0", "tape": "^3.0.0" }, - "directories": {}, - "dist": { - "shasum": "c7794c7e077880052ff71a8d4a2dbb4a9a638ac7", - "tarball": "https://registry.npmjs.org/sorted-union-stream/-/sorted-union-stream-2.1.3.tgz" - }, - "gitHead": "a11a92dc36f3908bf6476b593c1d273de14cee0f", "homepage": "https://github.com/mafintosh/sorted-union-stream", "keywords": [ "union", @@ -75,15 +52,9 @@ ], "license": "MIT", "main": "index.js", - "maintainers": [ - { - "name": "mafintosh", - "email": "mathiasbuus@gmail.com" - } - ], "name": "sorted-union-stream", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git://github.com/mafintosh/sorted-union-stream.git" |