Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tiny-parse

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-parse - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

7

lib/parse.js

@@ -20,6 +20,8 @@ "use strict";

each(items, prop => {
const aitem = prop.replace(/\+/g, " ").split("="),
const aitem = prop.split("="),
item = aitem.length > 2 ? [aitem.shift(), aitem.join("=")] : aitem;
if (!isEmpty(item[0])) {
item[0] = decodeURIComponent(item[0]);
if (item[1] === undefined) {

@@ -34,4 +36,3 @@ item[1] = "";

} else if (result[item[0]] instanceof Array === false) {
result[item[0]] = [result[item[0]]];
result[item[0]].push(item[1]);
result[item[0]] = [result[item[0]], item[1]];
} else {

@@ -38,0 +39,0 @@ result[item[0]].push(item[1]);

{
"name": "tiny-parse",
"version": "2.1.3",
"version": "2.1.4",
"description": "URL parsing with coercion of `query`",

@@ -5,0 +5,0 @@ "main": "index.js",

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