Socket
Socket
Sign inDemoInstall

fast-url-parser

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.1.3

2

package.json
{
"name": "fast-url-parser",
"description": "Extremely fast implementation of node core url library",
"version": "1.1.2",
"version": "1.1.3",
"keywords": [

@@ -6,0 +6,0 @@ "fast",

@@ -465,2 +465,3 @@ "use strict";

var hadChars = false;
var validPort = true;

@@ -474,6 +475,15 @@ for (var i = start; i <= end; ++i) {

}
else break;
else {
validPort = false;
if (ch === 0x5C/*'\'*/ || ch === 0x2F/*'/'*/) {
validPort = true;
}
break;
}
}
if (port === 0 && !hadChars) {
if ((port === 0 && !hadChars) || !validPort) {
if (!validPort) {
this._port = -2;
}
return 0;

@@ -714,2 +724,3 @@ }

var autoEscapeCharacters = this._autoEscapeCharacters;
var prePath = this._port === -2 ? "/:" : "";

@@ -734,3 +745,3 @@ for (var i = start; i <= end; ++i) {

if (pathStart > pathEnd) {
this.pathname = "/";
this.pathname = prePath === "" ? "/" : prePath;
return;

@@ -746,3 +757,5 @@ }

}
this.pathname = this._prependSlash ? "/" + path : path;
this.pathname = prePath === ""
? (this._prependSlash ? "/" + path : path)
: prePath + path;
};

@@ -749,0 +762,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc