You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

query-string

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

query-string - npm Package Compare versions

Comparing version

to
6.4.2

3

index.js
'use strict';
const strictUriEncode = require('strict-uri-encode');
const decodeComponent = require('decode-uri-component');
const splitOnFirst = require('split-on-first');

@@ -185,3 +186,3 @@ function encoderForArrayFormat(options) {

for (const param of input.split('&')) {
let [key, value] = param.replace(/\+/g, ' ').split('=');
let [key, value] = splitOnFirst(param.replace(/\+/g, ' '), '=');

@@ -188,0 +189,0 @@ // Missing `=` should be `null`:

{
"name": "query-string",
"version": "6.4.0",
"version": "6.4.2",
"description": "Parse and stringify URL query strings",

@@ -38,2 +38,3 @@ "license": "MIT",

"dependencies": {
"split-on-first": "^1.0.0",
"decode-uri-component": "^0.2.0",

@@ -40,0 +41,0 @@ "strict-uri-encode": "^2.0.0"