Skip to content
Myr

deps: qs@4.0.0

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 3314f76 · Browse files · 5 files+57 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+57 added−4 removed

  • tests:+25 added−0 removed
  • other:+32 added−4 removed

5 files+57 added−4 removed

modified:lib/middleware/query.js+13 added-2 removed
modified:lib/utils.js+15 added-1 removed
207 unmodified lines
208 case false:209 fn = newObject;210 break;211 case 'extended':212 fn = qs.parse;212 fn = parseExtendedQueryString;213 break;214 case 'simple':215 fn = querystring.parse;216 break;
57 unmodified lines
274 return contentType.format(parsed);275};276277/**278 * Parse an extended query string with qs.279 *280 * @return {Object}281 * @private282 */283284function parseExtendedQueryString(str) {285 return qs.parse(str, {286 allowDots: false,287 allowPrototypes: true288 });289}290291/**292 * Return new empty object.293 *294 * @return {Object}295 * @api private
5 unmodified lines
modified:test/req.query.js+25 added
modified:History.md+3 added
1 unmodified line
2==========34 * deps: accepts@~1.2.105 - deps: mime-types@~2.1.26 * deps: qs@4.0.07 - Fix dropping parameters like `hasOwnProperty`8 - Fix various parsing edge cases9 * deps: type-is@~1.6.410 - deps: mime-types@~2.1.211 - perf: enable strict mode12 - perf: remove argument reassignment
2979 unmodified lines
modified:package.json+1 added-1 removed
43 unmodified lines
44 "on-finished": "~2.3.0",45 "parseurl": "~1.3.0",46 "path-to-regexp": "0.1.6",47 "proxy-addr": "~1.0.8",48 "qs": "2.4.2",48 "qs": "4.0.0",49 "range-parser": "~1.0.2",50 "send": "0.13.0",51 "serve-static": "~1.10.0",52 "type-is": "~1.6.4",
39 unmodified lines