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

@bitovi/querystring-parser

Package Overview
Dependencies
Maintainers
12
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitovi/querystring-parser - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

1

lib/helpers/determine-filter-style.js

@@ -7,2 +7,3 @@ const FilterStyle = require("../enums/filter-style");

function determineFilterStyle(querystring) {
querystring = decodeURI(querystring);
if (isString(querystring) && querystring.length) {

@@ -9,0 +10,0 @@ const isMongoDB = querystring.includes("filter[");

2

package.json
{
"name": "@bitovi/querystring-parser",
"version": "0.5.1",
"version": "0.5.2",
"description": "",

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

@@ -31,2 +31,8 @@ /* eslint-disable jest/expect-expect */

test("should handle still-encoded querystrings just fine", () => {
const querystring =
"filter%5Bproject_id%5D%5B%24eq%5D=b730e204-1218-4e9d-aa15-773c892baefb";
expect(determineFilterStyle(querystring)).toBe(FilterStyle.MONGO_DB);
});
test("should throw error if multiple styles are detected", () => {

@@ -33,0 +39,0 @@ expect(() => {

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