@sourceregistry/sveltekit-enhance 1.0.0 → 1.0.1

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.
@@ -169,7 +169,7 @@ export declare function handle<T>(data: MaybePromise<FormData> | Request, fn: (i
169
169
  data: FormData;
170
170
  form: FormContext;
171
171
  }) => MaybePromise<T>, ...errorHandlers: EnhanceErrorHandler[]): Promise<T>;
172
- export declare function enhance(input: EnhanceInput): Promise<{
172
+ declare function enhance(input: EnhanceInput): Promise<{
173
173
  form: FormContext;
174
174
  }>;
175
175
  export declare function process<T, R>(formdata: FormData, name: string, parser: (formdata: FormData, name: string) => T, processor: (val: T, name: string) => R): R;
@@ -453,7 +453,7 @@ export async function handle(data, fn, ...errorHandlers) {
453
453
  throw e;
454
454
  }
455
455
  }
456
- export async function enhance(input) {
456
+ async function enhance(input) {
457
457
  const data = input.request.headers.has('Content-Type') &&
458
458
  input.request.headers.get('Content-Type')?.includes('form')
459
459
  ? await input.request.formData()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sourceregistry/sveltekit-enhance",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Composable enhance and form utilities for SvelteKit actions, loads, methods, and hooks.",
5
5
  "author": "A.P.A. Slaa (a.p.a.slaa@projectsource.nl)",
6
6
  "scripts": {