bonsaif 1.10.23 → 1.10.26

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.
@@ -642,6 +642,7 @@ const api=async(options,dbm, json)=>{
642
642
  dml = x; break;
643
643
  }
644
644
  }
645
+ dml==''? dml='command':'';
645
646
 
646
647
  eval(` try{ col = json.${dml}; } catch(e){ } `);
647
648
  let r;
package/lib/utl.js CHANGED
@@ -1058,7 +1058,7 @@ const apix=async(o)=>{
1058
1058
  o.retry = retry;
1059
1059
  await sleep(time*1000);
1060
1060
  } while (retry <= retries);
1061
- callback ? callback({...result}) : '';
1061
+ callback ? callback({...result, ...o}) : '';
1062
1062
  }else{
1063
1063
  result = await apix_backend(o);
1064
1064
  }
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.23",
17
+ "version": "1.10.26",
18
18
  "main": "index.js",
19
19
  "directories": {
20
20
  "lib": "lib"