@midwayjs/core 3.10.1 → 3.10.3

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.
@@ -34,7 +34,7 @@ let MidwayDecoratorService = class MidwayDecoratorService {
34
34
  // loop it, save this order for decorator run
35
35
  for (const meta of methodDecoratorMetadataList) {
36
36
  const { propertyName, key, metadata, options } = meta;
37
- if (!options.impl) {
37
+ if (!options || !options.impl) {
38
38
  continue;
39
39
  }
40
40
  // add aspect implementation first
@@ -65,7 +65,7 @@ let MidwayDecoratorService = class MidwayDecoratorService {
65
65
  for (const meta of parameterDecoratorMetadata[methodName]) {
66
66
  const { propertyName, key, metadata, parameterIndex, options, } = meta;
67
67
  let parameterDecoratorHandler;
68
- if (options.impl) {
68
+ if (options && options.impl) {
69
69
  parameterDecoratorHandler =
70
70
  this.parameterDecoratorMap.get(key);
71
71
  if (!parameterDecoratorHandler) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/core",
3
- "version": "3.10.1",
3
+ "version": "3.10.3",
4
4
  "description": "midway core",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -42,5 +42,5 @@
42
42
  "engines": {
43
43
  "node": ">=12"
44
44
  },
45
- "gitHead": "6bc9f7a97e4188399d2406f5a38bad5aeb983e07"
45
+ "gitHead": "de41ae38b72167c2a652d6eae5cfd8026c32c214"
46
46
  }