bonsaif 1.10.42 → 1.10.43

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.
@@ -326,6 +326,7 @@ const buildQuery=(field,value)=>{
326
326
  //console.log('tipo:'+tipo);
327
327
  switch (tipo){
328
328
  case 'id':
329
+ case '_id':
329
330
  eval('where.'+ltField[i]+' = new ObjectId('+val+'); ');
330
331
  break;
331
332
 
@@ -560,7 +560,7 @@ const del=async( options,db, key )=>{ //DEL key [key ...]
560
560
 
561
561
  // Busca llaves de un hash con la combinacion de busquedas similar a un where
562
562
  // 2022/04/26 VRSZ Se cambia la busqueda de rows
563
- const hfind=async(options,db, key, filter, order, limit=100)=>{
563
+ const hfind=async(options,db, key, filter, order, limit=1000)=>{
564
564
  let {field:orderBy, val:orderVal} = getFirstField(order);
565
565
 
566
566
  //2022/10/14 VRSZ Se realiza regla para combinar sentencias IN, AND, y/o OR
@@ -882,7 +882,7 @@ const api=async(options, dbm, json)=>{
882
882
  let order = json.order!=null ? json.order:{};
883
883
  let counter = json.counter!=null?json.counter:0;
884
884
  let toJson = json.toJson!=null?json.toJson:0;
885
- let limit = json.limit!=null?json.limit:100;
885
+ let limit = json.limit!=null?json.limit:1000;
886
886
 
887
887
  let lstart = json.start!=null?json.start*1:0;
888
888
  let lstop = json.stop!=null?json.stop*1:-1;
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.42",
17
+ "version": "1.10.43",
18
18
  "main": "index.js",
19
19
  "directories": {
20
20
  "lib": "lib"