@zag-js/utils
Advanced tools
Comparing version 0.0.0-dev-20221108152001 to 0.0.0-dev-20221110172948
@@ -37,2 +37,3 @@ declare function toArray<T>(v: T | T[] | undefined | null): T[]; | ||
declare function compact<T extends Record<string, unknown> | undefined>(obj: T): T; | ||
declare function json(value: any): any; | ||
@@ -44,2 +45,2 @@ declare function warn(m: string): void; | ||
export { IndexOptions, add, callAll, cast, chunk, clear, compact, first, fromLength, has, hasProp, invariant, isArray, isBoolean, isDev, isEmpty, isFunction, isNumber, isObject, isString, last, next, nextIndex, noop, prev, prevIndex, remove, removeAt, runIfFn, toArray, uuid, warn }; | ||
export { IndexOptions, add, callAll, cast, chunk, clear, compact, first, fromLength, has, hasProp, invariant, isArray, isBoolean, isDev, isEmpty, isFunction, isNumber, isObject, isString, json, last, next, nextIndex, noop, prev, prevIndex, remove, removeAt, runIfFn, toArray, uuid, warn }; |
@@ -42,2 +42,3 @@ "use strict"; | ||
isString: () => isString, | ||
json: () => json, | ||
last: () => last, | ||
@@ -155,2 +156,5 @@ next: () => next, | ||
} | ||
function json(value) { | ||
return JSON.parse(JSON.stringify(value)); | ||
} | ||
@@ -193,2 +197,3 @@ // src/warning.ts | ||
isString, | ||
json, | ||
last, | ||
@@ -195,0 +200,0 @@ next, |
{ | ||
"name": "@zag-js/utils", | ||
"version": "0.0.0-dev-20221108152001", | ||
"version": "0.0.0-dev-20221110172948", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13070
387