@xuda.io/xuda-dbs-plugin-xuda 1.0.103 → 1.0.104
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/studio.mjs +4 -0
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.104",
|
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/studio.mjs
CHANGED
@@ -1182,6 +1182,10 @@ export const create_design = async (params, resolve, reject) => {
|
|
1182
1182
|
map: 'function(doc) {\r\n\r\nif (doc.docType=="database" && doc.stat===3) {\r\n if(doc.udfData && doc.udfData.udffileid) \r\n emit(doc.udfData.udffileid, 1); \r\n }\r\n}',
|
1183
1183
|
reduce: "function(keys, values) {\n return sum(values);\n}",
|
1184
1184
|
},
|
1185
|
+
stat_3_doc_counts: {
|
1186
|
+
reduce: "_count",
|
1187
|
+
map: "function (doc) {\n if(doc.stat===3){\n emit(doc.docType, 1);\n }\n}",
|
1188
|
+
},
|
1185
1189
|
},
|
1186
1190
|
};
|
1187
1191
|
|