@alepha/bucket-vercel 0.13.7 → 0.14.0
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/index.d.ts +31 -28
- package/package.json +7 -8
package/dist/index.d.ts
CHANGED
|
@@ -316,9 +316,38 @@ declare class JsonSchemaCodec extends SchemaCodec {
|
|
|
316
316
|
decode<T>(schema: TSchema, value: unknown): T;
|
|
317
317
|
}
|
|
318
318
|
//#endregion
|
|
319
|
+
//#region ../alepha/src/core/primitives/$hook.d.ts
|
|
320
|
+
interface HookOptions<T extends keyof Hooks> {
|
|
321
|
+
/**
|
|
322
|
+
* The name of the hook. "configure", "start", "ready", "stop", ...
|
|
323
|
+
*/
|
|
324
|
+
on: T;
|
|
325
|
+
/**
|
|
326
|
+
* The handler to run when the hook is triggered.
|
|
327
|
+
*/
|
|
328
|
+
handler: (args: Hooks[T]) => Async<any>;
|
|
329
|
+
/**
|
|
330
|
+
* Force the hook to run first or last on the list of hooks.
|
|
331
|
+
*/
|
|
332
|
+
priority?: "first" | "last";
|
|
333
|
+
/**
|
|
334
|
+
* Empty placeholder, not implemented yet. :-)
|
|
335
|
+
*/
|
|
336
|
+
before?: object | Array<object>;
|
|
337
|
+
/**
|
|
338
|
+
* Empty placeholder, not implemented yet. :-)
|
|
339
|
+
*/
|
|
340
|
+
after?: object | Array<object>;
|
|
341
|
+
}
|
|
342
|
+
declare class HookPrimitive<T extends keyof Hooks> extends Primitive<HookOptions<T>> {
|
|
343
|
+
called: number;
|
|
344
|
+
protected onInit(): void;
|
|
345
|
+
}
|
|
346
|
+
//#endregion
|
|
319
347
|
//#region ../alepha/src/core/providers/SchemaValidator.d.ts
|
|
320
348
|
declare class SchemaValidator {
|
|
321
349
|
protected cache: Map<TSchema, Validator<typebox3.TProperties, TSchema, unknown, unknown>>;
|
|
350
|
+
protected useEval: boolean;
|
|
322
351
|
/**
|
|
323
352
|
* Validate the value against the provided schema.
|
|
324
353
|
*
|
|
@@ -337,6 +366,8 @@ declare class SchemaValidator {
|
|
|
337
366
|
* Used by `beforeParse` to determine if a schema allows null values.
|
|
338
367
|
*/
|
|
339
368
|
protected isSchemaNullable: (schema: any) => boolean;
|
|
369
|
+
protected onConfigure: HookPrimitive<"configure">;
|
|
370
|
+
protected canEval(): boolean;
|
|
340
371
|
}
|
|
341
372
|
interface ValidateOptions {
|
|
342
373
|
trim?: boolean;
|
|
@@ -1071,34 +1102,6 @@ declare module "alepha" {
|
|
|
1071
1102
|
}
|
|
1072
1103
|
}
|
|
1073
1104
|
//#endregion
|
|
1074
|
-
//#region ../alepha/src/core/primitives/$hook.d.ts
|
|
1075
|
-
interface HookOptions<T extends keyof Hooks> {
|
|
1076
|
-
/**
|
|
1077
|
-
* The name of the hook. "configure", "start", "ready", "stop", ...
|
|
1078
|
-
*/
|
|
1079
|
-
on: T;
|
|
1080
|
-
/**
|
|
1081
|
-
* The handler to run when the hook is triggered.
|
|
1082
|
-
*/
|
|
1083
|
-
handler: (args: Hooks[T]) => Async<any>;
|
|
1084
|
-
/**
|
|
1085
|
-
* Force the hook to run first or last on the list of hooks.
|
|
1086
|
-
*/
|
|
1087
|
-
priority?: "first" | "last";
|
|
1088
|
-
/**
|
|
1089
|
-
* Empty placeholder, not implemented yet. :-)
|
|
1090
|
-
*/
|
|
1091
|
-
before?: object | Array<object>;
|
|
1092
|
-
/**
|
|
1093
|
-
* Empty placeholder, not implemented yet. :-)
|
|
1094
|
-
*/
|
|
1095
|
-
after?: object | Array<object>;
|
|
1096
|
-
}
|
|
1097
|
-
declare class HookPrimitive<T extends keyof Hooks> extends Primitive<HookOptions<T>> {
|
|
1098
|
-
called: number;
|
|
1099
|
-
protected onInit(): void;
|
|
1100
|
-
}
|
|
1101
|
-
//#endregion
|
|
1102
1105
|
//#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
|
|
1103
1106
|
declare const logEntrySchema: TObject$1<{
|
|
1104
1107
|
level: TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"blob"
|
|
11
11
|
],
|
|
12
12
|
"author": "Nicolas Foures",
|
|
13
|
-
"version": "0.
|
|
13
|
+
"version": "0.14.0",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=22.0.0"
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"@vercel/blob": "^2.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@types/node": "^25.0.
|
|
30
|
-
"alepha": "0.
|
|
31
|
-
"tsdown": "^0.
|
|
32
|
-
"vitest": "^4.0.
|
|
29
|
+
"@types/node": "^25.0.3",
|
|
30
|
+
"alepha": "0.14.0",
|
|
31
|
+
"tsdown": "^0.18.3",
|
|
32
|
+
"vitest": "^4.0.16"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"alepha": "0.
|
|
35
|
+
"alepha": "0.14.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"lint": "alepha lint",
|
|
@@ -44,6 +44,5 @@
|
|
|
44
44
|
"type": "git",
|
|
45
45
|
"url": "git+https://github.com/feunard/alepha.git"
|
|
46
46
|
},
|
|
47
|
-
"homepage": "https://github.com/feunard/alepha"
|
|
48
|
-
"module": "./dist/index.js"
|
|
47
|
+
"homepage": "https://github.com/feunard/alepha"
|
|
49
48
|
}
|