bonsaif 1.10.6 → 1.10.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.
@@ -531,7 +531,7 @@ const drop=async(options,dbm, col)=>{
531
531
  //fix: solves the problem of queries that have more than 23K records
532
532
  const findMany=async(options,dbm, col, json)=>{
533
533
  const start = Date.now();
534
- let {limit=0, sort={}} = json ? json : {};
534
+ let {limit=0, sort={}, limit_part=3000} = json ? json : {};
535
535
  let result=[];
536
536
  if (limit>0){
537
537
  try{ json.batchSize= limit; } catch(e){}
@@ -545,7 +545,7 @@ const findMany=async(options,dbm, col, json)=>{
545
545
  let count_rows = await count(options,dbm,col, json);
546
546
  //utl.log('count_rows',count_rows);
547
547
  let {count:total=0} = count_rows.data ? count_rows.data :0;
548
- let limit_part = 3000; // fix:15000 version: 3.2.11
548
+ //let limit_part = 3000; // fix:15000 version: 3.2.11
549
549
  let parts = Math.ceil(total / limit_part);
550
550
  json.limit= limit_part;
551
551
  json.batchSize= limit_part;
package/lib/utl.js CHANGED
@@ -494,7 +494,7 @@ const health_check=(o)=>{
494
494
  log('healthCheck.notUri:', o);
495
495
  return;
496
496
  }
497
- try{delete o.user; delete o.pass;}catch(e){}
497
+ try{delete o.pass;}catch(e){}
498
498
  const timerHelth= new Timer({
499
499
  hearbeat:{pulse, startEvent:true,
500
500
  event:function(pulseEvent){
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.6",
17
+ "version": "1.10.7",
18
18
  "main": "index.js",
19
19
  "directories": {
20
20
  "lib": "lib"