@eggjs/tegg-aop-runtime 1.3.0 → 1.4.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,67 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 1.4.0 (2022-08-24)
7
+
8
+
9
+
10
+ # 1.3.0 (2022-07-01)
11
+
12
+
13
+
14
+ # 1.2.0 (2022-06-29)
15
+
16
+
17
+
18
+ ## 1.1.1 (2022-06-21)
19
+
20
+
21
+
22
+ # 1.1.0 (2022-06-15)
23
+
24
+
25
+
26
+ ## 1.0.5 (2022-04-24)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * should throw with no aop proto ([#34](https://github.com/eggjs/tegg/issues/34)) ([5c0b98a](https://github.com/eggjs/tegg/commit/5c0b98a89924f5bad062018e32fbd7993169126c))
32
+
33
+
34
+
35
+ ## 1.0.3 (2022-02-08)
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * rm console ([7455ce6](https://github.com/eggjs/tegg/commit/7455ce6fcc04fe9463a1ecf6e03e049ce2faf6f0))
41
+
42
+
43
+
44
+ ## 1.0.2 (2022-02-08)
45
+
46
+
47
+
48
+ ## 1.0.1 (2022-02-08)
49
+
50
+
51
+
52
+ # 1.0.0 (2022-02-08)
53
+
54
+
55
+
56
+ # 0.2.0 (2022-01-20)
57
+
58
+
59
+ ### Features
60
+
61
+ * impl aop ([c53df00](https://github.com/eggjs/tegg/commit/c53df001d1455a0a105689694775d880541d9d2f))
62
+
63
+
64
+
65
+
66
+
6
67
  # [1.3.0](https://github.com/eggjs/tegg/compare/v1.2.0...v1.3.0) (2022-07-01)
7
68
 
8
69
  **Note:** Version bump only for package @eggjs/tegg-aop-runtime
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -13,4 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./src/EggPrototypeCrossCutHook"), exports);
14
18
  __exportStar(require("./src/EggObjectAopHook"), exports);
15
19
  __exportStar(require("./src/LoadUnitAopHook"), exports);
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSxpRUFBK0M7QUFDL0MseURBQXVDO0FBQ3ZDLHdEQUFzQyJ9
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaUVBQStDO0FBQy9DLHlEQUF1QztBQUN2Qyx3REFBc0MifQ==
@@ -1,6 +1,6 @@
1
1
  import { LifecycleHook } from '@eggjs/tegg-lifecycle';
2
2
  import { EggObject, EggObjectLifeCycleContext } from '@eggjs/tegg-runtime';
3
3
  export declare class EggObjectAopHook implements LifecycleHook<EggObjectLifeCycleContext, EggObject> {
4
- private hijackMathods;
4
+ private hijackMethods;
5
5
  postCreate(_: EggObjectLifeCycleContext, eggObject: EggObject): Promise<void>;
6
6
  }
@@ -4,7 +4,7 @@ exports.EggObjectAopHook = void 0;
4
4
  const aop_decorator_1 = require("@eggjs/aop-decorator");
5
5
  const AspectExecutor_1 = require("./AspectExecutor");
6
6
  class EggObjectAopHook {
7
- hijackMathods(obj, aspectList) {
7
+ hijackMethods(obj, aspectList) {
8
8
  for (const aspect of aspectList) {
9
9
  const newExecutor = new AspectExecutor_1.AspectExecutor(obj, aspect.method, aspect.adviceList);
10
10
  obj[aspect.method] = newExecutor.execute.bind(newExecutor);
@@ -24,14 +24,14 @@ class EggObjectAopHook {
24
24
  get() {
25
25
  if (!obj) {
26
26
  obj = Reflect.apply(propertyDesc.get, eggObject, []);
27
- self.hijackMathods(obj, aspectList);
27
+ self.hijackMethods(obj, aspectList);
28
28
  }
29
29
  return obj;
30
30
  },
31
31
  });
32
32
  }
33
33
  else {
34
- this.hijackMathods(eggObject.obj, aspectList);
34
+ this.hijackMethods(eggObject.obj, aspectList);
35
35
  }
36
36
  }
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/tegg-aop-runtime",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "tegg aop",
5
5
  "main": "dist/index.js",
6
6
  "eggModule": {
@@ -55,5 +55,5 @@
55
55
  "@eggjs/module-test-util": "^1.3.0",
56
56
  "@eggjs/tegg-loader": "^1.3.0"
57
57
  },
58
- "gitHead": "22ef3a397c05de85ec2457c809c0df330fc24501"
58
+ "gitHead": "2d297e607fe891b909d8ceb63463972ae053fdcb"
59
59
  }