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-0ba8ad7 to 1.0.0-beta.7-0c8db37

33

dist/index.d.ts

@@ -120,12 +120,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[];

@@ -140,3 +140,3 @@ /**

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

@@ -159,2 +159,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.

@@ -225,2 +233,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.

@@ -232,2 +248,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.

@@ -234,0 +257,0 @@ * @returns string

2

package.json
{
"name": "@formkit/utils",
"version": "1.0.0-beta.7-0ba8ad7",
"version": "1.0.0-beta.7-0c8db37",
"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