vona-module-a-swagger 5.0.21 → 5.0.23

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 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { BeanInfo, BeanBase, BeanScopeBase } from 'vona';
2
2
  import { Meta } from 'vona-module-a-meta';
3
- import { $apiPath, Controller, Web } from 'vona-module-a-web';
3
+ import { $apiPath, Controller, Web, Arg } from 'vona-module-a-web';
4
4
  import { SummerCache, BeanSummerCacheBase } from 'vona-module-a-summer';
5
5
  import { Caching } from 'vona-module-a-caching';
6
- import { Api, Arg, v } from 'vona-module-a-openapi';
6
+ import { Api, v } from 'vona-module-a-openapi';
7
7
  import { Passport } from 'vona-module-a-user';
8
8
  import { Scope } from 'vona-module-a-bean';
9
9
 
@@ -92,7 +92,7 @@ let ControllerRapidoc = (_dec$2 = Controller({
92
92
  async index(version) {
93
93
  // signin
94
94
  let accessToken = '';
95
- if (this.app.meta.isLocal || this.app.meta.isTest) {
95
+ if (this.app.meta.isDev || this.app.meta.isTest) {
96
96
  const jwt = await this.bean.passport.signinSystem('swagger', '-2');
97
97
  accessToken = jwt.accessToken;
98
98
  }
@@ -149,7 +149,7 @@ let ControllerSwagger = (_dec$1 = Controller({
149
149
  async index(version) {
150
150
  // signin
151
151
  let accessToken = '';
152
- if (this.app.meta.isLocal || this.app.meta.isTest) {
152
+ if (this.app.meta.isDev || this.app.meta.isTest) {
153
153
  const jwt = await this.bean.passport.signinSystem('swagger', '-2');
154
154
  accessToken = jwt.accessToken;
155
155
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-swagger",
3
3
  "type": "module",
4
- "version": "5.0.21",
4
+ "version": "5.0.23",
5
5
  "title": "a-swagger",
6
6
  "vonaModule": {
7
7
  "dependencies": {