Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-url-parser

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-url-parser - npm Package Compare versions

Comparing version 1.1.0-0 to 1.1.1

4

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc