fast-url-parser
Advanced tools
Comparing version 1.1.0-0 to 1.1.1
{ | ||
"name": "fast-url-parser", | ||
"description": "Extremely fast implementation of node core url library", | ||
"version": "1.1.0-0", | ||
"version": "1.1.1", | ||
"keywords": [ | ||
@@ -46,2 +46,2 @@ "fast", | ||
"main": "./src/urlparser.js" | ||
} | ||
} |
@@ -605,4 +605,8 @@ "use strict"; | ||
} | ||
else if (!(ch === 0x2D /*'-'*/ || ch === 0x5F /*'_'*/ || | ||
(0x30 /*'0'*/ <= ch && ch <= 0x39 /*'9'*/))) { | ||
//Valid characters other than ASCII letters -, _, +, 0-9 | ||
else if (!(ch === 0x2D /*'-'*/ || | ||
ch === 0x5F /*'_'*/ || | ||
ch === 0x2B /*'+'*/ || | ||
(0x30 /*'0'*/ <= ch && ch <= 0x39 /*'9'*/)) | ||
) { | ||
if (hostEndingCharacters[ch] === 0 && | ||
@@ -683,8 +687,8 @@ this._noPrependSlashHostEnders[ch] === 0) { | ||
Url.prototype._getComponentEscaped = | ||
function Url$_getComponentEscaped(str, start, end, isAfterHash) { | ||
function Url$_getComponentEscaped(str, start, end, isAfterQuery) { | ||
var cur = start; | ||
var i = start; | ||
var ret = ""; | ||
var autoEscapeMap = isAfterHash | ||
? this._afterHashAutoEscapeMap : this._autoEscapeMap; | ||
var autoEscapeMap = isAfterQuery | ||
? this._afterQueryAutoEscapeMap : this._autoEscapeMap; | ||
for (; i <= end; ++i) { | ||
@@ -769,3 +773,3 @@ var ch = str.charCodeAt(i); | ||
if (escape) { | ||
query = this._getComponentEscaped(str, queryStart, queryEnd, false); | ||
query = this._getComponentEscaped(str, queryStart, queryEnd, true); | ||
} | ||
@@ -988,3 +992,3 @@ else { | ||
} | ||
var afterHashAutoEscapeMap = autoEscapeMap.slice(); | ||
var afterQueryAutoEscapeMap = autoEscapeMap.slice(); | ||
autoEscapeMap[0x5C /*'\'*/] = "/"; | ||
@@ -1038,3 +1042,3 @@ | ||
Url.prototype._autoEscapeMap = autoEscapeMap; | ||
Url.prototype._afterHashAutoEscapeMap = afterHashAutoEscapeMap; | ||
Url.prototype._afterQueryAutoEscapeMap = afterQueryAutoEscapeMap; | ||
@@ -1041,0 +1045,0 @@ module.exports = Url; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
37061
914
0