aboutsummaryrefslogtreecommitdiff
path: root/node_modules/unpipe
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-28 02:20:52 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-28 02:20:52 +0000
commit4cff38c8f7b65dab1fd72ea835ea7288327d1056 (patch)
treeac93acd69e77eef1e352af953d56238d70ea9c5d /node_modules/unpipe
parente11dd98c9a55cd1742d221e3b1ea90d31e240fa8 (diff)
Fixed admin bug
Diffstat (limited to 'node_modules/unpipe')
-rw-r--r--node_modules/unpipe/HISTORY.md4
-rw-r--r--node_modules/unpipe/LICENSE22
-rw-r--r--node_modules/unpipe/README.md43
-rw-r--r--node_modules/unpipe/index.js69
-rw-r--r--node_modules/unpipe/package.json92
5 files changed, 0 insertions, 230 deletions
diff --git a/node_modules/unpipe/HISTORY.md b/node_modules/unpipe/HISTORY.md
deleted file mode 100644
index 85e0f8d..0000000
--- a/node_modules/unpipe/HISTORY.md
+++ /dev/null
@@ -1,4 +0,0 @@
-1.0.0 / 2015-06-14
-==================
-
- * Initial release
diff --git a/node_modules/unpipe/LICENSE b/node_modules/unpipe/LICENSE
deleted file mode 100644
index aed0138..0000000
--- a/node_modules/unpipe/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
-
-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/node_modules/unpipe/README.md b/node_modules/unpipe/README.md
deleted file mode 100644
index e536ad2..0000000
--- a/node_modules/unpipe/README.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# unpipe
-
-[![NPM Version][npm-image]][npm-url]
-[![NPM Downloads][downloads-image]][downloads-url]
-[![Node.js Version][node-image]][node-url]
-[![Build Status][travis-image]][travis-url]
-[![Test Coverage][coveralls-image]][coveralls-url]
-
-Unpipe a stream from all destinations.
-
-## Installation
-
-```sh
-$ npm install unpipe
-```
-
-## API
-
-```js
-var unpipe = require('unpipe')
-```
-
-### unpipe(stream)
-
-Unpipes all destinations from a given stream. With stream 2+, this is
-equivalent to `stream.unpipe()`. When used with streams 1 style streams
-(typically Node.js 0.8 and below), this module attempts to undo the
-actions done in `stream.pipe(dest)`.
-
-## License
-
-[MIT](LICENSE)
-
-[npm-image]: https://img.shields.io/npm/v/unpipe.svg
-[npm-url]: https://npmjs.org/package/unpipe
-[node-image]: https://img.shields.io/node/v/unpipe.svg
-[node-url]: http://nodejs.org/download/
-[travis-image]: https://img.shields.io/travis/stream-utils/unpipe.svg
-[travis-url]: https://travis-ci.org/stream-utils/unpipe
-[coveralls-image]: https://img.shields.io/coveralls/stream-utils/unpipe.svg
-[coveralls-url]: https://coveralls.io/r/stream-utils/unpipe?branch=master
-[downloads-image]: https://img.shields.io/npm/dm/unpipe.svg
-[downloads-url]: https://npmjs.org/package/unpipe
diff --git a/node_modules/unpipe/index.js b/node_modules/unpipe/index.js
deleted file mode 100644
index 15c3d97..0000000
--- a/node_modules/unpipe/index.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/*!
- * unpipe
- * Copyright(c) 2015 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict'
-
-/**
- * Module exports.
- * @public
- */
-
-module.exports = unpipe
-
-/**
- * Determine if there are Node.js pipe-like data listeners.
- * @private
- */
-
-function hasPipeDataListeners(stream) {
- var listeners = stream.listeners('data')
-
- for (var i = 0; i < listeners.length; i++) {
- if (listeners[i].name === 'ondata') {
- return true
- }
- }
-
- return false
-}
-
-/**
- * Unpipe a stream from all destinations.
- *
- * @param {object} stream
- * @public
- */
-
-function unpipe(stream) {
- if (!stream) {
- throw new TypeError('argument stream is required')
- }
-
- if (typeof stream.unpipe === 'function') {
- // new-style
- stream.unpipe()
- return
- }
-
- // Node.js 0.8 hack
- if (!hasPipeDataListeners(stream)) {
- return
- }
-
- var listener
- var listeners = stream.listeners('close')
-
- for (var i = 0; i < listeners.length; i++) {
- listener = listeners[i]
-
- if (listener.name !== 'cleanup' && listener.name !== 'onclose') {
- continue
- }
-
- // invoke the listener
- listener.call(stream)
- }
-}
diff --git a/node_modules/unpipe/package.json b/node_modules/unpipe/package.json
deleted file mode 100644
index 7486d97..0000000
--- a/node_modules/unpipe/package.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "_args": [
- [
- {
- "name": "unpipe",
- "raw": "unpipe@~1.0.0",
- "rawSpec": "~1.0.0",
- "scope": null,
- "spec": ">=1.0.0 <1.1.0",
- "type": "range"
- },
- "/Users/warefhaque/CSC309/solutions_repo/node_modules/finalhandler"
- ]
- ],
- "_from": "unpipe@>=1.0.0 <1.1.0",
- "_id": "unpipe@1.0.0",
- "_inCache": true,
- "_installable": true,
- "_location": "/unpipe",
- "_npmUser": {
- "email": "doug@somethingdoug.com",
- "name": "dougwilson"
- },
- "_npmVersion": "1.4.28",
- "_phantomChildren": {},
- "_requested": {
- "name": "unpipe",
- "raw": "unpipe@~1.0.0",
- "rawSpec": "~1.0.0",
- "scope": null,
- "spec": ">=1.0.0 <1.1.0",
- "type": "range"
- },
- "_requiredBy": [
- "/finalhandler"
- ],
- "_resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
- "_shasum": "b2bf4ee8514aae6165b4817829d21b2ef49904ec",
- "_shrinkwrap": null,
- "_spec": "unpipe@~1.0.0",
- "_where": "/Users/warefhaque/CSC309/solutions_repo/node_modules/finalhandler",
- "author": {
- "email": "doug@somethingdoug.com",
- "name": "Douglas Christopher Wilson"
- },
- "bugs": {
- "url": "https://github.com/stream-utils/unpipe/issues"
- },
- "dependencies": {},
- "description": "Unpipe a stream from all destinations",
- "devDependencies": {
- "istanbul": "0.3.15",
- "mocha": "2.2.5",
- "readable-stream": "1.1.13"
- },
- "directories": {},
- "dist": {
- "shasum": "b2bf4ee8514aae6165b4817829d21b2ef49904ec",
- "tarball": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz"
- },
- "engines": {
- "node": ">= 0.8"
- },
- "files": [
- "HISTORY.md",
- "LICENSE",
- "README.md",
- "index.js"
- ],
- "gitHead": "d2df901c06487430e78dca62b6edb8bb2fc5e99d",
- "homepage": "https://github.com/stream-utils/unpipe",
- "license": "MIT",
- "maintainers": [
- {
- "email": "doug@somethingdoug.com",
- "name": "dougwilson"
- }
- ],
- "name": "unpipe",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/stream-utils/unpipe.git"
- },
- "scripts": {
- "test": "mocha --reporter spec --bail --check-leaks test/",
- "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
- "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
- },
- "version": "1.0.0"
-}