@aeriajs/server 0.0.172 → 0.0.174
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/init.d.ts +4 -4
- package/package.json +9 -9
package/dist/init.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RouteContext, Collection, GenericRequest, ApiConfig, AuthenticatedToken, NonCircularJsonSchema } from '@aeriajs/types';
|
|
2
2
|
import { ACError } from '@aeriajs/types';
|
|
3
3
|
import { type createRouter } from '@aeriajs/http';
|
|
4
4
|
import { DEFAULT_API_CONFIG } from './constants.js';
|
|
@@ -6,13 +6,13 @@ export type InitApiConfig = Omit<ApiConfig, keyof typeof DEFAULT_API_CONFIG> & P
|
|
|
6
6
|
export type InitOptions = {
|
|
7
7
|
config?: InitApiConfig;
|
|
8
8
|
router?: ReturnType<typeof createRouter>;
|
|
9
|
-
setup?: (context:
|
|
10
|
-
callback?: (context:
|
|
9
|
+
setup?: (context: RouteContext) => unknown;
|
|
10
|
+
callback?: (context: RouteContext) => unknown;
|
|
11
11
|
collections?: Record<string, Collection & {
|
|
12
12
|
description: NonCircularJsonSchema;
|
|
13
13
|
}>;
|
|
14
14
|
};
|
|
15
|
-
export declare const getToken: (request: GenericRequest, context:
|
|
15
|
+
export declare const getToken: (request: GenericRequest, context: RouteContext) => Promise<{
|
|
16
16
|
readonly _tag: "Result";
|
|
17
17
|
readonly error: undefined;
|
|
18
18
|
readonly result: import("@aeriajs/types").UnauthenticatedToken | AuthenticatedToken<null, import("@aeriajs/types").UserRole, Omit<import("@aeriajs/types").SchemaWithId<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.174",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"mongodb": "^6.5.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@aeriajs/core": "^0.0.
|
|
37
|
-
"@aeriajs/builtins": "^0.0.
|
|
38
|
-
"@aeriajs/common": "^0.0.
|
|
39
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
40
|
-
"@aeriajs/http": "^0.0.
|
|
41
|
-
"@aeriajs/node-http": "^0.0.
|
|
42
|
-
"@aeriajs/server": "^0.0.
|
|
43
|
-
"@aeriajs/types": "^0.0.
|
|
36
|
+
"@aeriajs/core": "^0.0.172",
|
|
37
|
+
"@aeriajs/builtins": "^0.0.172",
|
|
38
|
+
"@aeriajs/common": "^0.0.105",
|
|
39
|
+
"@aeriajs/entrypoint": "^0.0.107",
|
|
40
|
+
"@aeriajs/http": "^0.0.118",
|
|
41
|
+
"@aeriajs/node-http": "^0.0.118",
|
|
42
|
+
"@aeriajs/server": "^0.0.174",
|
|
43
|
+
"@aeriajs/types": "^0.0.88",
|
|
44
44
|
"mongodb": "^6.5.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|