Beta 7 with some repo names changed.
This commit is contained in:
1 parent
0f7b40cca7
commit
963c19493a
3408 files changed
+462217
-15516
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
const url = require('url');
|
||||
const prependHttp = require('prepend-http');
|
||||
|
||||
module.exports = (input, options) => {
|
||||
if (typeof input !== 'string') {
|
||||
throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof input}\` instead.`);
|
||||
}
|
||||
|
||||
const finalUrl = prependHttp(input, Object.assign({https: true}, options));
|
||||
return url.parse(finalUrl);
|
||||
};
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"_from": "url-parse-lax@^3.0.0",
|
||||
"_id": "url-parse-lax@3.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=",
|
||||
"_location": "/url-parse-lax",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "url-parse-lax@^3.0.0",
|
||||
"name": "url-parse-lax",
|
||||
"escapedName": "url-parse-lax",
|
||||
"rawSpec": "^3.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^3.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/got"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz",
|
||||
"_shasum": "16b5cafc07dbe3676c1b1999177823d6503acb0c",
|
||||
"_spec": "url-parse-lax@^3.0.0",
|
||||
"_where": "C:\\Users\\Luis\\source\\repos\\AAMasters\\BackendServers\\node_modules\\got",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/url-parse-lax/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"prepend-http": "^2.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Lax url.parse() with support for protocol-less URLs & IPs",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/url-parse-lax#readme",
|
||||
"keywords": [
|
||||
"url",
|
||||
"uri",
|
||||
"parse",
|
||||
"parser",
|
||||
"loose",
|
||||
"lax",
|
||||
"protocol",
|
||||
"less",
|
||||
"protocol-less",
|
||||
"ip",
|
||||
"ipv4",
|
||||
"ipv6"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "url-parse-lax",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/url-parse-lax.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "3.0.0"
|
||||
}
|
||||
Reference in new issue
Block a user