@zag-js/utils
Advanced tools
Comparing version 0.0.0-dev-20220919164136 to 0.0.0-dev-20220928123644
@@ -0,1 +1,56 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
add: () => add, | ||
callAll: () => callAll, | ||
cast: () => cast, | ||
chunk: () => chunk, | ||
clear: () => clear, | ||
first: () => first, | ||
fromLength: () => fromLength, | ||
has: () => has, | ||
hasProp: () => hasProp, | ||
invariant: () => invariant, | ||
isArray: () => isArray, | ||
isBoolean: () => isBoolean, | ||
isDev: () => isDev, | ||
isEmpty: () => isEmpty, | ||
isFunction: () => isFunction, | ||
isNumber: () => isNumber, | ||
isObject: () => isObject, | ||
isString: () => isString, | ||
last: () => last, | ||
next: () => next, | ||
nextIndex: () => nextIndex, | ||
noop: () => noop, | ||
prev: () => prev, | ||
prevIndex: () => prevIndex, | ||
remove: () => remove, | ||
removeAt: () => removeAt, | ||
runIfFn: () => runIfFn, | ||
toArray: () => toArray, | ||
uuid: () => uuid, | ||
warn: () => warn | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
// src/array.ts | ||
@@ -105,3 +160,4 @@ function toArray(v) { | ||
} | ||
export { | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
add, | ||
@@ -137,2 +193,2 @@ callAll, | ||
warn | ||
}; | ||
}); |
{ | ||
"type": "module", | ||
"name": "@zag-js/utils", | ||
"version": "0.0.0-dev-20220919164136", | ||
"version": "0.0.0-dev-20220928123644", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"keywords": [ | ||
@@ -14,4 +16,2 @@ "js", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/utilities/core", | ||
@@ -29,5 +29,5 @@ "sideEffects": false, | ||
"scripts": { | ||
"build-fast": "tsup src/index.ts --format=esm", | ||
"build-fast": "tsup src/index.ts --format=esm,cjs", | ||
"start": "pnpm build --watch", | ||
"build": "tsup src/index.ts --format=esm --dts", | ||
"build": "tsup src/index.ts --format=esm,cjs --dts", | ||
"test": "jest --config ../../../jest.config.js --rootDir . --passWithNoTests", | ||
@@ -34,0 +34,0 @@ "lint": "eslint src --ext .ts,.tsx", |
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
12180
5
357
No