From 1778ed42c3f0e6c5c3891f95d3ddd001c1982ce7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 2 Mar 2023 15:51:03 -0800 Subject: [PATCH] [Dev Deps] update `@ljharb/eslint-config`, `object-inspect`, `tape` --- package.json | 6 +++--- test/stringify.js | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a4c4e219..c4174a8b 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "side-channel": "^1.0.4" }, "devDependencies": { - "@ljharb/eslint-config": "^21.0.0", + "@ljharb/eslint-config": "^21.0.1", "aud": "^2.0.2", "browserify": "^16.5.2", "eclint": "^2.8.1", @@ -46,11 +46,11 @@ "mkdirp": "^0.5.5", "npmignore": "^0.3.0", "nyc": "^10.3.2", - "object-inspect": "^1.12.2", + "object-inspect": "^1.12.3", "qs-iconv": "^1.0.4", "safe-publish-latest": "^2.0.0", "safer-buffer": "^2.1.2", - "tape": "^5.6.1" + "tape": "^5.6.3" }, "scripts": { "prepack": "npmignore --auto --commentLines=autogenerated", diff --git a/test/stringify.js b/test/stringify.js index f0cdfefa..dc4a5830 100644 --- a/test/stringify.js +++ b/test/stringify.js @@ -160,6 +160,13 @@ test('stringify()', function (t) { s2t.end(); }); + st.test('array with multiple items with a comma inside', function (s2t) { + s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { encodeValuesOnly: true, arrayFormat: 'comma' }), 'a=c%2Cd,e'); + s2t.equal(qs.stringify({ a: ['c,d', 'e'] }, { arrayFormat: 'comma' }), 'a=c%25%2Cd%2Ce'); + + s2t.end(); + }); + st.end(); });