Socket
Socket
Sign inDemoInstall

url2

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url2 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

17

package.json
{
"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) + " " +

@@ -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 @@ }

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