vona-module-a-executor 5.0.11 → 5.0.13

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.
@@ -1,36 +1,25 @@
1
- import type { BeanScopeUtil } from 'vona';
2
- /** bean: end */
3
- /** bean: begin */
4
- import type { BeanExecutor } from '../bean/bean.executor.ts';
5
- /** service: end */
6
- /** service: begin */
7
- import type { ServiceExecutor } from '../service/executor.ts';
8
- /** service: end */
9
- /** scope: begin */
10
- import { BeanScopeBase } from 'vona';
11
1
  /** bean: begin */
12
- import 'vona';
13
- /** service: end */
14
- /** service: begin */
15
- import 'vona';
16
- import 'vona';
17
- import 'vona';
18
- import 'vona';
19
2
  export * from '../bean/bean.executor.ts';
3
+ import 'vona';
20
4
  declare module 'vona' {
21
5
  }
22
6
  declare module 'vona-module-a-executor' {
23
7
  interface BeanExecutor {
24
8
  }
25
9
  }
10
+ /** bean: end */
11
+ /** bean: begin */
12
+ import type { BeanExecutor } from '../bean/bean.executor.ts';
13
+ import 'vona';
26
14
  declare module 'vona' {
27
15
  interface IBeanRecordGlobal {
28
- executor: BeanExecutor;
16
+ 'executor': BeanExecutor;
29
17
  }
30
18
  }
31
19
  /** bean: end */
32
20
  /** service: begin */
33
21
  export * from '../service/executor.ts';
22
+ import 'vona';
34
23
  declare module 'vona-module-a-web' {
35
24
  interface IServiceRecord {
36
25
  'a-executor:executor': never;
@@ -40,20 +29,30 @@ declare module 'vona-module-a-executor' {
40
29
  interface ServiceExecutor {
41
30
  }
42
31
  }
32
+ /** service: end */
33
+ /** service: begin */
34
+ import type { ServiceExecutor } from '../service/executor.ts';
43
35
  export interface IModuleService {
44
- executor: ServiceExecutor;
36
+ 'executor': ServiceExecutor;
45
37
  }
38
+ /** service: end */
39
+ /** service: begin */
40
+ import 'vona';
46
41
  declare module 'vona' {
47
42
  interface IBeanRecordGeneral {
48
43
  'a-executor.service.executor': ServiceExecutor;
49
44
  }
50
45
  }
46
+ /** service: end */
47
+ /** scope: begin */
48
+ import { BeanScopeBase, type BeanScopeUtil } from 'vona';
51
49
  export declare class ScopeModuleAExecutor extends BeanScopeBase {
52
50
  }
53
51
  export interface ScopeModuleAExecutor {
54
52
  util: BeanScopeUtil;
55
53
  service: IModuleService;
56
54
  }
55
+ import 'vona';
57
56
  declare module 'vona' {
58
57
  interface IBeanScopeRecord {
59
58
  'a-executor': ScopeModuleAExecutor;
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { BeanInfo, BeanBase, cast, deepExtend, BeanScopeBase } from 'vona';
2
2
  import { Bean, Scope } from 'vona-module-a-bean';
3
3
  import { combineParamsAndQuery } from '@cabloy/utils';
4
- import { Log } from 'vona-module-a-logger';
5
4
  import { Service } from 'vona-module-a-web';
6
5
 
7
6
  function __delegateProperties(ctx, ctxCaller) {
@@ -148,23 +147,12 @@ let BeanExecutor = (_dec$2 = Bean(), _dec2$2 = BeanInfo({
148
147
  }
149
148
  }) || _class$2) || _class$2);
150
149
 
151
- function _applyDecoratedDescriptor(i, e, r, n, l) {
152
- var a = {};
153
- return Object.keys(n).forEach(function (i) {
154
- a[i] = n[i];
155
- }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = true), a = r.slice().reverse().reduce(function (r, n) {
156
- return n(i, e, r) || r;
157
- }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a;
158
- }
159
-
160
150
  const SymbolRouterMiddleware = Symbol('SymbolRouterMiddleware');
161
151
 
162
- var _dec$1, _dec2$1, _dec3, _dec4, _dec5, _class$1, _class2;
152
+ var _dec$1, _dec2$1, _class$1;
163
153
  let ServiceExecutor = (_dec$1 = Service(), _dec2$1 = BeanInfo({
164
154
  module: "a-executor"
165
- }), _dec3 = Log({
166
- level: 'debug'
167
- }), _dec4 = Reflect.metadata("design:type", Function), _dec5 = Reflect.metadata("design:paramtypes", [typeof METHOD === "undefined" ? Object : METHOD, String, typeof IPerformActionOptions === "undefined" ? Object : IPerformActionOptions]), _dec$1(_class$1 = _dec2$1(_class$1 = (_class2 = class ServiceExecutor extends BeanBase {
155
+ }), _dec$1(_class$1 = _dec2$1(_class$1 = class ServiceExecutor extends BeanBase {
168
156
  async performActionInner(method, url, options) {
169
157
  // app
170
158
  const app = this.app;
@@ -259,7 +247,7 @@ let ServiceExecutor = (_dec$1 = Service(), _dec2$1 = BeanInfo({
259
247
  }
260
248
  return options;
261
249
  }
262
- }, _applyDecoratedDescriptor(_class2.prototype, "performActionInner", [_dec3, _dec4, _dec5], Object.getOwnPropertyDescriptor(_class2.prototype, "performActionInner"), _class2.prototype), _class2)) || _class$1) || _class$1);
250
+ }) || _class$1) || _class$1);
263
251
 
264
252
  // for (const key of ['x-clientid', 'x-scene']) {
265
253
  // if (!headers[key]) {
@@ -1,4 +1,4 @@
1
- import type { ContextState, ILocaleInfos, PowerPartial } from 'vona';
1
+ import type { ContextState, IInstanceRecord, ILocaleInfos, PowerPartial } from 'vona';
2
2
  import type { IDbInfo, ITransactionOptions } from 'vona-module-a-database';
3
3
  import type { ConfigOnions } from 'vona-module-a-onion';
4
4
  export declare const SymbolRouterMiddleware: unique symbol;
@@ -13,7 +13,7 @@ export interface INewCtxOptions extends INewCtxBaseOptions {
13
13
  }
14
14
  export interface INewCtxBaseOptions {
15
15
  locale?: keyof ILocaleInfos;
16
- instanceName?: string | undefined | null;
16
+ instanceName?: keyof IInstanceRecord | undefined | null;
17
17
  instance?: boolean;
18
18
  transaction?: boolean;
19
19
  transactionOptions?: ITransactionOptions;
@@ -35,6 +35,6 @@ export interface IPerformActionOptions {
35
35
  export interface IGeneralInfoOptions {
36
36
  dbInfo?: IDbInfo;
37
37
  locale?: keyof ILocaleInfos;
38
- instanceName?: string | undefined | null;
38
+ instanceName?: keyof IInstanceRecord | undefined | null;
39
39
  extraData?: INewCtxExtraData;
40
40
  }
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.11",
4
+ "version": "5.0.13",
5
5
  "title": "a-executor",
6
6
  "vonaModule": {
7
7
  "dependencies": {}