@xuda.io/xuda-dbs-plugin-xuda 1.0.67 → 1.0.69

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 (3) hide show
  1. package/package.json +1 -1
  2. package/server.js +10 -8
  3. package/setup.mjs +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
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"
package/server.js CHANGED
@@ -222,11 +222,12 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
222
222
 
223
223
  rows.push({
224
224
  id: val._id,
225
- value: {
226
- udfData: { data: data },
227
- _id: val._id,
228
- _rev: val._rev,
229
- },
225
+ value: data,
226
+ // value: {
227
+ // udfData: { data: data },
228
+ // _id: val._id,
229
+ // _rev: val._rev,
230
+ // },
230
231
  });
231
232
  }
232
233
 
@@ -529,7 +530,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
529
530
  }
530
531
  }
531
532
 
532
- if (val.filterType === "text") {
533
+ if (val.filterType === "string") {
533
534
  switch (val.type) {
534
535
  case "contains":
535
536
  operator = "$regex";
@@ -886,7 +887,8 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
886
887
  }
887
888
  rows.push({
888
889
  id: val.id,
889
- value: { udfData: val.doc.udfData, _id: val.id },
890
+ value: val.doc.udfData,
891
+ // value: { udfData: val.doc.udfData, _id: val.id },
890
892
  });
891
893
  }
892
894
 
@@ -1366,7 +1368,7 @@ exports.read = async (params, setup_doc, resolve, reject) => {
1366
1368
  // }
1367
1369
  // }
1368
1370
 
1369
- // if (val.filterType === "text") {
1371
+ // if (val.filterType === "string") {
1370
1372
  // switch (val.type) {
1371
1373
  // case "contains":
1372
1374
  // operator = "$regex";
package/setup.mjs CHANGED
@@ -8,7 +8,7 @@ export function tabs(doc) {
8
8
 
9
9
  fields: {
10
10
  db_connection_string: {
11
- type: "text",
11
+ type: "string",
12
12
  placeholder: "https://john:12345678@db.xuda.io:6984/employees",
13
13
  mandatory: true,
14
14
  label: "Db Connection String",