@holo-js/forms 0.3.3 → 0.3.4
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.
|
@@ -121,6 +121,7 @@ declare function validate<TShape extends SchemaInputShape>(input: FormLikeValida
|
|
|
121
121
|
declare const formsInternals: {
|
|
122
122
|
createSubmission: typeof createSubmission;
|
|
123
123
|
isRequestLikeHeaders: typeof isRequestLikeHeaders;
|
|
124
|
+
nextHeadersModuleSpecifier: string;
|
|
124
125
|
normalizeRequestLikeInput: typeof normalizeRequestLikeInput;
|
|
125
126
|
normalizeStatus: typeof normalizeStatus;
|
|
126
127
|
normalizeRequestHeaders: typeof normalizeRequestHeaders;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as FormFailureErrors, a as FormFailureInput, b as FormFailureOptions, c as FormFailurePayload, d as FormRequestLikeInput, e as FormSecurityOptions, f as FormSubmissionFailure, g as FormSubmissionResult, h as FormSubmissionSuccess, i as FormSuccessPayload, S as SerializedFormSubmission, j as createFailedSubmission, k as createSuccessfulSubmission, l as formsInternals, s as safeParse, m as sanitizeFlashedInput, n as sensitiveInputInternals, v as validate } from './contracts-
|
|
1
|
+
export { F as FormFailureErrors, a as FormFailureInput, b as FormFailureOptions, c as FormFailurePayload, d as FormRequestLikeInput, e as FormSecurityOptions, f as FormSubmissionFailure, g as FormSubmissionResult, h as FormSubmissionSuccess, i as FormSuccessPayload, S as SerializedFormSubmission, j as createFailedSubmission, k as createSuccessfulSubmission, l as formsInternals, s as safeParse, m as sanitizeFlashedInput, n as sensitiveInputInternals, v as validate } from './contracts-BOhBkI9c.js';
|
|
2
2
|
export { FormSchema, InferFormData, isFormSchema, schema } from './schema.js';
|
|
3
3
|
export { DEFAULT_VALIDATION_BAG, ErrorTree, ErrorTreeNode, FieldDefinition, FieldRule, InferSchemaData, SerializedValidationException, StandardSchemaV1, StandardSchemaV1Issue, StandardSchemaV1Props, StandardSchemaV1Result, ValidationErrorBag, ValidationException, ValidationExceptionOptions, ValidationFailure, ValidationResult, ValidationSchema, ValidationSuccess, WebFileLike, createErrorBag, defineSchema, field, isValidationException, parse } from '@holo-js/validation';
|
|
4
4
|
|
package/dist/index.mjs
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
safeParse as safeParseInput,
|
|
28
28
|
validationInternals
|
|
29
29
|
} from "@holo-js/validation";
|
|
30
|
-
var nextHeadersModuleSpecifier = "next/headers";
|
|
30
|
+
var nextHeadersModuleSpecifier = "next/headers.js";
|
|
31
31
|
var h3RawBodySymbol = /* @__PURE__ */ Symbol.for("h3RawBody");
|
|
32
32
|
function serializeSubmissionState(valid, values, errors, schemaDefinition) {
|
|
33
33
|
return Object.freeze({
|
|
@@ -493,6 +493,7 @@ async function validate(input, schemaDefinition, options = {}) {
|
|
|
493
493
|
var formsInternals = {
|
|
494
494
|
createSubmission,
|
|
495
495
|
isRequestLikeHeaders,
|
|
496
|
+
nextHeadersModuleSpecifier,
|
|
496
497
|
normalizeRequestLikeInput,
|
|
497
498
|
normalizeStatus,
|
|
498
499
|
normalizeRequestHeaders,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as FormSubmissionResult, S as SerializedFormSubmission, c as FormFailurePayload, i as FormSuccessPayload } from '../contracts-
|
|
1
|
+
import { g as FormSubmissionResult, S as SerializedFormSubmission, c as FormFailurePayload, i as FormSuccessPayload } from '../contracts-BOhBkI9c.js';
|
|
2
2
|
import { WebFileLike, SchemaInputShape, FieldBuilderInput, InferFieldOutput, ValidationErrorBag } from '@holo-js/validation';
|
|
3
3
|
import { FormSchema, InferFormData } from '../schema.js';
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holo-js/forms",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Holo-JS Framework - forms-first validation and submission contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"test": "vitest --run"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@holo-js/validation": "^0.3.
|
|
36
|
+
"@holo-js/validation": "^0.3.4"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@holo-js/security": "^0.3.
|
|
39
|
+
"@holo-js/security": "^0.3.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"@holo-js/security": {
|