Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qs

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qs - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

.eslintignore

15

CHANGELOG.md
## [**3.1.0**](https://github.com/hapijs/qs/issues?milestone=24&state=open)
- [**#89**](https://github.com/hapijs/qs/issues/89) Add option to disable "Transform dot notation to bracket notation"
## [**3.0.0**](https://github.com/hapijs/qs/issues?milestone=23&state=closed)
- [**#77**](https://github.com/hapijs/qs/issues/77) Perf boost
- [**#60**](https://github.com/hapijs/qs/issues/60) Add explicit option to disable array parsing
- [**#80**](https://github.com/hapijs/qs/issues/80) qs.parse silently drops properties
- [**#74**](https://github.com/hapijs/qs/issues/74) Bad parse when turning array into object
- [**#81**](https://github.com/hapijs/qs/issues/81) Add a `filter` option
- [**#68**](https://github.com/hapijs/qs/issues/68) Fixed issue with recursion and passing strings into objects.
- [**#66**](https://github.com/hapijs/qs/issues/66) Add mixed array and object dot notation support Closes: #47
- [**#76**](https://github.com/hapijs/qs/issues/76) RFC 3986
- [**#85**](https://github.com/hapijs/qs/issues/85) No equal sign
- [**#84**](https://github.com/hapijs/qs/issues/84) update license attribute
## [**2.4.1**](https://github.com/hapijs/qs/issues?milestone=20&state=closed)

@@ -3,0 +18,0 @@ - [**#73**](https://github.com/hapijs/qs/issues/73) Property 'hasOwnProperty' of object #<Object> is not a function

5

lib/parse.js

@@ -95,3 +95,5 @@ // Load modules

key = key.replace(/\.([^\.\[]+)/g, '[$1]');
if (options.allowDots) {
key = key.replace(/\.([^\.\[]+)/g, '[$1]');
}

@@ -147,2 +149,3 @@ // The regex chunks

options.parseArrays = options.parseArrays !== false;
options.allowDots = options.allowDots !== false;
options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : internals.parameterLimit;

@@ -149,0 +152,0 @@ options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : internals.strictNullHandling;

2

package.json
{
"name": "qs",
"version": "3.0.0",
"version": "3.1.0",
"description": "A querystring parser that supports nesting and arrays, with a depth limit",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/hapijs/qs",

@@ -50,2 +50,9 @@ /* eslint no-extend-native:0 */

it('allows disabling dot notation', function (done) {
expect(Qs.parse('a.b=c')).to.deep.equal({ a: { b: 'c' } }, { prototype: false });
expect(Qs.parse('a.b=c', { allowDots: false })).to.deep.equal({ 'a.b': 'c' }, { prototype: false });
done();
});
it('parses a single nested string', function (done) {

@@ -52,0 +59,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