@aeriajs/security 0.0.116 → 0.0.117
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/rateLimiting.d.ts +1 -0
- package/dist/use.d.ts +1 -1
- package/package.json +2 -2
package/dist/rateLimiting.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { RouteContext, RateLimitingParams } from '@aeriajs/types';
|
|
|
2
2
|
import { Result, HTTPStatus, RateLimitingError } from '@aeriajs/types';
|
|
3
3
|
export declare const getOrCreateUsageEntry: (params: RateLimitingParams, context: RouteContext) => Promise<import("@aeriajs/types").WithId<Omit<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
|
|
4
4
|
readonly $id: "resourceUsage";
|
|
5
|
+
readonly icon: "wrench";
|
|
5
6
|
readonly required: readonly ["usage"];
|
|
6
7
|
readonly properties: {
|
|
7
8
|
readonly user: {
|
package/dist/use.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const useSecurity: <TDescription extends Description>(context: Co
|
|
|
9
9
|
readonly error: undefined;
|
|
10
10
|
readonly result: any;
|
|
11
11
|
}>;
|
|
12
|
-
beforeWrite: <
|
|
12
|
+
beforeWrite: <TPayload extends Partial<InsertPayload<any>>>(payload?: TPayload) => Promise<{
|
|
13
13
|
readonly _tag: "Error";
|
|
14
14
|
readonly error: import("@aeriajs/types").ACError;
|
|
15
15
|
readonly result: undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/security",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.117",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"mongodb": "^6.5.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@aeriajs/core": "^0.0.
|
|
31
|
+
"@aeriajs/core": "^0.0.117",
|
|
32
32
|
"@aeriajs/common": "^0.0.74",
|
|
33
33
|
"@aeriajs/types": "^0.0.64",
|
|
34
34
|
"mongodb": "^6.5.0"
|