zet-lib 1.2.6 → 1.2.7

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.
package/lib/connection.js CHANGED
@@ -94,20 +94,21 @@ const whereFn = (obj) => {
94
94
  if (item.option.includes('{{value}}')) {
95
95
  item.option = item.option.replace('{{value}}', `$${increment}`)
96
96
  wherequery += `${andOr} ${field} ${item.option} ${operator}`
97
+ increment++
97
98
  } else if (item.option.includes('$')) {
98
99
  wherequery += `${andOr} ${field} ${item.option} ${operator}`
100
+ increment++
99
101
  } else {
100
102
  wherequery += `${andOr} ${field} ${item.option} $${increment} ${operator}`
103
+ increment++
101
104
  }
102
105
  let itemValue = item.value
103
106
  if (item.option == '=') {
104
107
  itemValue = Util.replaceAll(itemValue + '', '%', '')
105
108
  }
106
-
107
109
  arr.push(itemValue)
108
110
  }
109
111
  }
110
- increment++
111
112
  })
112
113
  //console.log(arr)
113
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"