Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@formkit/utils

Package Overview
Dependencies
Maintainers
3
Versions
467
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formkit/utils - npm Package Compare versions

Comparing version 1.0.0-beta.7-78a22c1 to 1.0.0-beta.7-7c1cca8

35

dist/index.d.ts

@@ -23,3 +23,3 @@ /**

*/
export declare function clone<T extends Record<string, unknown> | unknown[] | null>(obj: T): T;
export declare function clone<T extends Record<string, unknown> | unknown[] | null>(obj: T, explicit?: string[]): T;

@@ -121,12 +121,12 @@ /**

export declare function init<T extends object>(obj: T): T & {
__init: true;
__init?: true;
};
/**
* Determines if an object is an object or not.
* @param o - any value
* Checks if an object is a simple array or record.
* @param o - A value to check
* @returns
* @public
*/
export declare function isObject(o: any): boolean;
export declare function isObject(o: unknown): o is Record<PropertyKey, unknown> | unknown[];

@@ -141,3 +141,3 @@ /**

*/
export declare function isPojo(o: any): boolean;
export declare function isPojo(o: any): o is Record<string, any>;

@@ -160,2 +160,10 @@ /**

/**
* Determines if an object is an object or not.
* @param o - any value
* @returns
* @public
*/
export declare function isRecord(o: unknown): o is Record<PropertyKey, unknown>;
/**
* This converts camel-case to kebab case. It ONLY converts from camel to kebab.

@@ -226,2 +234,10 @@ * @param str - Converts camel to kebab

/**
* Very shallowly clones the given object.
* @param obj - The object to shallow clone
* @returns
* @public
*/
export declare function shallowClone<T>(obj: T, explicit?: string[]): T;
/**
* Turn any string into a URL/DOM safe string.

@@ -233,2 +249,9 @@ * @public

/**
* Spreads an object or an array, otherwise returns the same value.
* @param obj - Any value, but will spread objects and arrays
* @public
*/
export declare function spread<T>(obj: T, explicit?: string[]): T;
/**
* Generates a random string.

@@ -235,0 +258,0 @@ * @returns string

2

package.json
{
"name": "@formkit/utils",
"version": "1.0.0-beta.7-78a22c1",
"version": "1.0.0-beta.7-7c1cca8",
"type": "module",

@@ -5,0 +5,0 @@ "description": "Shared utilities for FormKit packages",

Sorry, the diff of this file is not supported yet

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