Huge News!Announcing our $40M Series B led by Abstract Ventures.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.4 to 1.1.0

dist/types/types-27598f9f.d.ts

12

dist/types/index.cjs.d.ts

@@ -76,6 +76,2 @@ import { Readable, Writable } from "svelte/store";

stage: "SETUP";
errors: PartialWritableErrors<Data>;
warnings: PartialWritableErrors<Data>;
data: KeyedWritable<Data>;
touched: Writable<Touched<Data>>;
config: FormConfig<Data>;

@@ -87,3 +83,3 @@ setFields(values: Data): void;

addTransformer(transformer: TransformFunction<Data>): void;
};
} & Stores<Data> & Omit<Form<Data>, "form">;
type MountedCurrentForm<Data extends Obj> = {

@@ -93,6 +89,2 @@ form: HTMLFormElement;

stage: "MOUNT" | "UPDATE";
errors: PartialWritableErrors<Data>;
warnings: PartialWritableErrors<Data>;
data: KeyedWritable<Data>;
touched: Writable<Touched<Data>>;
config: FormConfig<Data>;

@@ -104,3 +96,3 @@ setFields(values: Data): void;

addTransformer(transformer: TransformFunction<Data>): void;
};
} & Stores<Data> & Omit<Form<Data>, "form">;
type CurrentForm<Data extends Obj> = MountedCurrentForm<Data> | SetupCurrentForm<Data>;

@@ -107,0 +99,0 @@ type OnSubmitErrorState<Data extends Obj> = {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

import { Obj, TransformFunction } from "../types-bdbfc971";
import { Obj, TransformFunction } from "../types-27598f9f";
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-bdbfc971";
import { Obj, ValidationFunction, RecursivePartial } from "../types-27598f9f";
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-bdbfc971";
import { Obj, FieldValue } from "../types-27598f9f";
/** @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-bdbfc971";
import { FormControl } from "../types-27598f9f";
/**

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

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

import { Paths, Traverse, Obj } from "../types-bdbfc971";
import { Paths, Traverse, Obj } from "../types-27598f9f";
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-bdbfc971";
import { FieldValue } from "../types-27598f9f";
/** @category Helper */
declare function isFieldValue(value: unknown): value is FieldValue;
export { isFieldValue };

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

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

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

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

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

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

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

import { Obj } from "../types-bdbfc971";
import { Obj } from "../types-27598f9f";
/** @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-bdbfc971";
import { Obj } from "../types-27598f9f";
/** @ignore */
declare function _some(obj: Obj, pred: (value: unknown) => boolean): boolean;
export { _some };

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

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

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

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

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

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

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

import { Obj } from "../types-bdbfc971";
import { Obj } from "../types-27598f9f";
/** @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.4",
"version": "1.1.0",
"description": "Common utilities for Felte packages",
"author": "Pablo Berganza <pablo@berganza.dev>",
"author": {
"name": "Pablo Berganza",
"email": "pablo@berganza.dev",
"url": "https://pablo.berganza.dev"
},
"homepage": "https://github.com/pablo-abc/felte/tree/main/packages/common",

@@ -7,0 +11,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

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