Socket
Socket
Sign inDemoInstall

url

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url - npm Package Compare versions

Comparing version 0.11.1 to 0.11.3

8

package.json
{
"name": "url",
"description": "The core `url` packaged standalone for use with Browserify.",
"version": "0.11.1",
"version": "0.11.3",
"author": "defunctzombie",
"dependencies": {
"punycode": "^1.4.1",
"qs": "^6.11.0"
"qs": "^6.11.2"
},

@@ -18,4 +18,4 @@ "main": "./url.js",

"@ljharb/eslint-config": "^21.1.0",
"acorn": "^8.8.2",
"aud": "^2.0.2",
"acorn": "^8.10.0",
"aud": "^2.0.3",
"eslint": "=8.8.0",

@@ -22,0 +22,0 @@ "mocha": "^3.5.3",

@@ -28,2 +28,3 @@ 'use strict';

var assert = require('assert');
var nodeURL = require('url');

@@ -1167,2 +1168,15 @@ var url = require('../url');

pathname: '/fooA100%mBr'
},
// colons in keys
'https://cdpn.io/test?custom%3Aid=12': {
href: 'https://cdpn.io/test?custom%3Aid=12',
protocol: 'https:',
hostname: 'cdpn.io',
hash: '',
search: '?custom%3Aid=12',
pathname: '/test',
query: {
'custom:id': '12'
}
}

@@ -2032,2 +2046,11 @@ };

test('format with querystring', function () {
var obj = { protocol: 'https:', host: 'google.com', pathname: 'test', query: { message: ['value1', 'value2'], 'custom:id': 12 } };
var actual = url.format(obj);
var expected = nodeURL.format(obj);
assert.equal(actual, expected, 'format(' + actual + ') == ' + expected + '\nactual:' + actual);
});
/*

@@ -2034,0 +2057,0 @@ * format: [to, from, result]

@@ -437,3 +437,6 @@ /*

if (this.query && typeof this.query === 'object' && Object.keys(this.query).length) {
query = querystring.stringify(this.query);
query = querystring.stringify(this.query, {
arrayFormat: 'repeat',
addQueryPrefix: false
});
}

@@ -440,0 +443,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