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.4.1

lib/decode-uri-component.d.ts

3

lib/object-util.js

@@ -42,2 +42,5 @@ import { defaultOptions } from './shared.js';

const value = obj[key];
if (value === undefined) {
continue;
}
let path;

@@ -44,0 +47,0 @@ if (parentKey) {

6

lib/parse.js
import { getDeepObject } from './object-util.js';
import { defaultOptions } from './shared.js';
import fastDecode from 'fast-decode-uri-component';
import { decodeURIComponent } from './decode-uri-component.js';
export const numberKeyDeserializer = (key) => {

@@ -27,3 +27,3 @@ const asNumber = Number(key);

if (shouldDecodeKey) {
chunk = fastDecode(chunk) || chunk;
chunk = decodeURIComponent(chunk) || chunk;
}

@@ -94,3 +94,3 @@ return chunk;

if (shouldDecodeValue) {
value = fastDecode(value) || value;
value = decodeURIComponent(value) || value;
}

@@ -97,0 +97,0 @@ }

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

@@ -12,3 +12,3 @@ "main": "lib/main.js",

"scripts": {
"build:clean": "rimraf lib",
"build:clean": "premove lib",
"build": "npm run build:clean && tsc",

@@ -46,12 +46,9 @@ "test": "npm run build && c8 node --test",

"fast-querystring": "^1.1.2",
"premove": "^4.0.0",
"prettier": "^3.2.5",
"qs": "^6.12.1",
"rimraf": "^5.0.7",
"tinybench": "^2.8.0",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.1"
},
"dependencies": {
"fast-decode-uri-component": "^1.0.1"
}
}