updated npm modules
This commit is contained in:
20
node_modules/url-parse/dist/url-parse.js
generated
vendored
20
node_modules/url-parse/dist/url-parse.js
generated
vendored
@@ -4,8 +4,20 @@
|
||||
|
||||
var required = require('requires-port')
|
||||
, qs = require('querystringify')
|
||||
, slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//
|
||||
, protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i
|
||||
, slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//;
|
||||
, whitespace = '[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]'
|
||||
, left = new RegExp('^'+ whitespace +'+');
|
||||
|
||||
/**
|
||||
* Trim a given string.
|
||||
*
|
||||
* @param {String} str String to trim.
|
||||
* @public
|
||||
*/
|
||||
function trimLeft(str) {
|
||||
return (str ? str : '').toString().replace(left, '');
|
||||
}
|
||||
|
||||
/**
|
||||
* These are the parse rules for the URL parser, it informs the parser
|
||||
@@ -104,6 +116,7 @@ function lolcation(loc) {
|
||||
* @private
|
||||
*/
|
||||
function extractProtocol(address) {
|
||||
address = trimLeft(address);
|
||||
var match = protocolre.exec(address);
|
||||
|
||||
return {
|
||||
@@ -122,6 +135,8 @@ function extractProtocol(address) {
|
||||
* @private
|
||||
*/
|
||||
function resolve(relative, base) {
|
||||
if (relative === '') return base;
|
||||
|
||||
var path = (base || '/').split('/').slice(0, -1).concat(relative.split('/'))
|
||||
, i = path.length
|
||||
, last = path[i - 1]
|
||||
@@ -162,6 +177,8 @@ function resolve(relative, base) {
|
||||
* @private
|
||||
*/
|
||||
function Url(address, location, parser) {
|
||||
address = trimLeft(address);
|
||||
|
||||
if (!(this instanceof Url)) {
|
||||
return new Url(address, location, parser);
|
||||
}
|
||||
@@ -429,6 +446,7 @@ Url.prototype = { set: set, toString: toString };
|
||||
//
|
||||
Url.extractProtocol = extractProtocol;
|
||||
Url.location = lolcation;
|
||||
Url.trimLeft = trimLeft;
|
||||
Url.qs = qs;
|
||||
|
||||
module.exports = Url;
|
||||
|
||||
2
node_modules/url-parse/dist/url-parse.min.js
generated
vendored
2
node_modules/url-parse/dist/url-parse.min.js
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/url-parse/dist/url-parse.min.js.map
generated
vendored
2
node_modules/url-parse/dist/url-parse.min.js.map
generated
vendored
File diff suppressed because one or more lines are too long
20
node_modules/url-parse/index.js
generated
vendored
20
node_modules/url-parse/index.js
generated
vendored
@@ -2,8 +2,20 @@
|
||||
|
||||
var required = require('requires-port')
|
||||
, qs = require('querystringify')
|
||||
, slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//
|
||||
, protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i
|
||||
, slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//;
|
||||
, whitespace = '[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]'
|
||||
, left = new RegExp('^'+ whitespace +'+');
|
||||
|
||||
/**
|
||||
* Trim a given string.
|
||||
*
|
||||
* @param {String} str String to trim.
|
||||
* @public
|
||||
*/
|
||||
function trimLeft(str) {
|
||||
return (str ? str : '').toString().replace(left, '');
|
||||
}
|
||||
|
||||
/**
|
||||
* These are the parse rules for the URL parser, it informs the parser
|
||||
@@ -102,6 +114,7 @@ function lolcation(loc) {
|
||||
* @private
|
||||
*/
|
||||
function extractProtocol(address) {
|
||||
address = trimLeft(address);
|
||||
var match = protocolre.exec(address);
|
||||
|
||||
return {
|
||||
@@ -120,6 +133,8 @@ function extractProtocol(address) {
|
||||
* @private
|
||||
*/
|
||||
function resolve(relative, base) {
|
||||
if (relative === '') return base;
|
||||
|
||||
var path = (base || '/').split('/').slice(0, -1).concat(relative.split('/'))
|
||||
, i = path.length
|
||||
, last = path[i - 1]
|
||||
@@ -160,6 +175,8 @@ function resolve(relative, base) {
|
||||
* @private
|
||||
*/
|
||||
function Url(address, location, parser) {
|
||||
address = trimLeft(address);
|
||||
|
||||
if (!(this instanceof Url)) {
|
||||
return new Url(address, location, parser);
|
||||
}
|
||||
@@ -427,6 +444,7 @@ Url.prototype = { set: set, toString: toString };
|
||||
//
|
||||
Url.extractProtocol = extractProtocol;
|
||||
Url.location = lolcation;
|
||||
Url.trimLeft = trimLeft;
|
||||
Url.qs = qs;
|
||||
|
||||
module.exports = Url;
|
||||
|
||||
24
node_modules/url-parse/package.json
generated
vendored
24
node_modules/url-parse/package.json
generated
vendored
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"_from": "url-parse@^1.4.3",
|
||||
"_id": "url-parse@1.4.4",
|
||||
"_id": "url-parse@1.4.7",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-/92DTTorg4JjktLNLe6GPS2/RvAd/RGr6LuktmWSMLEOa6rjnlrFXNgSbSmkNvCoL2T028A0a1JaJLzRMlFoHg==",
|
||||
"_integrity": "sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==",
|
||||
"_location": "/url-parse",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
@@ -19,8 +19,8 @@
|
||||
"/original",
|
||||
"/sockjs-client"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.4.tgz",
|
||||
"_shasum": "cac1556e95faa0303691fec5cf9d5a1bc34648f8",
|
||||
"_resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.7.tgz",
|
||||
"_shasum": "a8a83535e8c00a316e403a5db4ac1b9b853ae278",
|
||||
"_spec": "url-parse@^1.4.3",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\sockjs-client",
|
||||
"author": {
|
||||
@@ -31,20 +31,20 @@
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"querystringify": "^2.0.0",
|
||||
"querystringify": "^2.1.1",
|
||||
"requires-port": "^1.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Small footprint URL parser that works seamlessly across Node.js and browser environments",
|
||||
"devDependencies": {
|
||||
"assume": "^1.5.2",
|
||||
"browserify": "^16.2.0",
|
||||
"mocha": "^5.1.1",
|
||||
"nyc": "^12.0.1",
|
||||
"pre-commit": "^1.2.0",
|
||||
"assume": "^2.2.0",
|
||||
"browserify": "^16.2.3",
|
||||
"mocha": "^6.1.4",
|
||||
"nyc": "^14.0.0",
|
||||
"pre-commit": "^1.2.2",
|
||||
"sauce-browsers": "^2.0.0",
|
||||
"sauce-test": "^1.3.3",
|
||||
"uglify-js": "^3.3.21"
|
||||
"uglify-js": "^3.5.7"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
@@ -77,5 +77,5 @@
|
||||
"test-browser": "node test/browser.js",
|
||||
"watch": "mocha --watch test/test.js"
|
||||
},
|
||||
"version": "1.4.4"
|
||||
"version": "1.4.7"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user