@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.
@@ -2511,7 +2511,7 @@ func.api.watch = function (path, cb, opt = {}) {
2511
2511
 
2512
2512
  _session.watchers[path] = cb;
2513
2513
  if (opt.immediate) {
2514
- const value = _.get(SESSION_OBJ[SESSION_ID][0], path);
2514
+ const value = _.get(SESSION_OBJ[SESSION_ID].DS_GLB[0], path);
2515
2515
  cb({ path, newValue: value, oldValue: value, timestamp: Date.now(), opt });
2516
2516
  }
2517
2517
  return 'ok';
@@ -2512,7 +2512,7 @@ func.api.watch = function (path, cb, opt = {}) {
2512
2512
 
2513
2513
  _session.watchers[path] = cb;
2514
2514
  if (opt.immediate) {
2515
- const value = _.get(SESSION_OBJ[SESSION_ID][0], path);
2515
+ const value = _.get(SESSION_OBJ[SESSION_ID].DS_GLB[0], path);
2516
2516
  cb({ path, newValue: value, oldValue: value, timestamp: Date.now(), opt });
2517
2517
  }
2518
2518
  return 'ok';