@stacksjs/validation 0.75.539 → 0.75.542
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/messages.d.ts +2 -0
- package/dist/reporter.d.ts +2 -0
- package/dist/validated-value.d.ts +1 -0
- package/package.json +7 -7
package/dist/messages.d.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* `required` when it is required. Empty when the validator cannot say.
|
|
4
4
|
*/
|
|
5
5
|
export declare function messageKeys(rule: unknown): Set<string>;
|
|
6
|
+
/** Preserve a structural validator's known failure without inferring it from text. */
|
|
7
|
+
export declare function validationFailure(message: string, name: string): ReportedError;
|
|
6
8
|
/** Capture the effective conditional rule's failure names while its result is available. */
|
|
7
9
|
export declare function validateRule(rule: unknown, value: unknown): { valid: boolean, errors: import('@stacksjs/ts-validation').ValidationErrors };
|
|
8
10
|
/** Apply field messages to exact or flattened descendant errors without losing failure metadata. */
|
package/dist/reporter.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Called synchronously before a validation operation's first await. */
|
|
2
|
+
export declare function beginValidation(): void;
|
|
1
3
|
/** Explicit scope for standalone tasks or adapters that report errors themselves. */
|
|
2
4
|
export declare function withValidationContext<T>(run: () => T): T;
|
|
3
5
|
export declare function reportError(errors: MessageObject[]): void;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/validation",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.542",
|
|
6
6
|
"description": "The Stacks Validation ways.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -64,18 +64,18 @@
|
|
|
64
64
|
"prepublishOnly": "bun run build"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@stacksjs/error-handling": "0.75.
|
|
68
|
-
"@stacksjs/path": "0.75.
|
|
69
|
-
"@stacksjs/strings": "0.75.
|
|
67
|
+
"@stacksjs/error-handling": "0.75.542",
|
|
68
|
+
"@stacksjs/path": "0.75.542",
|
|
69
|
+
"@stacksjs/strings": "0.75.542",
|
|
70
70
|
"@stacksjs/ts-validation": "^0.5.7",
|
|
71
|
-
"@stacksjs/types": "0.75.
|
|
72
|
-
"@stacksjs/utils": "0.75.
|
|
71
|
+
"@stacksjs/types": "0.75.542",
|
|
72
|
+
"@stacksjs/utils": "0.75.542"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"better-dx": "^0.2.24"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@stacksjs/database": "0.75.
|
|
78
|
+
"@stacksjs/database": "0.75.542"
|
|
79
79
|
},
|
|
80
80
|
"peerDependenciesMeta": {
|
|
81
81
|
"@stacksjs/database": {
|