@aeriajs/core 0.0.264 → 0.0.266
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.
|
|
3
|
+
"version": "0.0.266",
|
|
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.
|
|
46
|
-
"@aeriajs/common": "^0.0.
|
|
47
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
48
|
-
"@aeriajs/http": "^0.0.
|
|
49
|
-
"@aeriajs/security": "^0.0.
|
|
50
|
-
"@aeriajs/types": "^0.0.
|
|
51
|
-
"@aeriajs/validation": "^0.0.
|
|
45
|
+
"@aeriajs/builtins": "^0.0.266",
|
|
46
|
+
"@aeriajs/common": "^0.0.151",
|
|
47
|
+
"@aeriajs/entrypoint": "^0.0.156",
|
|
48
|
+
"@aeriajs/http": "^0.0.182",
|
|
49
|
+
"@aeriajs/security": "^0.0.266",
|
|
50
|
+
"@aeriajs/types": "^0.0.129",
|
|
51
|
+
"@aeriajs/validation": "^0.0.169"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"mongodb": "^6.16.0",
|