@aeriajs/server 0.0.243 → 0.0.245
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/dist/handler.mjs +6 -16
- package/package.json +4 -4
package/dist/handler.mjs
CHANGED
|
@@ -53,14 +53,9 @@ export const customVerbs = () => async (parentContext) => {
|
|
|
53
53
|
calledFunction: functionName,
|
|
54
54
|
parentContext
|
|
55
55
|
});
|
|
56
|
-
const { error, result: fn } = await getFunction(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
context.token,
|
|
60
|
-
{
|
|
61
|
-
exposedOnly: true
|
|
62
|
-
}
|
|
63
|
-
);
|
|
56
|
+
const { error, result: fn } = await getFunction(collectionName, functionName, context.token, {
|
|
57
|
+
exposedOnly: true
|
|
58
|
+
});
|
|
64
59
|
if (error) {
|
|
65
60
|
return context.error(getACErrorHttpCode(error), {
|
|
66
61
|
code: error
|
|
@@ -94,14 +89,9 @@ export const regularVerb = (functionName) => async (parentContext) => {
|
|
|
94
89
|
});
|
|
95
90
|
}
|
|
96
91
|
}
|
|
97
|
-
const { error, result: fn } = await getFunction(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
context.token,
|
|
101
|
-
{
|
|
102
|
-
exposedOnly: true
|
|
103
|
-
}
|
|
104
|
-
);
|
|
92
|
+
const { error, result: fn } = await getFunction(collectionName, functionName, context.token, {
|
|
93
|
+
exposedOnly: true
|
|
94
|
+
});
|
|
105
95
|
if (error) {
|
|
106
96
|
return context.error(getACErrorHttpCode(error), {
|
|
107
97
|
code: error
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.245",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"mongodb": "^6.5.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@aeriajs/core": "^0.0.
|
|
37
|
-
"@aeriajs/builtins": "^0.0.
|
|
36
|
+
"@aeriajs/core": "^0.0.243",
|
|
37
|
+
"@aeriajs/builtins": "^0.0.243",
|
|
38
38
|
"@aeriajs/common": "^0.0.136",
|
|
39
39
|
"@aeriajs/entrypoint": "^0.0.140",
|
|
40
40
|
"@aeriajs/http": "^0.0.164",
|
|
41
41
|
"@aeriajs/node-http": "^0.0.164",
|
|
42
|
-
"@aeriajs/server": "^0.0.
|
|
42
|
+
"@aeriajs/server": "^0.0.245",
|
|
43
43
|
"@aeriajs/types": "^0.0.118",
|
|
44
44
|
"mongodb": "^6.5.0"
|
|
45
45
|
},
|