Socket
Socket
Sign inDemoInstall

query-string

Package Overview
Dependencies
3
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.3 to 8.1.0

14

base.js

@@ -356,4 +356,10 @@ import decodeComponent from 'decode-uri-component';

let [key, value] = splitOnFirst(options.decode ? parameter.replace(/\+/g, ' ') : parameter, '=');
const parameter_ = options.decode ? parameter.replace(/\+/g, ' ') : parameter;
let [key, value] = splitOnFirst(parameter_, '=');
if (key === undefined) {
key = parameter_;
}
// Missing `=` should be `null`:

@@ -458,4 +464,8 @@ // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters

const [url_, hash] = splitOnFirst(url, '#');
let [url_, hash] = splitOnFirst(url, '#');
if (url_ === undefined) {
url_ = url;
}
return {

@@ -462,0 +472,0 @@ url: url_?.split('?')?.[0] ?? '',

6

package.json
{
"name": "query-string",
"version": "8.0.3",
"version": "8.1.0",
"description": "Parse and stringify URL query strings",

@@ -48,5 +48,5 @@ "license": "MIT",

"dependencies": {
"decode-uri-component": "^0.2.2",
"decode-uri-component": "^0.4.1",
"filter-obj": "^5.1.0",
"split-on-first": "^1.0.0"
"split-on-first": "^3.0.0"
},

@@ -53,0 +53,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc