@xuda.io/xuda-worker-bundle-min 1.3.909 → 1.3.910

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/index.js +21 -15
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -7117,21 +7117,27 @@ func.utils.connect_pouchdb = async function (SESSION_ID) {
7117
7117
  return new PouchDB("xuda_rt_" + app_id);
7118
7118
  };
7119
7119
 
7120
- func.utils.validate_pouchdb = async function (SESSION_ID) {
7121
- const app_id = SESSION_OBJ[SESSION_ID].app_id;
7122
- const db = new PouchDB("xuda_rt_" + app_id);
7123
- db.info()
7124
- .then((info) => {
7125
- console.log("Database exists", info);
7126
- })
7127
- .catch((error) => {
7128
- if (error.status === 404) {
7129
- throw new Error("Database does not exist");
7130
- } else {
7131
- throw new Error("Error accessing database", error);
7132
- }
7133
- });
7134
- };
7120
+ // func.utils.validate_pouchdb = async function (SESSION_ID) {
7121
+ // const app_id = SESSION_OBJ[SESSION_ID].app_id;
7122
+ // const db = new PouchDB("xuda_rt_" + app_id);
7123
+ // // db.info()
7124
+ // // .then((info) => {
7125
+ // // console.log("Database exists", info);
7126
+ // // })
7127
+ // // .catch((error) => {
7128
+ // // if (error.status === 404) {
7129
+ // // throw new Error("Database does not exist");
7130
+ // // } else {
7131
+ // // throw new Error("Error accessing database", error);
7132
+ // // }
7133
+ // // });
7134
+
7135
+ // try {
7136
+ // let ret = await db.get(`cache_rt_info`);
7137
+ // } catch (error) {
7138
+ // throw new Error("new pouch detect");
7139
+ // }
7140
+ // };
7135
7141
 
7136
7142
  func.utils.call_plugin_api = function (SESSION_ID, plugin_nameP, dataP) {
7137
7143
  var _session = SESSION_OBJ[SESSION_ID];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.909",
3
+ "version": "1.3.910",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {