@xuda.io/xuda-dbs-plugin-xuda 1.0.149 → 1.0.150
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.
- package/package.json +1 -1
- package/server.js +14 -10
- package/studio.mjs +14 -10
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xuda.io/xuda-dbs-plugin-xuda",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.150",
|
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
@@ -501,6 +501,7 @@ const get_opt = function (e, table_obj) {
|
|
501
501
|
|
502
502
|
opt.selector = selector_new;
|
503
503
|
opt.selector["udfData.udffileid"] = e.table_id;
|
504
|
+
opt.selector["docType"] = "database";
|
504
505
|
opt.selector.stat = e.archived ? 4 : 3;
|
505
506
|
|
506
507
|
opt.fields.push("_id");
|
@@ -744,16 +745,19 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
|
|
744
745
|
|
745
746
|
mango_index_obj = {
|
746
747
|
index: {
|
747
|
-
fields:
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
ret
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
748
|
+
fields: [
|
749
|
+
...Object.keys(
|
750
|
+
_.reduce(
|
751
|
+
opt.sort,
|
752
|
+
(ret, val) => {
|
753
|
+
ret[Object.keys(val)[0]] = val;
|
754
|
+
return ret;
|
755
|
+
},
|
756
|
+
opt.selector
|
757
|
+
)
|
758
|
+
),
|
759
|
+
...["docType", "stat"],
|
760
|
+
],
|
757
761
|
},
|
758
762
|
name: index_name,
|
759
763
|
ddoc: `mango_index_table_${e.table_id}`,
|
package/studio.mjs
CHANGED
@@ -515,6 +515,7 @@ const get_opt = function (e, table_obj) {
|
|
515
515
|
|
516
516
|
opt.selector = selector_new;
|
517
517
|
opt.selector["udfData.udffileid"] = e.table_id;
|
518
|
+
opt.selector["docType"] = "database";
|
518
519
|
opt.selector.stat = e.archived ? 4 : 3;
|
519
520
|
|
520
521
|
opt.fields.push("_id");
|
@@ -763,16 +764,19 @@ const query_db = async function (e, db, table_obj) {
|
|
763
764
|
|
764
765
|
mango_index_obj = {
|
765
766
|
index: {
|
766
|
-
fields:
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
ret
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
767
|
+
fields: [
|
768
|
+
...Object.keys(
|
769
|
+
_.reduce(
|
770
|
+
opt.sort,
|
771
|
+
(ret, val) => {
|
772
|
+
ret[Object.keys(val)[0]] = val;
|
773
|
+
return ret;
|
774
|
+
},
|
775
|
+
opt.selector
|
776
|
+
)
|
777
|
+
),
|
778
|
+
...["docType", "stat"],
|
779
|
+
],
|
776
780
|
},
|
777
781
|
name: index_name,
|
778
782
|
ddoc: `mango_index_table_${e.table_id}`,
|