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

url-parse

Package Overview
Dependencies
Maintainers
3
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.0.0 to 1.0.1

LICENSE

6

index.js

@@ -200,3 +200,7 @@ 'use strict';

if (url.username) result += url.username +':'+ url.password +'@';
if (url.username) {
result += url.username;
if (url.password) result += ':'+ url.password;
result += '@';
}

@@ -203,0 +207,0 @@ result += url.hostname;

16

package.json
{
"name": "url-parse",
"version": "1.0.0",
"version": "1.0.1",
"description": "Parse URL in node using the URL module and in the browser using the DOM",
"main": "index.js",
"scripts": {
"test": "mocha --reporter spec --ui bdd ./test.js",
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- --reporter spec --ui bdd ./test.js",
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --ui bdd ./test.js",
"100%": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100",
"test": "mocha test.js",
"watch": "mocha --watch test.js",
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- test.js",
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js",
"browserify": "mkdir -p dist && browserify index.js -o dist/url-parse.js --standalone URLParse",

@@ -28,8 +30,8 @@ "phantomjs": "mochify --reporter spec --ui bdd ./test.js",

"devDependencies": {
"assume": "1.0.x",
"assume": "1.1.x",
"browserify": "8.1.x",
"istanbul": "0.3.x",
"mocha": "2.1.x",
"mochify": "2.1.x",
"pre-commit": "0.0.x",
"mochify": "2.4.x",
"pre-commit": "1.0.x",
"testling": "1.7.x"

@@ -36,0 +38,0 @@ },

@@ -200,2 +200,3 @@ describe('url-parse', function () {

assume(parsed.hostname).equals('www.example.com');
assume(parsed.href).equals(url);
});

@@ -202,0 +203,0 @@ });

Sorry, the diff of this file is not supported yet

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