Comparing version 1.0.0 to 1.0.1
@@ -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; |
{ | ||
"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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
30624
9
593
1