Comparing version
@@ -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) { |
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" | ||
} | ||
} |
36617
10.66%0
-100%17
13.33%598
19.36%- Removed
- Removed