vona-module-a-executor 5.0.12 → 5.0.14
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/.metadata/index.d.ts +19 -20
- package/dist/index.js +3 -4
- package/package.json +1 -1
|
@@ -1,37 +1,26 @@
|
|
|
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';
|
|
34
|
-
|
|
22
|
+
import 'vona';
|
|
23
|
+
declare module 'vona-module-a-bean' {
|
|
35
24
|
interface IServiceRecord {
|
|
36
25
|
'a-executor:executor': never;
|
|
37
26
|
}
|
|
@@ -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,8 +1,7 @@
|
|
|
1
1
|
import { BeanInfo, BeanBase, cast, deepExtend, BeanScopeBase } from 'vona';
|
|
2
|
-
import { Bean, Scope } from 'vona-module-a-bean';
|
|
2
|
+
import { Bean, Service, Scope } from 'vona-module-a-bean';
|
|
3
3
|
import { combineParamsAndQuery } from '@cabloy/utils';
|
|
4
|
-
import {
|
|
5
|
-
import { Service } from 'vona-module-a-web';
|
|
4
|
+
import { Aspect } from 'vona-module-a-aspect';
|
|
6
5
|
|
|
7
6
|
function __delegateProperties(ctx, ctxCaller) {
|
|
8
7
|
for (const property of ['state']) {
|
|
@@ -162,7 +161,7 @@ const SymbolRouterMiddleware = Symbol('SymbolRouterMiddleware');
|
|
|
162
161
|
var _dec$1, _dec2$1, _dec3, _dec4, _dec5, _class$1, _class2;
|
|
163
162
|
let ServiceExecutor = (_dec$1 = Service(), _dec2$1 = BeanInfo({
|
|
164
163
|
module: "a-executor"
|
|
165
|
-
}), _dec3 =
|
|
164
|
+
}), _dec3 = Aspect.aopMethod('a-logger:log', {
|
|
166
165
|
level: 'debug'
|
|
167
166
|
}), _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 {
|
|
168
167
|
async performActionInner(method, url, options) {
|