@xuda.io/xuda-worker-bundle-min 1.3.470 → 1.3.472

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 +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -409,7 +409,8 @@ func.common.db = async function (
409
409
  ) {
410
410
  if (
411
411
  (await func.db.pouch.get_replication_stat(SESSION_ID)) &&
412
- SESSION_OBJ[SESSION_ID].engine_mode === "live_preview"
412
+ (_session.engine_mode === "live_preview" ||
413
+ APP_OBJ[_session.APP_ID].app_available_offline)
413
414
  ) {
414
415
  const db = await func.utils.connect_pouchdb(SESSION_ID);
415
416
  switch (serviceP) {
@@ -5294,6 +5295,7 @@ func.utils.ws_worker.functions = {
5294
5295
  params,
5295
5296
  promise_queue_id
5296
5297
  ) {
5298
+ if (_.isEmpty(SESSION_OBJ)) return;
5297
5299
  var SESSION_ID = params.session_id;
5298
5300
  var _session = SESSION_OBJ[SESSION_ID];
5299
5301
  if (!_session) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.470",
3
+ "version": "1.3.472",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {