vona-core 5.0.34 → 5.0.36

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.
@@ -45,7 +45,7 @@ export function __prepareInjectSelectorInfo(beanInstance, useOptions) {
45
45
  selectorInfo = __prepareInjectSelectorInfo_init(beanInstance, useOptions);
46
46
  }
47
47
  if (!selectorInfo && !isNilOrEmptyString(useOptions.selector)) {
48
- const selector = evaluateExpressions(useOptions.selector, { self: beanInstance });
48
+ const selector = evaluateExpressions(useOptions.selector, { self: beanInstance, app: beanInstance.app, ctx: beanInstance.ctx });
49
49
  return { withSelector: true, args: [selector] };
50
50
  }
51
51
  return selectorInfo ?? { withSelector: false, args: [] };
@@ -69,6 +69,6 @@ function __prepareInjectSelectorInfo_init(beanInstance, useOptions) {
69
69
  const _args = init.args ?? [init.arg];
70
70
  if (!_args)
71
71
  return;
72
- const args = _args.map(arg => evaluateExpressions(arg, { self: beanInstance }));
72
+ const args = _args.map(arg => evaluateExpressions(arg, { self: beanInstance, app: beanInstance.app, ctx: beanInstance.ctx }));
73
73
  return { withSelector, args };
74
74
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-core",
3
3
  "type": "module",
4
- "version": "5.0.34",
4
+ "version": "5.0.36",
5
5
  "description": "vona",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,7 +33,7 @@
33
33
  "@cabloy/module-info": "^1.3.24",
34
34
  "@cabloy/module-info-pro": "^1.0.32",
35
35
  "@cabloy/set": "^1.0.17",
36
- "@cabloy/utils": "^1.0.34",
36
+ "@cabloy/utils": "^1.0.36",
37
37
  "@cabloy/word-utils": "^2.0.1",
38
38
  "fs-extra": "^10.1.0",
39
39
  "koa": "^3.0.0",