@xuda.io/xuda-dbs-plugin-xuda 1.0.82 → 1.0.84

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/package.json +4 -3
  2. package/server.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.82",
3
+ "version": "1.0.84",
4
4
  "description": "Xuda Database Socket for Xuda's proprietary structure powered by CouchDB",
5
5
  "scripts": {
6
6
  "pub": "npm version patch --force && npm publish --access public"
@@ -15,8 +15,9 @@
15
15
  "license": "Proprietary software licenses",
16
16
  "svg_icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-database\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path> <ellipse cx=\"12\" cy=\"6\" rx=\"8\" ry=\"3\"></ellipse> <path d=\"M4 6v6a8 3 0 0 0 16 0v-6\"></path> <path d=\"M4 12v6a8 3 0 0 0 16 0v-6\"></path> </svg>",
17
17
  "dependencies": {
18
- "nano": "^10.0.0",
18
+ "@xuda.io/xu_cast": "^1.0.3",
19
19
  "lodash": "^4.17.21",
20
- "@xuda.io/xu_cast": "^1.0.3"
20
+ "nano": "^10.0.0",
21
+ "pm2": "^5.3.0"
21
22
  }
22
23
  }
package/server.js CHANGED
@@ -460,7 +460,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
460
460
  }
461
461
 
462
462
  if (e.grid_filter_info) {
463
- for (const [key, val] of Object.entries(JSON.parse(e.grid_filter_info))) {
463
+ for (const [key, val] of Object.entries(e.grid_filter_info)) {
464
464
  var field_name = key;
465
465
  var condition = "$and";
466
466
  const make_selector = function (val) {
@@ -705,6 +705,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
705
705
 
706
706
  try {
707
707
  try {
708
+ console.log("opt", opt);
708
709
  const doc = await db.find(opt);
709
710
 
710
711
  if (doc?.warning?.includes("No matching index found")) {