@xuda.io/xuda-worker-bundle-min 1.3.670 → 1.3.672

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 +14 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -192,8 +192,7 @@ func.common.get_custom_icon = async function (
192
192
  const url = func.common.get_url(
193
193
  SESSION_ID,
194
194
  "studio-drive",
195
- `${app_obj.app_replicate ? app_obj.app_replicate : app_obj._id}/${
196
- tree_ret2.rPTH
195
+ `${app_obj.app_replicate ? app_obj.app_replicate : app_obj._id}/${tree_ret2.rPTH
197
196
  }`
198
197
  );
199
198
  return url;
@@ -219,6 +218,10 @@ func.common.db = async function (
219
218
  var _session = SESSION_OBJ[SESSION_ID];
220
219
  const app_id = _session.app_id;
221
220
 
221
+ if (_session.engine_mode === "live_preview") {
222
+ console.log("request", dataP)
223
+ }
224
+
222
225
  var data = {
223
226
  app_id: app_id,
224
227
  fingerprint: _session?.SYS_GLOBAL_OBJ_CLIENT_INFO?.fingerprint,
@@ -239,7 +242,7 @@ func.common.db = async function (
239
242
  ) {
240
243
  data.device_name = firebase.auth().currentUser.displayName;
241
244
  }
242
- } catch (error) {}
245
+ } catch (error) { }
243
246
 
244
247
  for (const [key, val] of Object.entries(dataP)) {
245
248
  data[key] = val;
@@ -258,6 +261,10 @@ func.common.db = async function (
258
261
  }
259
262
  );
260
263
  }
264
+
265
+ if (_session.engine_mode === "live_preview") {
266
+ console.log("response", ret)
267
+ }
261
268
  resolve(ret, true);
262
269
  };
263
270
 
@@ -361,7 +368,7 @@ func.common.db = async function (
361
368
  });
362
369
  }
363
370
  func.db.pouch.set_db_replication_from_server(SESSION_ID);
364
- } catch (err) {}
371
+ } catch (err) { }
365
372
  }
366
373
  return json;
367
374
  }
@@ -802,9 +809,8 @@ func.common.getContrast_color = function (hexcolor) {
802
809
  };
803
810
 
804
811
  func.common.get_url = function (SESSION_ID, method, path) {
805
- return `https://${SESSION_OBJ[SESSION_ID].domain}/${method}${
806
- path ? "/" + path : "/"
807
- }`;
812
+ return `https://${SESSION_OBJ[SESSION_ID].domain}/${method}${path ? "/" + path : "/"
813
+ }`;
808
814
  };
809
815
 
810
816
  var UI_FRAMEWORK_INSTALLED = null;
@@ -2072,7 +2078,7 @@ func.datasource.execute = async function (
2072
2078
  // ======================================
2073
2079
  // COMPUTE GLOBALS
2074
2080
  // ======================================
2075
- if (tree_obj.menuType === "globals") {//_ds.prog_id === "system"
2081
+ if (_ds.prog_id === "system") {//TBD tree_obj.menuType === "globals"
2076
2082
  _ds.currentRecordId = "dataset";
2077
2083
  await func.datasource.render_fields_dataset(SESSION_ID, dataSourceSession, { value: _session.url_params });
2078
2084
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.670",
3
+ "version": "1.3.672",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {