Socket
Socket
Sign inDemoInstall

query-string-manipulator

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

8

lib/index.js

@@ -75,3 +75,5 @@ "use strict";

function mapInputToParams(params) {
return Object.keys(params).reduce(function (aggr, key) {
return Object.keys(params).filter(function (key) {
return params[key] !== undefined;
}).reduce(function (aggr, key) {
if (params[key] instanceof Array) {

@@ -152,5 +154,3 @@ return aggr.concat(params[key].map(function (value) {

function constructUrlParams(params) {
return params.filter(function (param) {
return param.value !== undefined;
}).map(function (param) {
return params.map(function (param) {
return param.value === null ? "".concat(encodeURI(param.key)) : "".concat(encodeURI(param.key), "=").concat(encodeURI(param.value));

@@ -157,0 +157,0 @@ }).join('&');

{
"name": "query-string-manipulator",
"version": "1.1.1",
"version": "1.1.2",
"description": "Manipulate query strings without effort",

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

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