@xuda.io/xuda-dbs-plugin-xuda 1.0.140 → 1.0.142
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 +16 -15
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.142",
|
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
@@ -776,21 +776,22 @@ const query_db = async function (e, db, table_obj) {
|
|
776
776
|
|
777
777
|
try {
|
778
778
|
const result = await db.createIndex(mango_index_obj);
|
779
|
-
const monitor_indexing = async function () {
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
};
|
791
|
-
await monitor_indexing();
|
792
|
-
|
793
|
-
|
779
|
+
// const monitor_indexing = async function () {
|
780
|
+
// return new Promise((resolve, reject) => {
|
781
|
+
// db.on("indexing", function (event) {
|
782
|
+
// // called when indexes are updated
|
783
|
+
// console.log("indexes event", event);
|
784
|
+
// // resolve();
|
785
|
+
// });
|
786
|
+
// setTimeout(() => {
|
787
|
+
// resolve();
|
788
|
+
// }, 5000);
|
789
|
+
// });
|
790
|
+
// };
|
791
|
+
// await monitor_indexing();
|
792
|
+
throw new Error("creating index");
|
793
|
+
// const doc = await db.find(opt);
|
794
|
+
// return await done(doc);
|
794
795
|
} catch (err) {
|
795
796
|
return { code: -1, data: err.message };
|
796
797
|
}
|