@xuda.io/runtime-bundle 1.0.1358 → 1.0.1359

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.
@@ -887,7 +887,7 @@ func.api.watch = function (path, cb, opt = {}) {
887
887
 
888
888
  _session.watchers[path] = cb;
889
889
  if (opt.immediate) {
890
- const value = _.get(SESSION_OBJ[SESSION_ID][0], path);
890
+ const value = _.get(SESSION_OBJ[SESSION_ID].DS_GLB[0], path);
891
891
  cb({ path, newValue: value, oldValue: value, timestamp: Date.now(), opt });
892
892
  }
893
893
  return 'ok';
@@ -887,7 +887,7 @@ func.api.watch = function (path, cb, opt = {}) {
887
887
 
888
888
  _session.watchers[path] = cb;
889
889
  if (opt.immediate) {
890
- const value = _.get(SESSION_OBJ[SESSION_ID][0], path);
890
+ const value = _.get(SESSION_OBJ[SESSION_ID].DS_GLB[0], path);
891
891
  cb({ path, newValue: value, oldValue: value, timestamp: Date.now(), opt });
892
892
  }
893
893
  return 'ok';