vona-module-a-executor 5.0.29 → 5.0.30

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/dist/index.js +4 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -62,6 +62,10 @@ let BeanExecutor = class BeanExecutor extends BeanBase {
62
62
  options = Object.assign({}, options);
63
63
  // instanceName !== undefined means isolate
64
64
  options.instanceName = options.instanceName === undefined ? this.ctx?.instanceName : options.instanceName;
65
+ if (options.instanceName === this.ctx?.instanceName) {
66
+ options.locale = options.locale === undefined ? this.ctx?.locale : options.locale;
67
+ options.tz = options.tz === undefined ? this.ctx?.tz : options.tz;
68
+ }
65
69
  return this.newCtx(fn, options);
66
70
  }
67
71
  async mockCtx(fn, options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-executor",
3
3
  "type": "module",
4
- "version": "5.0.29",
4
+ "version": "5.0.30",
5
5
  "title": "a-executor",
6
6
  "vonaModule": {
7
7
  "dependencies": {}