vona-module-a-executor 5.0.24 → 5.0.25

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 +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -132,6 +132,9 @@ let BeanExecutor = (_dec$2 = Bean(), _dec2$2 = BeanInfo({
132
132
  // instance
133
133
  const instanceName = this.ctx.instanceName; // use default instanceName when undefined
134
134
  if (instanceName !== undefined && instanceName !== null) {
135
+ if (!this.app.meta.appReady) {
136
+ throw new Error(`should not init ctx.instance: ${instanceName}, when app.meta.appReady not true`);
137
+ }
135
138
  this.ctx.instance = await this.bean.instance.get(instanceName);
136
139
  // start instance
137
140
  if (options?.instance) {
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.24",
4
+ "version": "5.0.25",
5
5
  "title": "a-executor",
6
6
  "vonaModule": {
7
7
  "dependencies": {}