@xuda.io/xuda-dbs-plugin-xuda 1.0.62 → 1.0.64

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 +1 -1
  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.62",
3
+ "version": "1.0.64",
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
@@ -1,4 +1,5 @@
1
1
  const _ = require("lodash");
2
+ const crypto = require("node:crypto");
2
3
 
3
4
  const check_unique = async function (e, docP, table_obj, db, app_id_reference) {
4
5
  var len = docP.udfIndex.length;
@@ -858,7 +859,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
858
859
 
859
860
  rows.push({ id: crypto.randomUUID(), value: obj });
860
861
  }
861
- return { code: 1, data: rows };
862
+ return { code: 1, data: { rows } };
862
863
  }
863
864
 
864
865
  var rows = [];