Updated npm nonsense for ubuntu 20.04

This commit is contained in:
Pedro Pinto committed 2020-05-23 10:14:15 -04:00
1 parent 8dfc6caa7e
commit e443009f8c
28162 files changed
+978683 -2336900

No files matched your search

-2
View File
@@ -1,7 +1,5 @@
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
+8 -25
View File
@@ -1,31 +1,14 @@
var http = require('http')
var url = require('url')
var http = require('http');
var https = module.exports
var https = module.exports;
for (var key in http) {
if (http.hasOwnProperty(key)) https[key] = http[key]
}
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
if (!params) params = {};
params.scheme = 'https';
params.protocol = 'https:';
return http.request.call(this, params, cb);
}
+21 -59
View File
@@ -1,92 +1,54 @@
{
"_args": [
[
"https-browserify@^1.0.0",
"/home/ppinto/temp/spark/src/web/ui/node_modules/node-libs-browser"
"https-browserify@0.0.1",
"/home/ppinto/Dropbox/bts/spark/src/web/ui"
]
],
"_from": "https-browserify@>=1.0.0 <2.0.0",
"_id": "https-browserify@1.0.0",
"_inCache": true,
"_installable": true,
"_development": true,
"_from": "https-browserify@0.0.1",
"_id": "https-browserify@0.0.1",
"_inBundle": false,
"_integrity": "sha1-P5E2XKvmC3ftDruiS0VOPgnZWoI=",
"_location": "/https-browserify",
"_nodeVersion": "7.8.0",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/https-browserify-1.0.0.tgz_1491348915811_0.5395281950477511"
},
"_npmUser": {
"email": "feross@feross.org",
"name": "feross"
},
"_npmVersion": "4.4.4",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "https-browserify@0.0.1",
"name": "https-browserify",
"raw": "https-browserify@^1.0.0",
"rawSpec": "^1.0.0",
"scope": null,
"spec": ">=1.0.0 <2.0.0",
"type": "range"
"escapedName": "https-browserify",
"rawSpec": "0.0.1",
"saveSpec": null,
"fetchSpec": "0.0.1"
},
"_requiredBy": [
"/node-libs-browser"
],
"_resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz",
"_shasum": "ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73",
"_shrinkwrap": null,
"_spec": "https-browserify@^1.0.0",
"_where": "/home/ppinto/temp/spark/src/web/ui/node_modules/node-libs-browser",
"_resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz",
"_spec": "0.0.1",
"_where": "/home/ppinto/Dropbox/bts/spark/src/web/ui",
"author": {
"email": "mail@substack.net",
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"bugs": {
"url": "https://github.com/substack/https-browserify/issues"
},
"dependencies": {},
"description": "https module compatability for browserify",
"devDependencies": {
"standard": "^9.0.2"
},
"directories": {},
"dist": {
"shasum": "ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73",
"tarball": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz"
},
"gitHead": "98a1310b385d24dd8cf1a67aa258e91ec03743e4",
"homepage": "https://github.com/substack/https-browserify",
"keywords": [
"https",
"browser",
"browserify",
"https"
"browserify"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "feross",
"email": "feross@feross.org"
},
{
"name": "ptarjan",
"email": "npm@paulisageek.com"
},
{
"name": "substack",
"email": "substack@gmail.com"
}
],
"name": "https-browserify",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git://github.com/substack/https-browserify.git"
},
"scripts": {
"test": "standard"
},
"version": "1.0.0"
"version": "0.0.1"
}
+4 -4
View File
@@ -5,11 +5,11 @@ https module compatability for browserify
# example
``` js
var https = require('https-browserify')
var r = https.request('https://github.com')
var https = require('https-browserify');
var r = https.request('https://github.com');
r.on('request', function (res) {
console.log(res)
})
console.log(res);
});
```
# methods