vona-module-a-web 5.0.27 → 5.0.29

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -252,7 +252,7 @@ function exchangeKeyForValue(ctx, type, field) {
252
252
  },
253
253
  ip: () => req.ip,
254
254
  rawBody: () => req.rawBody,
255
- user: () => ctx.app.bean.passport.getCurrentUser(),
255
+ user: () => ctx.app.bean.passport.currentUser,
256
256
  fields: () => {
257
257
  const uploadValue = ctx[SymbolUploadValue];
258
258
  if (!uploadValue) throw new Error('should use interceptor: a-upload:upload');
@@ -648,7 +648,7 @@ class Main extends BeanSimple {
648
648
  }
649
649
  async moduleLoading() {}
650
650
  async moduleLoaded() {
651
- const config = this.bean.scope(__ThisModule__).config;
651
+ const config = this.app.scope(__ThisModule__).config;
652
652
  const self = this;
653
653
  // router
654
654
  Object.defineProperty(this.app, 'router', {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-web",
3
3
  "type": "module",
4
- "version": "5.0.27",
4
+ "version": "5.0.29",
5
5
  "title": "a-web",
6
6
  "vonaModule": {
7
7
  "capabilities": {