@aeriajs/security 0.0.142 → 0.0.144
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/use.d.ts +2 -2
- package/package.json +4 -4
package/dist/use.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import type { Context, Description, ACError } from '@aeriajs/types';
|
|
|
2
2
|
import type { CollectionHookReadPayload, CollectionHookWritePayload } from './types.js';
|
|
3
3
|
import { Result } from '@aeriajs/types';
|
|
4
4
|
export declare const useSecurity: <TDescription extends Description>(context: Context<TDescription>) => {
|
|
5
|
-
secureReadPayload: <TPayload extends Partial<CollectionHookReadPayload>>(payload?: TPayload) => Promise<Result.Either<ACError.InvalidLimit, TPayload & CollectionHookReadPayload>>;
|
|
6
|
-
secureWritePayload: <TPayload extends CollectionHookWritePayload>(payload?: TPayload) => Promise<Result.Either<ACError, TPayload>>;
|
|
5
|
+
secureReadPayload: <TPayload extends Partial<CollectionHookReadPayload>>(payload?: TPayload) => Promise<Result.Either<ACError.InvalidLimit | ACError.OwnershipError, TPayload & CollectionHookReadPayload>>;
|
|
6
|
+
secureWritePayload: <TPayload extends CollectionHookWritePayload>(payload?: TPayload) => Promise<Result.Either<ACError.TargetImmutable | ACError.OwnershipError | ACError.ResourceNotFound, TPayload>>;
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/security",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.144",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"mongodb": "^6.5.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@aeriajs/core": "^0.0.
|
|
32
|
-
"@aeriajs/common": "^0.0.
|
|
33
|
-
"@aeriajs/types": "^0.0.
|
|
31
|
+
"@aeriajs/core": "^0.0.144",
|
|
32
|
+
"@aeriajs/common": "^0.0.89",
|
|
33
|
+
"@aeriajs/types": "^0.0.77",
|
|
34
34
|
"mongodb": "^6.5.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|