@go-mailer/jarvis 3.0.0 → 3.1.0

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 +1 -1
  2. package/package.json +1 -1
package/lib/query.js CHANGED
@@ -14,7 +14,7 @@ const buildQuery = (options) => {
14
14
  delete options.sort_by
15
15
 
16
16
  Object.keys(options).forEach((field) => {
17
- const field_value = options[field].toLowerCase()
17
+ const field_value = options[field] ? options[field].toString().toLowerCase() : ''
18
18
  let condition
19
19
 
20
20
  if (field_value.includes(':')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-mailer/jarvis",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
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>",