@aeriajs/core 0.0.287 → 0.0.289
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Description, SchemaWithId } from '@aeriajs/types';
|
|
2
2
|
export declare const defineDescription: <const TDescription extends Description<TDescription>>(description: TDescription) => TDescription;
|
|
3
|
-
export declare const defineDescriptionTuple: <const TDescription extends Description<TDescription>>(description:
|
|
3
|
+
export declare const defineDescriptionTuple: <const TDescription extends Description<TDescription>>(description: TDescription) => [SchemaWithId<TDescription>, TDescription];
|
package/dist/context.js
CHANGED
|
@@ -5,6 +5,9 @@ import { getDatabaseCollection } from './database.js';
|
|
|
5
5
|
import { preloadDescription } from './collection/preload.js';
|
|
6
6
|
const indepthCollection = (collectionName, collections, parentContext) => {
|
|
7
7
|
const candidate = collections[collectionName];
|
|
8
|
+
if (!candidate) {
|
|
9
|
+
throw new Error(`no such collection "${collectionName}"`);
|
|
10
|
+
}
|
|
8
11
|
const collection = typeof candidate === 'function'
|
|
9
12
|
? candidate()
|
|
10
13
|
: candidate;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.289",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"aeriaMain": "tests/fixtures/aeriaMain.js",
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
"@aeriajs/validation": "link:../validation",
|
|
37
37
|
"@types/jsonwebtoken": "^9.0.10",
|
|
38
38
|
"jsonwebtoken": "^9.0.2",
|
|
39
|
-
"mongodb": "^6.
|
|
40
|
-
"mongodb-memory-server": "^10.2.
|
|
39
|
+
"mongodb": "^6.19.0",
|
|
40
|
+
"mongodb-memory-server": "^10.2.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@aeriajs/builtins": "^0.0.
|
|
44
|
-
"@aeriajs/common": "^0.0.
|
|
45
|
-
"@aeriajs/entrypoint": "^0.0.
|
|
46
|
-
"@aeriajs/http": "^0.0.
|
|
47
|
-
"@aeriajs/security": "^0.0.
|
|
48
|
-
"@aeriajs/types": "^0.0.
|
|
49
|
-
"@aeriajs/validation": "^0.0.
|
|
43
|
+
"@aeriajs/builtins": "^0.0.289",
|
|
44
|
+
"@aeriajs/common": "^0.0.163",
|
|
45
|
+
"@aeriajs/entrypoint": "^0.0.171",
|
|
46
|
+
"@aeriajs/http": "^0.0.202",
|
|
47
|
+
"@aeriajs/security": "^0.0.289",
|
|
48
|
+
"@aeriajs/types": "^0.0.138",
|
|
49
|
+
"@aeriajs/validation": "^0.0.187"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"mongodb": "^6.
|
|
52
|
+
"mongodb": "^6.19.0",
|
|
53
53
|
"jsonwebtoken": "^9.0.2"
|
|
54
54
|
},
|
|
55
55
|
"optionalDependencies": {
|
|
56
|
-
"mongodb-memory-server": "^10.2.
|
|
56
|
+
"mongodb-memory-server": "^10.2.1"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"test": "vitest run",
|