You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

picoquery

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

picoquery - npm Package Compare versions

Comparing version

to
2.5.0

9

lib/parse.js

@@ -60,3 +60,2 @@ import { getDeepObject } from './object-util.js';

let keyIsDot = false;
let keyIsIndex = false;
let hasBothKeyValuePair = false;

@@ -83,3 +82,3 @@ let c = 0;

if (lastKey !== undefined) {
currentObj = getDeepObject(currentObj, lastKey, currentKey, isJsNestingSyntax && keyIsDot, isJsNestingSyntax && keyIsIndex);
currentObj = getDeepObject(currentObj, lastKey, currentKey, isJsNestingSyntax && keyIsDot, undefined);
}

@@ -129,3 +128,2 @@ }

keyIsDot = false;
keyIsIndex = false;
arrayRepeatBracketIndex = -1;

@@ -151,3 +149,3 @@ keySeparatorIndex = i;

if (lastKey !== undefined) {
currentObj = getDeepObject(currentObj, lastKey, currentKey, undefined, isJsNestingSyntax);
currentObj = getDeepObject(currentObj, lastKey, currentKey, undefined, undefined);
}

@@ -159,3 +157,2 @@ lastKey = currentKey;

keySeparatorIndex = i;
keyIsIndex = true;
keyIsDot = false;

@@ -180,3 +177,2 @@ }

keyIsDot = true;
keyIsIndex = false;
keySeparatorIndex = i;

@@ -200,3 +196,2 @@ }

keyIsDot = false;
keyIsIndex = true;
}

@@ -203,0 +198,0 @@ keySeparatorIndex = i;

{
"name": "picoquery",
"version": "2.4.1",
"version": "2.5.0",
"description": "A small library for parsing and serialisation query strings",

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

@@ -125,3 +125,3 @@ # picoquery

- `js` (e.g. `foo.bar[0]=baz`, i.e. arrays are indexed and properties are
dotted)
dotted or indexed)

@@ -128,0 +128,0 @@ ### `arrayRepeat`