Comparing version 0.11.1 to 0.11.2
{ | ||
"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 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
78011
2633
0
Updatedqs@^6.11.2