@aeriajs/core 0.0.250 → 0.0.251

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 { type Description, type GetAllPayload, type SchemaWithId, type Context, type CountReturnType, type GetAllReturnType } from '@aeriajs/types';
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
- })>) => Promise<GetAllReturnType<SchemaWithId<TDescription>>>;
5
+ })>, options?: GetAllOptions) => Promise<GetAllReturnType<SchemaWithId<TDescription>>>;
@@ -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.250",
3
+ "version": "0.0.251",
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.250",
46
- "@aeriajs/common": "^0.0.139",
47
- "@aeriajs/entrypoint": "^0.0.143",
48
- "@aeriajs/http": "^0.0.168",
49
- "@aeriajs/security": "^0.0.250",
50
- "@aeriajs/types": "^0.0.121",
51
- "@aeriajs/validation": "^0.0.155"
45
+ "@aeriajs/builtins": "^0.0.251",
46
+ "@aeriajs/common": "^0.0.140",
47
+ "@aeriajs/entrypoint": "^0.0.144",
48
+ "@aeriajs/http": "^0.0.169",
49
+ "@aeriajs/security": "^0.0.251",
50
+ "@aeriajs/types": "^0.0.122",
51
+ "@aeriajs/validation": "^0.0.156"
52
52
  },
53
53
  "dependencies": {
54
54
  "mongodb": "^6.5.0",