Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "url2", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Node's URL module plus relative pathing", | ||
@@ -19,13 +19,14 @@ "author": "Kris Kowal <kris@cixar.com> (https://github.com/kriskowal/url2)", | ||
}, | ||
"dependencies": { | ||
"url": "^0.7.9" | ||
}, | ||
"devDependencies": { | ||
"jshint": "~2.1", | ||
"jasmine-node": "~1.2", | ||
"cover": "~0.2.8", | ||
"opener": "~1.3" | ||
"jshint": "^2.1", | ||
"jasminum": "^0.0.3" | ||
}, | ||
"scripts": { | ||
"test": "jasmine-node test", | ||
"lint": "jshint url2.js", | ||
"cover": "cover run node_modules/jasmine-node/bin/jasmine-node test && cover report html && opener cover_html/index.html" | ||
"test": "jasminum test && npm run lint", | ||
"cover": "echo TODO", | ||
"lint": "jshint url2.js" | ||
} | ||
} |
@@ -100,2 +100,14 @@ | ||
relative: "?a=10#foo" | ||
}, | ||
{ | ||
source: "file:///test.js", | ||
target: "file:///test.js", | ||
relative: "test.js" | ||
}, | ||
{ | ||
source: "file:///test.js", | ||
target: "file:///test/test.js", | ||
relative: "test/test.js" | ||
} | ||
@@ -108,3 +120,3 @@ | ||
tests.forEach(function (test) { | ||
it( | ||
(test.focus ? iit : it)( | ||
test.label || ( | ||
@@ -111,0 +123,0 @@ "from " + JSON.stringify(test.source) + " " + |
10
url2.js
@@ -76,3 +76,3 @@ var URL = require("url"); | ||
if (object.path != null) { | ||
if (object.path !== null && object.path !== void 0) { | ||
var index = object.path.indexOf("?"); | ||
@@ -111,8 +111,3 @@ if (index == -1) { | ||
if ( | ||
!!target.root == !!source.root && !( | ||
target.root && | ||
target.directories[0] != source.directories[0] | ||
) | ||
) { | ||
if (Boolean(target.root) === Boolean(source.root)) { | ||
delete target.path; | ||
@@ -148,3 +143,2 @@ delete target.root; | ||
} | ||
} | ||
@@ -151,0 +145,0 @@ } |
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
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
9908
2
243
1
+ Addedurl@^0.7.9
+ Addedpunycode@1.0.0(transitive)
+ Addedquerystring@0.1.0(transitive)
+ Addedurl@0.7.9(transitive)