Socket
Socket
Sign inDemoInstall

query-string

Package Overview
Dependencies
Maintainers
1
Versions
81
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 5.0.0 to 5.0.1

8

index.js

@@ -117,3 +117,7 @@ 'use strict';

exports.extract = function (str) {
return str.split('?')[1] || '';
var queryStart = str.indexOf('?');
if (queryStart === -1) {
return '';
}
return str.slice(queryStart + 1);
};

@@ -134,3 +138,3 @@

str = str.trim().replace(/^(\?|#|&)/, '');
str = str.trim().replace(/^[?#&]/, '');

@@ -137,0 +141,0 @@ if (!str) {

{
"name": "query-string",
"version": "5.0.0",
"version": "5.0.1",
"description": "Parse and stringify URL query strings",

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc