Skip to content

Commit

Permalink
Merge branch 'hotfix/2.1.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsampaio committed Dec 13, 2023
2 parents 46cfd32 + f4cad6b commit 070c7c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/mapper/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ function treatValue(value) {
else if (value.includes(':')) return getCompareOperator(value)
else if (value === 'now') return normalizeDate(dateToString(new Date()), false)
else if (parseInt(value).toString() === value) return parseInt(value)
else if (value === 'null') return null
else if (value === 'undefined') return undefined
return value
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "query-strings-parser",
"version": "2.1.11",
"version": "2.1.13",
"description": "Middleware to transform query strings in a format that is recognized by the MongoDB, MySQL and other databases...",
"license": "MIT",
"main": "index.js",
Expand All @@ -23,6 +23,7 @@
"Adson Macêdo <agnsoft@hotmail.com>",
"Douglas Rafael <douglas.rafael@nutes.uepb.edu.br>",
"Jefferson Sampaio <jefferson.medeiros@nutes.uepb.edu.br>",
"João Pedro Miranda <berrytern@gmail.com>",
"Lucas Barbosa <lucas.barbosa@nutes.uepb.edu.br>"
],
"keywords": [
Expand Down

0 comments on commit 070c7c3

Please sign in to comment.