bonsaif 1.10.16 → 1.10.17

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/utl.js +4 -2
  2. package/package.json +1 -1
package/lib/utl.js CHANGED
@@ -249,8 +249,10 @@ const random=(o)=>{
249
249
  };
250
250
 
251
251
  const valueIn=(o)=>{
252
- let vin = o.in != null ? o.in.split(',') : '';
253
- let v = o.value != null ? o.value.split(',') : '';
252
+ let {value='', in:in_=''} = o ? o : {};
253
+ value = ''+value; in_ = ''+in_;
254
+ let vin = in_ != null ? in_.split(',') : '';
255
+ let v = value != null ? value.split(',') : '';
254
256
 
255
257
  for (let xv of v){
256
258
  for (let xvin of vin ){
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "name": "bonsaif",
16
16
  "description": "bonsaif is a library to connect to bonsaif apis",
17
- "version": "1.10.16",
17
+ "version": "1.10.17",
18
18
  "main": "index.js",
19
19
  "directories": {
20
20
  "lib": "lib"