zet-lib 1.2.104 → 1.2.106

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/Form.js CHANGED
@@ -179,7 +179,7 @@ Form.field = (obj) => {
179
179
  break
180
180
 
181
181
  case 'integer':
182
- displayForm = `${prepend}${inputGroupLeft}<input autocomplete="off" autofocus="" ${disabled} ${readonly} ${tabindex} ${style} type="text" class="form-control ${obj.class}" ${id} ${name} ${placeholder} ${required} value="${value}" ${htmlOptions}>${inputGroupRight}${information}${append}`
182
+ displayForm = `${prepend}${inputGroupLeft}<input autocomplete="off" autofocus="" ${disabled} ${readonly} ${tabindex} ${style} type="number" class="form-control ${obj.class}" ${id} ${name} ${placeholder} ${required} value="${value}" ${htmlOptions}>${inputGroupRight}${information}${append}`
183
183
  break
184
184
 
185
185
  case 'datepicker':
package/lib/zRoute.js CHANGED
@@ -2428,7 +2428,7 @@ zRoute.forms = (req, res, MYMODEL, relations, data = {}) => {
2428
2428
  obj.class = 'form-control number'
2429
2429
  break
2430
2430
  case 'integer':
2431
- obj.type = 'number'
2431
+ obj.type = 'integer'
2432
2432
  obj.class = 'form-control number'
2433
2433
  break
2434
2434
  case 'email':
@@ -3699,6 +3699,7 @@ zRoute.insertSQL = async (req, res, table, data) => {
3699
3699
  zRoute.modelsCacheRenew(table, res.locals.companyId)
3700
3700
  return result
3701
3701
  } catch (e) {
3702
+ throw Error(e + '')
3702
3703
  console.log(e)
3703
3704
  }
3704
3705
  }
@@ -3813,6 +3814,7 @@ zRoute.updateSQL = async (req, res, table, data, whereData) => {
3813
3814
  return result
3814
3815
  }
3815
3816
  } catch (e) {
3817
+ throw Error(e + '')
3816
3818
  console.log(e)
3817
3819
  }
3818
3820
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.2.104",
3
+ "version": "1.2.106",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"