aboutsummaryrefslogtreecommitdiff
path: root/node_modules/mimic-response
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2020-12-22 17:50:12 +0530
committerPriyansh <[email protected]>2020-12-22 17:50:12 +0530
commit22dc033f4938d6a19e086a1cbd36ec5cade5eaab (patch)
tree9feb963ccd5c1581e676e41004801abc67db3357 /node_modules/mimic-response
parente93da8b04da86773247aadb1cbb1912e4f4526b2 (diff)
downloadstyx-22dc033f4938d6a19e086a1cbd36ec5cade5eaab.tar.xz
styx-22dc033f4938d6a19e086a1cbd36ec5cade5eaab.zip
Remove node_modules
Diffstat (limited to 'node_modules/mimic-response')
-rw-r--r--node_modules/mimic-response/index.js32
-rw-r--r--node_modules/mimic-response/license9
-rw-r--r--node_modules/mimic-response/package.json71
-rw-r--r--node_modules/mimic-response/readme.md54
4 files changed, 0 insertions, 166 deletions
diff --git a/node_modules/mimic-response/index.js b/node_modules/mimic-response/index.js
deleted file mode 100644
index d5e33be..0000000
--- a/node_modules/mimic-response/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict';
-
-// We define these manually to ensure they're always copied
-// even if they would move up the prototype chain
-// https://nodejs.org/api/http.html#http_class_http_incomingmessage
-const knownProps = [
- 'destroy',
- 'setTimeout',
- 'socket',
- 'headers',
- 'trailers',
- 'rawHeaders',
- 'statusCode',
- 'httpVersion',
- 'httpVersionMinor',
- 'httpVersionMajor',
- 'rawTrailers',
- 'statusMessage'
-];
-
-module.exports = (fromStream, toStream) => {
- const fromProps = new Set(Object.keys(fromStream).concat(knownProps));
-
- for (const prop of fromProps) {
- // Don't overwrite existing properties
- if (prop in toStream) {
- continue;
- }
-
- toStream[prop] = typeof fromStream[prop] === 'function' ? fromStream[prop].bind(fromStream) : fromStream[prop];
- }
-};
diff --git a/node_modules/mimic-response/license b/node_modules/mimic-response/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/mimic-response/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.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/mimic-response/package.json b/node_modules/mimic-response/package.json
deleted file mode 100644
index c5a2543..0000000
--- a/node_modules/mimic-response/package.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "_from": "mimic-response@^1.0.1",
- "_id": "[email protected]",
- "_inBundle": false,
- "_integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
- "_location": "/mimic-response",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "mimic-response@^1.0.1",
- "name": "mimic-response",
- "escapedName": "mimic-response",
- "rawSpec": "^1.0.1",
- "saveSpec": null,
- "fetchSpec": "^1.0.1"
- },
- "_requiredBy": [
- "/clone-response",
- "/decompress-response",
- "/got"
- ],
- "_resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
- "_shasum": "4923538878eef42063cb8a3e3b0798781487ab1b",
- "_spec": "mimic-response@^1.0.1",
- "_where": "/Users/lucifer/Documents/styx/node_modules/got",
- "author": {
- "name": "Sindre Sorhus",
- "email": "[email protected]",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/mimic-response/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Mimic a Node.js HTTP response stream",
- "devDependencies": {
- "ava": "*",
- "create-test-server": "^0.1.0",
- "pify": "^3.0.0",
- "xo": "*"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/mimic-response#readme",
- "keywords": [
- "mimic",
- "response",
- "stream",
- "http",
- "https",
- "request",
- "get",
- "core"
- ],
- "license": "MIT",
- "name": "mimic-response",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/mimic-response.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.1"
-}
diff --git a/node_modules/mimic-response/readme.md b/node_modules/mimic-response/readme.md
deleted file mode 100644
index e07ec66..0000000
--- a/node_modules/mimic-response/readme.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# mimic-response [![Build Status](https://travis-ci.org/sindresorhus/mimic-response.svg?branch=master)](https://travis-ci.org/sindresorhus/mimic-response)
-
-> Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
-
-
-## Install
-
-```
-$ npm install mimic-response
-```
-
-
-## Usage
-
-```js
-const stream = require('stream');
-const mimicResponse = require('mimic-response');
-
-const responseStream = getHttpResponseStream();
-const myStream = new stream.PassThrough();
-
-mimicResponse(responseStream, myStream);
-
-console.log(myStream.statusCode);
-//=> 200
-```
-
-
-## API
-
-### mimicResponse(from, to)
-
-#### from
-
-Type: `Stream`
-
-[Node.js HTTP response stream.](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
-
-#### to
-
-Type: `Stream`
-
-Any stream.
-
-
-## Related
-
-- [mimic-fn](https://github.com/sindresorhus/mimic-fn) - Make a function mimic another one
-- [clone-response](https://github.com/lukechilds/clone-response) - Clone a Node.js response stream
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)