Socket
Socket
Sign inDemoInstall

url

Package Overview
Dependencies
16
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.11.1 to 0.11.2

8

package.json
{
"name": "url",
"description": "The core `url` packaged standalone for use with Browserify.",
"version": "0.11.1",
"version": "0.11.2",
"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');

@@ -2031,2 +2032,11 @@ var url = require('../url');

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

@@ -2033,0 +2043,0 @@ * format: [to, from, result]

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

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

@@ -440,0 +444,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc