vona-module-a-onion 5.0.34 → 5.0.35
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.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -160,12 +160,12 @@ let ServiceOnion = class ServiceOnion extends BeanBase {
|
|
|
160
160
|
// options: meta/config
|
|
161
161
|
const optionsMetaAndConfig = item.beanOptions.options;
|
|
162
162
|
// options: instance config
|
|
163
|
-
const optionsInstanceConfig = ctx
|
|
163
|
+
const optionsInstanceConfig = ctx?.instance ? ctx?.config.onions[item.beanOptions.scene]?.[item.name] : undefined;
|
|
164
164
|
// options: route
|
|
165
165
|
// not use route options for argument pipe
|
|
166
166
|
let optionsRoute;
|
|
167
167
|
if (!cast(item).argumentPipe && this.sceneMeta.optionsRoute) {
|
|
168
|
-
const route = ctx
|
|
168
|
+
const route = ctx?.route?.route;
|
|
169
169
|
optionsRoute = route?.meta?.[item.beanOptions.beanFullName];
|
|
170
170
|
}
|
|
171
171
|
// options: argument pipe
|
|
@@ -173,7 +173,7 @@ let ServiceOnion = class ServiceOnion extends BeanBase {
|
|
|
173
173
|
// options: dynamic
|
|
174
174
|
let optionsDynamic;
|
|
175
175
|
if (this.sceneMeta.optionsDynamic) {
|
|
176
|
-
optionsDynamic = ctx
|
|
176
|
+
optionsDynamic = ctx?.onionsDynamic?.[item.beanOptions.scene]?.[item.name];
|
|
177
177
|
}
|
|
178
178
|
// final options
|
|
179
179
|
let options;
|