@aeriajs/core 0.0.263 → 0.0.265

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.
@@ -175,6 +175,9 @@ const getters = async (value, ctx) => {
175
175
  if (!ctx.options.context) {
176
176
  throw new Error;
177
177
  }
178
+ if (!ctx.property.getter) {
179
+ return types_1.Result.result(undefined);
180
+ }
178
181
  return types_1.Result.result(await ctx.property.getter(ctx.target, ctx.options.context));
179
182
  }
180
183
  return types_1.Result.result(value);
@@ -133,6 +133,9 @@ const getters = async (value, ctx) => {
133
133
  if (!ctx.options.context) {
134
134
  throw new Error();
135
135
  }
136
+ if (!ctx.property.getter) {
137
+ return Result.result(void 0);
138
+ }
136
139
  return Result.result(await ctx.property.getter(ctx.target, ctx.options.context));
137
140
  }
138
141
  return Result.result(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/core",
3
- "version": "0.0.263",
3
+ "version": "0.0.265",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "aeriaMain": "tests/fixtures/aeriaMain.js",
@@ -42,13 +42,13 @@
42
42
  "mongodb-memory-server": "^10.1.4"
43
43
  },
44
44
  "peerDependencies": {
45
- "@aeriajs/builtins": "^0.0.263",
46
- "@aeriajs/common": "^0.0.148",
47
- "@aeriajs/entrypoint": "^0.0.153",
48
- "@aeriajs/http": "^0.0.179",
49
- "@aeriajs/security": "^0.0.263",
50
- "@aeriajs/types": "^0.0.127",
51
- "@aeriajs/validation": "^0.0.166"
45
+ "@aeriajs/builtins": "^0.0.265",
46
+ "@aeriajs/common": "^0.0.150",
47
+ "@aeriajs/entrypoint": "^0.0.155",
48
+ "@aeriajs/http": "^0.0.181",
49
+ "@aeriajs/security": "^0.0.265",
50
+ "@aeriajs/types": "^0.0.128",
51
+ "@aeriajs/validation": "^0.0.168"
52
52
  },
53
53
  "dependencies": {
54
54
  "mongodb": "^6.16.0",