Skip to content

Commit 1778ed4

Browse files
committed
[Dev Deps] update @ljharb/eslint-config, object-inspect, tape
1 parent 20820fa commit 1778ed4

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"side-channel": "^1.0.4"
3434
},
3535
"devDependencies": {
36-
"@ljharb/eslint-config": "^21.0.0",
36+
"@ljharb/eslint-config": "^21.0.1",
3737
"aud": "^2.0.2",
3838
"browserify": "^16.5.2",
3939
"eclint": "^2.8.1",
@@ -46,11 +46,11 @@
4646
"mkdirp": "^0.5.5",
4747
"npmignore": "^0.3.0",
4848
"nyc": "^10.3.2",
49-
"object-inspect": "^1.12.2",
49+
"object-inspect": "^1.12.3",
5050
"qs-iconv": "^1.0.4",
5151
"safe-publish-latest": "^2.0.0",
5252
"safer-buffer": "^2.1.2",
53-
"tape": "^5.6.1"
53+
"tape": "^5.6.3"
5454
},
5555
"scripts": {
5656
"prepack": "npmignore --auto --commentLines=autogenerated",

test/stringify.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ test('stringify()', function (t) {
160160
s2t.end();
161161
});
162162

163+
st.test('array with multiple items with a comma inside', function (s2t) {
164+
s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c%2Cd,e');
165+
s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { arrayFormat: 'comma' }), 'a=c%25%2Cd%2Ce');
166+
167+
s2t.end();
168+
});
169+
163170
st.end();
164171
});
165172

0 commit comments

Comments
 (0)