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

@any-touch/shared

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@any-touch/shared - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3-2.0.3-alpha.1.0

2

dist/index.es.js

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

import{__assign as t}from"tslib";var e=Object.prototype.toString;function n(t){return"[object Function]"===e.call(t)}var o,c="clientX",u="clientY",r=16,a="start",i="move",d="cancel",l="end",m="computed",s="left",v="right",f="up",h="down",p="touch",b="mouse",g="touchstart",j="touchmove",w="touchend",x="touchcancel",y="mouseup",F="mousemove",M="mousedown",N=((o={})[4]="start",o[5]="move",o[1]="end",o[3]="cancel",o);function O(t){return N[t]}function S(t,e,n){var o,c,u,r,a,i,d,l={1:(o={},o[0]=(c={},c.move=4,c),o[4]=(u={},u.move=5,u.end=1,u.cancel=3,u),o[5]=(r={},r.move=5,r.end=1,r.cancel=3,r),o),0:(a={},a[4]=(i={},i.move=2,i.end=1,i.cancel=3,i),a[5]=(d={},d.start=2,d.move=2,d.end=1,d.cancel=3,d),a)}[Number(t)][e];return void 0!==l&&l[n]||0}function X(t){[1,3,2].includes(t.state)&&(t.state=0)}function Y(t){return[4,5].includes(t)}function k(t){if(t.disabled)return t.state=0,!0}function q(e,n){return t(t(t({},e),n),{state:0,disabled:!1})}function z(t){return Math.round(100*t)/100}export{c as CLIENT_X,u as CLIENT_Y,r as COMPUTE_INTERVAL,h as DIRECTION_DOWN,s as DIRECTION_LEFT,v as DIRECTION_RIGHT,f as DIRECTION_UP,b as MOUSE,M as MOUSE_DOWN,F as MOUSE_MOVE,y as MOUSE_UP,p as TOUCH,x as TOUCH_CANCEL,w as TOUCH_END,j as TOUCH_MOVE,g as TOUCH_START,d as TYPE_CANCEL,m as TYPE_COMPUTED,l as TYPE_END,i as TYPE_MOVE,a as TYPE_START,q as createPluginContext,S as flow,O as getStatusName,k as isDisabled,n as isFunction,Y as isRecognized,X as resetState,z as round2};
const t=Object.prototype.toString;function e(e){return"[object Function]"===t.call(e)}const n="clientX",c="clientY",o=16,u="start",s="move",r="cancel",a="end",i="computed",d="left",l="right",m="up",f="down",v="touch",b="mouse",h="touchstart",p="touchmove",g="touchend",j="touchcancel",O="mouseup",w="mousemove",x="mousedown",y={4:"start",5:"move",1:"end",3:"cancel"};function F(t){return y[t]}function M(t,e,n){const c={1:{0:{move:4},4:{move:5,end:1,cancel:3},5:{move:5,end:1,cancel:3}},0:{4:{move:2,end:1,cancel:3},5:{start:2,move:2,end:1,cancel:3}}}[Number(t)][e];return void 0!==c&&c[n]||0}function N(t){[1,3,2].includes(t.state)&&(t.state=0)}function S(t){return[4,5].includes(t)}function X(t){if(t.disabled)return t.state=0,!0}function Y(t,e){return Object.assign(Object.assign(Object.assign({},t),e),{state:0,disabled:!1})}function k(t){return Math.round(100*t)/100}export{n as CLIENT_X,c as CLIENT_Y,o as COMPUTE_INTERVAL,f as DIRECTION_DOWN,d as DIRECTION_LEFT,l as DIRECTION_RIGHT,m as DIRECTION_UP,b as MOUSE,x as MOUSE_DOWN,w as MOUSE_MOVE,O as MOUSE_UP,v as TOUCH,j as TOUCH_CANCEL,g as TOUCH_END,p as TOUCH_MOVE,h as TOUCH_START,r as TYPE_CANCEL,i as TYPE_COMPUTED,a as TYPE_END,s as TYPE_MOVE,u as TYPE_START,Y as createPluginContext,M as flow,F as getStatusName,X as isDisabled,e as isFunction,S as isRecognized,N as resetState,k as round2};
//# sourceMappingURL=index.es.js.map
{
"name": "@any-touch/shared",
"version": "2.0.2",
"version": "2.0.3-2.0.3-alpha.1.0",
"description": "any-touch内部的公共函数.",

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

"sideEffects": false,
"gitHead": "7df4617ecb8b89c720ce9747cdd77554c4966a88"
"gitHead": "5fe455a5e75ea4301ae73b35afba7f3929b1f07c"
}

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