vona-module-a-executor 5.0.13 → 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.
@@ -20,7 +20,7 @@ declare module 'vona' {
20
20
  /** service: begin */
21
21
  export * from '../service/executor.ts';
22
22
  import 'vona';
23
- declare module 'vona-module-a-web' {
23
+ declare module 'vona-module-a-bean' {
24
24
  interface IServiceRecord {
25
25
  'a-executor:executor': never;
26
26
  }
package/dist/index.js CHANGED
@@ -1,7 +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 { Service } from 'vona-module-a-web';
4
+ import { Aspect } from 'vona-module-a-aspect';
5
5
 
6
6
  function __delegateProperties(ctx, ctxCaller) {
7
7
  for (const property of ['state']) {
@@ -147,12 +147,23 @@ let BeanExecutor = (_dec$2 = Bean(), _dec2$2 = BeanInfo({
147
147
  }
148
148
  }) || _class$2) || _class$2);
149
149
 
150
+ function _applyDecoratedDescriptor(i, e, r, n, l) {
151
+ var a = {};
152
+ return Object.keys(n).forEach(function (i) {
153
+ a[i] = n[i];
154
+ }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = true), a = r.slice().reverse().reduce(function (r, n) {
155
+ return n(i, e, r) || r;
156
+ }, 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;
157
+ }
158
+
150
159
  const SymbolRouterMiddleware = Symbol('SymbolRouterMiddleware');
151
160
 
152
- var _dec$1, _dec2$1, _class$1;
161
+ var _dec$1, _dec2$1, _dec3, _dec4, _dec5, _class$1, _class2;
153
162
  let ServiceExecutor = (_dec$1 = Service(), _dec2$1 = BeanInfo({
154
163
  module: "a-executor"
155
- }), _dec$1(_class$1 = _dec2$1(_class$1 = class ServiceExecutor extends BeanBase {
164
+ }), _dec3 = Aspect.aopMethod('a-logger:log', {
165
+ level: 'debug'
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 {
156
167
  async performActionInner(method, url, options) {
157
168
  // app
158
169
  const app = this.app;
@@ -247,7 +258,7 @@ let ServiceExecutor = (_dec$1 = Service(), _dec2$1 = BeanInfo({
247
258
  }
248
259
  return options;
249
260
  }
250
- }) || _class$1) || _class$1);
261
+ }, _applyDecoratedDescriptor(_class2.prototype, "performActionInner", [_dec3, _dec4, _dec5], Object.getOwnPropertyDescriptor(_class2.prototype, "performActionInner"), _class2.prototype), _class2)) || _class$1) || _class$1);
251
262
 
252
263
  // for (const key of ['x-clientid', 'x-scene']) {
253
264
  // if (!headers[key]) {
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.13",
4
+ "version": "5.0.14",
5
5
  "title": "a-executor",
6
6
  "vonaModule": {
7
7
  "dependencies": {}