@aeriajs/core 0.0.250 → 0.0.252
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,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { Context, SchemaWithId, GetAllReturnType, Description, GetAllPayload, CountReturnType } from '@aeriajs/types';
|
|
2
|
+
import { type GetAllOptions } from './unpaginatedGetAll.js';
|
|
2
3
|
export declare const getAll: <TDescription extends Description, TFunctions>(payload: GetAllPayload<SchemaWithId<TDescription>>, context: Context<TDescription, undefined | (TFunctions & {
|
|
3
4
|
count?: (...args: unknown[]) => Promise<CountReturnType>;
|
|
4
|
-
})
|
|
5
|
+
})>, options?: GetAllOptions) => Promise<GetAllReturnType<SchemaWithId<TDescription>>>;
|
package/dist/functions/getAll.js
CHANGED
|
@@ -4,8 +4,8 @@ exports.getAll = void 0;
|
|
|
4
4
|
const types_1 = require("@aeriajs/types");
|
|
5
5
|
const makePagination_js_1 = require("../collection/makePagination.js");
|
|
6
6
|
const unpaginatedGetAll_js_1 = require("./unpaginatedGetAll.js");
|
|
7
|
-
const getAll = async (payload, context) => {
|
|
8
|
-
const { error, result } = await (0, unpaginatedGetAll_js_1.unpaginatedGetAll)(payload, context);
|
|
7
|
+
const getAll = async (payload, context, options) => {
|
|
8
|
+
const { error, result } = await (0, unpaginatedGetAll_js_1.unpaginatedGetAll)(payload, context, options);
|
|
9
9
|
if (error) {
|
|
10
10
|
return types_1.Result.error(error);
|
|
11
11
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Result } from "@aeriajs/types";
|
|
3
3
|
import { makePagination } from "../collection/makePagination.mjs";
|
|
4
4
|
import { unpaginatedGetAll } from "./unpaginatedGetAll.mjs";
|
|
5
|
-
export const getAll = async (payload, context) => {
|
|
6
|
-
const { error, result } = await unpaginatedGetAll(payload, context);
|
|
5
|
+
export const getAll = async (payload, context, options) => {
|
|
6
|
+
const { error, result } = await unpaginatedGetAll(payload, context, options);
|
|
7
7
|
if (error) {
|
|
8
8
|
return Result.error(error);
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.252",
|
|
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": "^9.2.0"
|
|
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.252",
|
|
46
|
+
"@aeriajs/common": "^0.0.141",
|
|
47
|
+
"@aeriajs/entrypoint": "^0.0.145",
|
|
48
|
+
"@aeriajs/http": "^0.0.170",
|
|
49
|
+
"@aeriajs/security": "^0.0.252",
|
|
50
|
+
"@aeriajs/types": "^0.0.123",
|
|
51
|
+
"@aeriajs/validation": "^0.0.157"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"mongodb": "^6.5.0",
|