From 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Wed, 18 Nov 2020 23:26:45 +0100 Subject: rm node_modules --- node_modules/https-browserify/LICENSE | 20 ---------- node_modules/https-browserify/index.js | 31 --------------- node_modules/https-browserify/package.json | 56 --------------------------- node_modules/https-browserify/readme.markdown | 22 ----------- 4 files changed, 129 deletions(-) delete mode 100644 node_modules/https-browserify/LICENSE delete mode 100644 node_modules/https-browserify/index.js delete mode 100644 node_modules/https-browserify/package.json delete mode 100644 node_modules/https-browserify/readme.markdown (limited to 'node_modules/https-browserify') diff --git a/node_modules/https-browserify/LICENSE b/node_modules/https-browserify/LICENSE deleted file mode 100644 index e45bc69..0000000 --- a/node_modules/https-browserify/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -This software is released under the MIT license: - -Copyright (c) James Halliday - -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/https-browserify/index.js b/node_modules/https-browserify/index.js deleted file mode 100644 index cd20302..0000000 --- a/node_modules/https-browserify/index.js +++ /dev/null @@ -1,31 +0,0 @@ -var http = require('http') -var url = require('url') - -var https = module.exports - -for (var key in http) { - if (http.hasOwnProperty(key)) https[key] = http[key] -} - -https.request = function (params, cb) { - params = validateParams(params) - return http.request.call(this, params, cb) -} - -https.get = function (params, cb) { - params = validateParams(params) - return http.get.call(this, params, cb) -} - -function validateParams (params) { - if (typeof params === 'string') { - params = url.parse(params) - } - if (!params.protocol) { - params.protocol = 'https:' - } - if (params.protocol !== 'https:') { - throw new Error('Protocol "' + params.protocol + '" not supported. Expected "https:"') - } - return params -} diff --git a/node_modules/https-browserify/package.json b/node_modules/https-browserify/package.json deleted file mode 100644 index 90bc82c..0000000 --- a/node_modules/https-browserify/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "_from": "https-browserify@^1.0.0", - "_id": "https-browserify@1.0.0", - "_inBundle": false, - "_integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "_location": "/https-browserify", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "https-browserify@^1.0.0", - "name": "https-browserify", - "escapedName": "https-browserify", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/node-libs-browser" - ], - "_resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "_shasum": "ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73", - "_spec": "https-browserify@^1.0.0", - "_where": "/home/pruss/Dev/3-minute-website/node_modules/node-libs-browser", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "bugs": { - "url": "https://github.com/substack/https-browserify/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "https module compatability for browserify", - "devDependencies": { - "standard": "^9.0.2" - }, - "homepage": "https://github.com/substack/https-browserify", - "keywords": [ - "browser", - "browserify", - "https" - ], - "license": "MIT", - "main": "index.js", - "name": "https-browserify", - "repository": { - "type": "git", - "url": "git://github.com/substack/https-browserify.git" - }, - "scripts": { - "test": "standard" - }, - "version": "1.0.0" -} diff --git a/node_modules/https-browserify/readme.markdown b/node_modules/https-browserify/readme.markdown deleted file mode 100644 index df04052..0000000 --- a/node_modules/https-browserify/readme.markdown +++ /dev/null @@ -1,22 +0,0 @@ -# https-browserify - -https module compatability for browserify - -# example - -``` js -var https = require('https-browserify') -var r = https.request('https://github.com') -r.on('request', function (res) { - console.log(res) -}) -``` - -# methods - -The API is the same as the client portion of the -[node core https module](http://nodejs.org/docs/latest/api/https.html). - -# license - -MIT -- cgit v1.2.3