New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@felte/common

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@felte/common - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

dist/types/types-bdbfc971.d.ts

6

dist/types/index.cjs.d.ts

@@ -154,3 +154,3 @@ import { Readable, Writable } from "svelte/store";

/** Optional function that accepts any thrown exceptions from the onSubmit function. You can return an object with the same shape [[`Errors`]] for a reporter to use it. */
onError?: (error: unknown, context: SubmitContext<Data>) => Promise<void | Errors<Data>> | void | Errors<Data>;
onError?: (error: unknown, context: SubmitContext<Data>) => Promise<void | AssignableErrors<Data>> | void | AssignableErrors<Data>;
/** Optional function/s to extend Felte's functionality. */

@@ -178,3 +178,3 @@ extend?: Extender<Data> | Extender<Data>[];

/** Optional function that accepts any thrown exceptions from the onSubmit function. You can return an object with the same shape [[`Errors`]] for a reporter to use it. */
onError?: (error: unknown, context: SubmitContext<Data>) => Promise<void | Errors<Data>> | void | Errors<Data>;
onError?: (error: unknown, context: SubmitContext<Data>) => Promise<void | AssignableErrors<Data>> | void | AssignableErrors<Data>;
/** Optional function/s to extend Felte's functionality. */

@@ -257,3 +257,3 @@ extend?: Extender<Data> | Extender<Data>[];

/** Function that creates a submit handler. If a function is passed as first argument it overrides the default `onSubmit` function set in the `createForm` config object. */
createSubmitHandler: (altConfig?: CreateSubmitHandlerConfig<Data>) => (e?: Event) => void;
createSubmitHandler: (altConfig?: CreateSubmitHandlerConfig<Data>) => (e?: Event) => Promise<void>;
};

@@ -260,0 +260,0 @@ type StoreFactory<Ext = Record<string, any>> = <Value>(initialValue: Value) => Writable<Value> & Ext;

@@ -24,3 +24,3 @@ export { _some } from "./utils/some";

export * from "./utils/domUtils";
export * from "./types-f8d7390f";
export * from "./types-bdbfc971";
//# sourceMappingURL=index.d.ts.map

@@ -1,4 +0,4 @@

import { Obj } from "../types-f8d7390f";
import { Obj } from "../types-bdbfc971";
/** @ignore */
declare function _cloneDeep<T extends Obj>(obj: T): T;
export { _cloneDeep };

@@ -1,2 +0,2 @@

import { Obj, DeepSetResult } from "../types-f8d7390f";
import { Obj, DeepSetResult } from "../types-bdbfc971";
/**

@@ -3,0 +3,0 @@ * @category Helper

@@ -1,2 +0,2 @@

import { Obj } from "../types-f8d7390f";
import { Obj } from "../types-bdbfc971";
/**

@@ -3,0 +3,0 @@ * @category Helper

@@ -1,4 +0,4 @@

import { Obj } from "../types-f8d7390f";
import { Obj } from "../types-bdbfc971";
/** @ignore */
declare function _defaultsDeep<T extends Obj>(...args: any[]): T;
export { _defaultsDeep };

@@ -1,2 +0,2 @@

import { FormControl, Obj, FieldValue, Touched } from "../types-f8d7390f";
import { FormControl, Obj, FieldValue, Touched } from "../types-bdbfc971";
/**

@@ -3,0 +3,0 @@ * @ignore

@@ -1,3 +0,3 @@

import { Obj, TransformFunction } from "../types-f8d7390f";
import { Obj, TransformFunction } from "../types-bdbfc971";
declare function executeTransforms<Data extends Obj>(values: Obj, transforms?: TransformFunction<Data>[] | TransformFunction<Data>): ReturnType<TransformFunction<Data>>;
export { executeTransforms };

@@ -1,4 +0,4 @@

import { Obj, ValidationFunction, RecursivePartial } from "../types-f8d7390f";
import { Obj, ValidationFunction, RecursivePartial } from "../types-bdbfc971";
declare function mergeErrors<Data extends Obj>(errors: (RecursivePartial<Data> | undefined)[]): Data;
declare function runValidations<Data extends Obj>(values: Data, validationOrValidations?: ValidationFunction<Data>[] | ValidationFunction<Data>): ReturnType<ValidationFunction<Data>>[];
export { mergeErrors, runValidations };

@@ -1,4 +0,4 @@

import { Obj, FieldValue } from "../types-f8d7390f";
import { Obj, FieldValue } from "../types-bdbfc971";
/** @ignore */
declare function _get<Data extends Obj, Default = undefined>(obj: Data, path: string, defaultValue?: Default): Default | FieldValue | FieldValue[];
export { _get };

@@ -1,2 +0,2 @@

import { FormControl } from "../types-f8d7390f";
import { FormControl } from "../types-bdbfc971";
/**

@@ -3,0 +3,0 @@ * @category Helper

@@ -1,2 +0,2 @@

import { Paths, Traverse, Obj } from "../types-f8d7390f";
import { Paths, Traverse, Obj } from "../types-bdbfc971";
declare function getValue<T>(storeValue: T): T;

@@ -3,0 +3,0 @@ declare function getValue<T extends Obj, R>(storeValue: T, selector: (value: T) => R): R;

@@ -1,4 +0,4 @@

import { FieldValue } from "../types-f8d7390f";
import { FieldValue } from "../types-bdbfc971";
/** @category Helper */
declare function isFieldValue(value: unknown): value is FieldValue;
export { isFieldValue };

@@ -1,4 +0,4 @@

import { Obj } from "../types-f8d7390f";
import { Obj } from "../types-bdbfc971";
/** @ignore */
declare function _mapValues(obj: Obj, updater: (value: unknown) => unknown): Obj;
export { _mapValues };

@@ -1,4 +0,4 @@

import { Obj } from "../types-f8d7390f";
import { Obj } from "../types-bdbfc971";
/** @ignore */
declare function _merge<T extends Obj>(...args: any[]): T;
export { _merge };

@@ -1,4 +0,4 @@

import { Obj } from "../types-f8d7390f";
import { Obj } from "../types-bdbfc971";
/** @ignore */
declare function _mergeWith<T extends Obj>(...args: any[]): T;
export { _mergeWith };

@@ -1,4 +0,4 @@

import { Obj } from "../types-f8d7390f";
import { Obj } from "../types-bdbfc971";
/** @ignore */
declare function _set<Data extends Obj>(obj: Data | undefined, path: string | string[], value: any): Data;
export { _set };

@@ -1,4 +0,4 @@

import { Obj } from "../types-f8d7390f";
import { Obj } from "../types-bdbfc971";
/** @ignore */
declare function _some(obj: Obj, pred: (value: unknown) => boolean): boolean;
export { _some };

@@ -1,2 +0,2 @@

import { FormControl } from "../types-f8d7390f";
import { FormControl } from "../types-bdbfc971";
/**

@@ -3,0 +3,0 @@ * @category Helper

@@ -1,2 +0,2 @@

import { Obj } from "../types-f8d7390f";
import { Obj } from "../types-bdbfc971";
/** @ignore */

@@ -3,0 +3,0 @@ declare function _unset(obj: undefined, path: string | string[]): undefined;

@@ -1,4 +0,4 @@

import { Obj } from "../types-f8d7390f";
import { Obj } from "../types-bdbfc971";
/** @ignore */
declare function _update<Data extends Obj>(obj: Data | undefined, path: string | string[], updater: (value: any) => any): Data;
export { _update };
{
"name": "@felte/common",
"version": "1.0.1",
"version": "1.0.2",
"description": "Common utilities for Felte packages",

@@ -50,3 +50,3 @@ "author": "Pablo Berganza <pablo@berganza.dev>",

},
"readme": "# @felte/common\n\n[![Bundle size](https://img.shields.io/bundlephobia/min/@felte/common)](https://bundlephobia.com/result?p=@felte/common)\n[![NPM Version](https://img.shields.io/npm/v/@felte/common)](https://www.npmjs.com/package/@felte/common)\n\nCommon utilities and types for Felte and its related packages.\n"
"readme": "# @felte/common\n\n[![Tests](https://github.com/pablo-abc/felte/workflows/Tests/badge.svg)](https://github.com/pablo-abc/felte/actions/workflows/test.yml)\n[![Bundle size](https://img.shields.io/bundlephobia/min/@felte/common)](https://bundlephobia.com/result?p=@felte/common)\n[![NPM Version](https://img.shields.io/npm/v/@felte/common)](https://www.npmjs.com/package/@felte/common)\n[![codecov](https://codecov.io/gh/pablo-abc/felte/branch/main/graph/badge.svg?token=T73OJZ50LC)](https://codecov.io/gh/pablo-abc/felte)\n\nCommon utilities and types for Felte and its related packages.\n"
}
# @felte/common
[![Tests](https://github.com/pablo-abc/felte/workflows/Tests/badge.svg)](https://github.com/pablo-abc/felte/actions/workflows/test.yml)
[![Bundle size](https://img.shields.io/bundlephobia/min/@felte/common)](https://bundlephobia.com/result?p=@felte/common)
[![NPM Version](https://img.shields.io/npm/v/@felte/common)](https://www.npmjs.com/package/@felte/common)
[![codecov](https://codecov.io/gh/pablo-abc/felte/branch/main/graph/badge.svg?token=T73OJZ50LC)](https://codecov.io/gh/pablo-abc/felte)
Common utilities and types for Felte and its related packages.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc