You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

qs

Package Overview
Dependencies
Maintainers
2
Versions
146
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
6.11.3
to
6.11.4
+4
-0
CHANGELOG.md

@@ -0,1 +1,5 @@

## **6.11.4**
- [Fix] fix regressions from robustness refactor
- [actions] update reusable workflows
## **6.11.3**

@@ -2,0 +6,0 @@ - [Robustness] avoid `.push`, use `void`

+1
-1

@@ -199,3 +199,3 @@ 'use strict';

if (segment) {
keys[keys.length] = '[' + key.slice(segment.index + ']');
keys[keys.length] = '[' + key.slice(segment.index) + ']';
}

@@ -202,0 +202,0 @@

@@ -11,3 +11,3 @@ 'use strict';

for (var i = 0; i < 256; ++i) {
array[array.length] = '%' + ((i < 16 ? '0' : '' + i.toString(16)).toUpperCase());
array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
}

@@ -14,0 +14,0 @@

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/ljharb/qs",
"version": "6.11.3",
"version": "6.11.4",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -92,2 +92,11 @@ 'use strict';

t.test('correctly computes the remainder when depth is exceeded', function (st) {
st.deepEqual(
qs.parse('a[b][c][d][e]=f', { depth: 2 }),
{ a: { b: { c: { '[d][e]': 'f' } } } },
'the remainder is "[d][e]", not the full original key'
);
st.end();
});
t.test('uses original key when depth = 0', function (st) {

@@ -94,0 +103,0 @@ st.deepEqual(qs.parse('a[0]=b&a[1]=c', { depth: 0 }), { 'a[0]': 'b', 'a[1]': 'c' });

@@ -25,2 +25,8 @@ 'use strict';

t.test('correctly encodes low-byte characters', function (st) {
st.equal(qs.stringify({ a: String.fromCharCode(1) }), 'a=%01', 'encodes 0x01');
st.equal(qs.stringify({ a: String.fromCharCode(15) }), 'a=%0F', 'encodes 0x0F');
st.end();
});
t.test('stringifies falsy values', function (st) {

@@ -27,0 +33,0 @@ st.equal(qs.stringify(undefined), '');

Sorry, the diff of this file is too big to display