Skip to content

Commit 070c7c3

Browse files
committed
Merge branch 'hotfix/2.1.13'
2 parents 46cfd32 + f4cad6b commit 070c7c3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/mapper/filters.js

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ function treatValue(value) {
6161
else if (value.includes(':')) return getCompareOperator(value)
6262
else if (value === 'now') return normalizeDate(dateToString(new Date()), false)
6363
else if (parseInt(value).toString() === value) return parseInt(value)
64+
else if (value === 'null') return null
65+
else if (value === 'undefined') return undefined
6466
return value
6567
}
6668

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "query-strings-parser",
3-
"version": "2.1.11",
3+
"version": "2.1.13",
44
"description": "Middleware to transform query strings in a format that is recognized by the MongoDB, MySQL and other databases...",
55
"license": "MIT",
66
"main": "index.js",
@@ -23,6 +23,7 @@
2323
"Adson Macêdo <agnsoft@hotmail.com>",
2424
"Douglas Rafael <douglas.rafael@nutes.uepb.edu.br>",
2525
"Jefferson Sampaio <jefferson.medeiros@nutes.uepb.edu.br>",
26+
"João Pedro Miranda <berrytern@gmail.com>",
2627
"Lucas Barbosa <lucas.barbosa@nutes.uepb.edu.br>"
2728
],
2829
"keywords": [

0 commit comments

Comments
 (0)