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

url-parse

Package Overview
Dependencies
Maintainers
4
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-parse - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

7

index.js

@@ -134,3 +134,3 @@ 'use strict';

//
extracted = extractProtocol(address);
extracted = extractProtocol(address || '');
relative = !extracted.protocol && !extracted.slashes;

@@ -244,4 +244,4 @@ url.slashes = extracted.slashes || relative && location.slashes;

var url = this;
switch(part) {
switch (part) {
case 'query':

@@ -299,3 +299,2 @@ if ('string' === typeof value && value.length) {

url[part] = value;
break;
}

@@ -302,0 +301,0 @@

{
"name": "url-parse",
"version": "1.1.4",
"version": "1.1.5",
"description": "Small footprint URL parser that works seamlessly across Node.js and browser environments",

@@ -40,3 +40,3 @@ "main": "index.js",

"istanbul": "0.4.x",
"mocha": "3.0.x",
"mocha": "3.1.x",
"pre-commit": "1.1.x",

@@ -43,0 +43,0 @@ "zuul": "3.11.x"

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