@go-mailer/jarvis 10.10.3 → 10.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/query.js +4 -1
  2. package/package.json +1 -1
package/lib/query.js CHANGED
@@ -131,7 +131,10 @@ const buildOrQuery = (value) => {
131
131
  const buildRangeQuery = (value) => {
132
132
  const [min, max] = value.split('~')
133
133
  const is_not_number = !isNaN(min) || !isNaN(max)
134
- const query = {}
134
+ const query = {
135
+ $gte: 0,
136
+ $lte: Number.MAX_SAFE_INTEGER
137
+ }
135
138
 
136
139
  if (is_not_number) {
137
140
  const is_date = !isNaN(Date.parse(min)) || !isNaN(Date.parse(max))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-mailer/jarvis",
3
- "version": "10.10.3",
3
+ "version": "10.10.4",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:go-mailer-ltd/jarvis-node.git",
6
6
  "author": "Nathan Oguntuberu <nateoguns.work@gmail.com>",