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

@zag-js/utils

Package Overview
Dependencies
Maintainers
1
Versions
786
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/utils - npm Package Compare versions

Comparing version 0.0.0-dev-20220412162814 to 0.0.0-dev-20220412212252

2

dist/index.js

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

var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var O=t=>a(t,"__esModule",{value:!0});var K=(t,n)=>{for(var e in n)a(t,e,{get:n[e],enumerable:!0})},I=(t,n,e,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of w(n))!N.call(t,r)&&(e||r!=="default")&&a(t,r,{get:()=>n[r],enumerable:!(o=A(n,r))||o.enumerable});return t};var P=(t=>(n,e)=>t&&t.get(n)||(e=I(O({}),n,1),t&&t.set(n,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var lt={};K(lt,{add:()=>R,callAll:()=>z,cast:()=>W,chunk:()=>_,clear:()=>S,first:()=>j,fromLength:()=>k,has:()=>F,invariant:()=>Tt,isApple:()=>Y,isArray:()=>v,isBoolean:()=>Z,isCtrlKey:()=>at,isDev:()=>H,isDom:()=>c,isEmpty:()=>D,isFirefox:()=>Q,isFunction:()=>nt,isIPad:()=>g,isIPhone:()=>E,isIos:()=>h,isLeftClick:()=>ct,isMac:()=>u,isModifiedEvent:()=>ut,isMouseEvent:()=>st,isNumber:()=>$,isObject:()=>l,isRightClick:()=>pt,isSafari:()=>J,isString:()=>tt,isTouchEvent:()=>it,isWebkit:()=>X,last:()=>d,merge:()=>b,next:()=>U,nextIndex:()=>x,noop:()=>B,pipe:()=>q,prev:()=>V,prevIndex:()=>m,remove:()=>C,removeAt:()=>y,runIfFn:()=>L,supportsMouseEvent:()=>rt,supportsPointerEvent:()=>et,supportsTouchEvent:()=>ot,toArray:()=>M,uuid:()=>G,warn:()=>xt});function M(t){return t?Array.isArray(t)?t:[t]:[]}var k=t=>Array.from(Array(t).keys()),j=t=>t[0],d=t=>t[t.length-1],D=t=>t.length===0,F=(t,n)=>t.indexOf(n)!==-1,R=(t,...n)=>t.concat(n),C=(t,n)=>y(t,t.indexOf(n)),y=(t,n)=>(n>-1&&t.splice(n,1),t);function S(t){for(;t.length>0;)t.pop();return t}function x(t,n,e={}){let{step:o=1,loop:r=!0}=e,s=n+o,i=t.length,f=i-1;return n===-1?o>0?0:f:s<0?r?f:0:s>=i?r?0:n>i?i:n:s}function U(t,n,e={}){return t[x(t,n,e)]}function m(t,n,e={}){let{step:o=1,loop:r=!0}=e;return x(t,n,{step:-o,loop:r})}function V(t,n,e={}){return t[m(t,n,e)]}var _=(t,n)=>{let e=[];return t.reduce((o,r,s)=>{var i;return s%n===0?o.push([r]):(i=d(o))==null||i.push(r),o},e)};var L=(t,...n)=>{let e=typeof t=="function"?t(...n):t;return e!=null?e:void 0},W=t=>t,B=()=>{},q=(...t)=>n=>t.reduce((e,o)=>o(e),n),z=(...t)=>(...n)=>{t.forEach(function(e){e==null||e(...n)})},G=(()=>{let t=0;return()=>(t++,t.toString(36))})();function b(t,n){if(typeof n!="object")return n;let e=typeof t!="object"?{}:Object.assign({},t);for(let o of Object.keys(n)){let r=n[o],s=e[o];r===null?delete e[o]:Array.isArray(r)||Array.isArray(s)?e[o]=(s||[]).concat(r||[]):e[o]=b(s,r)}return e}var T=t=>c()&&t.test(navigator.platform),p=t=>c()&&t.test(navigator.userAgent),H=()=>!1,c=()=>typeof window!="undefined",u=()=>T(/^Mac/),E=()=>T(/^iPhone/),g=()=>T(/^iPad/)||u()&&navigator.maxTouchPoints>1,h=()=>E()||g(),J=()=>p(/^((?!chrome|android).)*safari/i),Q=()=>p(/^Firefox/),X=()=>p(/^WebKit/)&&!p(/Chrome/),Y=()=>u()||h(),v=t=>Array.isArray(t),Z=t=>t===!0||t===!1,l=t=>!(t==null||typeof t!="object"||v(t)),$=t=>typeof t=="number"&&!Number.isNaN(t),tt=t=>typeof t=="string",nt=t=>typeof t=="function",et=()=>c()&&window.onpointerdown===null,ot=()=>c()&&window.ontouchstart===null,rt=()=>c()&&window.onmousedown===null,st=t=>l(t)&&"button"in t,it=t=>l(t)&&"touches"in t,ct=t=>t.button===0,pt=t=>t.button===2,ut=t=>t.ctrlKey||t.altKey||t.metaKey||t.shiftKey,at=t=>u()?t.metaKey&&!t.ctrlKey:t.ctrlKey&&!t.metaKey;function xt(...t){let n=t.length===1?t[0]:t[1],e=t.length===2?t[0]:!0}function Tt(...t){let n=t.length===1?t[0]:t[1],e=t.length===2?t[0]:!0}module.exports=P(lt);
var a=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var O=(t,n)=>{for(var e in n)a(t,e,{get:n[e],enumerable:!0})},K=(t,n,e,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of w(n))!N.call(t,r)&&r!==e&&a(t,r,{get:()=>n[r],enumerable:!(o=A(n,r))||o.enumerable});return t};var I=t=>K(a({},"__esModule",{value:!0}),t);var Tt={};O(Tt,{add:()=>F,callAll:()=>q,cast:()=>L,chunk:()=>V,clear:()=>C,first:()=>k,fromLength:()=>M,has:()=>D,invariant:()=>xt,isApple:()=>X,isArray:()=>v,isBoolean:()=>Y,isCtrlKey:()=>ut,isDev:()=>G,isDom:()=>c,isEmpty:()=>j,isFirefox:()=>J,isFunction:()=>tt,isIPad:()=>g,isIPhone:()=>E,isIos:()=>h,isLeftClick:()=>it,isMac:()=>u,isModifiedEvent:()=>pt,isMouseEvent:()=>rt,isNumber:()=>Z,isObject:()=>l,isRightClick:()=>ct,isSafari:()=>H,isString:()=>$,isTouchEvent:()=>st,isWebkit:()=>Q,last:()=>d,merge:()=>b,next:()=>S,nextIndex:()=>x,noop:()=>W,pipe:()=>B,prev:()=>U,prevIndex:()=>m,remove:()=>R,removeAt:()=>y,runIfFn:()=>_,supportsMouseEvent:()=>ot,supportsPointerEvent:()=>nt,supportsTouchEvent:()=>et,toArray:()=>P,uuid:()=>z,warn:()=>at});module.exports=I(Tt);function P(t){return t?Array.isArray(t)?t:[t]:[]}var M=t=>Array.from(Array(t).keys()),k=t=>t[0],d=t=>t[t.length-1],j=t=>t.length===0,D=(t,n)=>t.indexOf(n)!==-1,F=(t,...n)=>t.concat(n),R=(t,n)=>y(t,t.indexOf(n)),y=(t,n)=>(n>-1&&t.splice(n,1),t);function C(t){for(;t.length>0;)t.pop();return t}function x(t,n,e={}){let{step:o=1,loop:r=!0}=e,s=n+o,i=t.length,f=i-1;return n===-1?o>0?0:f:s<0?r?f:0:s>=i?r?0:n>i?i:n:s}function S(t,n,e={}){return t[x(t,n,e)]}function m(t,n,e={}){let{step:o=1,loop:r=!0}=e;return x(t,n,{step:-o,loop:r})}function U(t,n,e={}){return t[m(t,n,e)]}var V=(t,n)=>{let e=[];return t.reduce((o,r,s)=>{var i;return s%n===0?o.push([r]):(i=d(o))==null||i.push(r),o},e)};var _=(t,...n)=>{let e=typeof t=="function"?t(...n):t;return e!=null?e:void 0},L=t=>t,W=()=>{},B=(...t)=>n=>t.reduce((e,o)=>o(e),n),q=(...t)=>(...n)=>{t.forEach(function(e){e==null||e(...n)})},z=(()=>{let t=0;return()=>(t++,t.toString(36))})();function b(t,n){if(typeof n!="object")return n;let e=typeof t!="object"?{}:Object.assign({},t);for(let o of Object.keys(n)){let r=n[o],s=e[o];r===null?delete e[o]:Array.isArray(r)||Array.isArray(s)?e[o]=(s||[]).concat(r||[]):e[o]=b(s,r)}return e}var T=t=>c()&&t.test(navigator.platform),p=t=>c()&&t.test(navigator.userAgent),G=()=>!1,c=()=>typeof window!="undefined",u=()=>T(/^Mac/),E=()=>T(/^iPhone/),g=()=>T(/^iPad/)||u()&&navigator.maxTouchPoints>1,h=()=>E()||g(),H=()=>p(/^((?!chrome|android).)*safari/i),J=()=>p(/^Firefox/),Q=()=>p(/^WebKit/)&&!p(/Chrome/),X=()=>u()||h(),v=t=>Array.isArray(t),Y=t=>t===!0||t===!1,l=t=>!(t==null||typeof t!="object"||v(t)),Z=t=>typeof t=="number"&&!Number.isNaN(t),$=t=>typeof t=="string",tt=t=>typeof t=="function",nt=()=>c()&&window.onpointerdown===null,et=()=>c()&&window.ontouchstart===null,ot=()=>c()&&window.onmousedown===null,rt=t=>l(t)&&"button"in t,st=t=>l(t)&&"touches"in t,it=t=>t.button===0,ct=t=>t.button===2,pt=t=>t.ctrlKey||t.altKey||t.metaKey||t.shiftKey,ut=t=>u()?t.metaKey&&!t.ctrlKey:t.ctrlKey&&!t.metaKey;function at(...t){let n=t.length===1?t[0]:t[1],e=t.length===2?t[0]:!0}function xt(...t){let n=t.length===1?t[0]:t[1],e=t.length===2?t[0]:!0}
//# sourceMappingURL=index.js.map
{
"name": "@zag-js/utils",
"version": "0.0.0-dev-20220412162814",
"version": "0.0.0-dev-20220412212252",
"description": "",

@@ -11,3 +11,3 @@ "keywords": [

"author": "Segun Adebayo <sage@adebayosegun.com>",
"homepage": "https://github.com/chakra-ui/ui-machines#readme",
"homepage": "https://github.com/chakra-ui/zag#readme",
"license": "MIT",

@@ -17,3 +17,3 @@ "main": "dist/index.js",

"types": "dist/index.d.ts",
"repository": "https://github.com/chakra-ui/ui-machines/tree/main/packages/utilities/core",
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/utilities/core",
"sideEffects": false,

@@ -27,4 +27,4 @@ "files": [

"bugs": {
"url": "https://github.com/chakra-ui/ui-machines/issues"
"url": "https://github.com/chakra-ui/zag/issues"
}
}

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