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

@any-touch/swipe

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@any-touch/swipe - npm Package Compare versions

Comparing version 2.0.2-alpha.1 to 2.0.2

dist/index.js.map

1

dist/index.js
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@any-touch/shared"),t=require("@any-touch/compute"),n={name:"swipe",threshold:10,velocity:.3,pointLength:1};exports.default=function(i,o){var r=e.createPluginContext(n,o);return i.compute([t.ComputeDistance,t.ComputeVAndDir,t.ComputeMaxLength],(function(t){if(r.state=0,!r.disabled&&function(){if(e.TYPE_END!==t.phase)return!1;var n=t.velocityX,i=t.velocityY,o=t.distance;return t.maxPointLength===r.pointLength&&0===t.points.length&&r.threshold<o&&r.velocity<Math.max(n,i)}()){var n=r.name;r.state=1,i.emit2(n,t,r),i.emit2(n+t.direction,t,r)}})),r};
//# sourceMappingURL=index.js.map

11

package.json
{
"name": "@any-touch/swipe",
"version": "2.0.2-alpha.1",
"version": "2.0.2",
"description": "any-touch的识别器, 用来识别划动手势.",

@@ -11,8 +11,5 @@ "main": "./dist/index.js",

"dependencies": {
"@any-touch/compute": "^2.0.2-alpha.1",
"@any-touch/shared": "^2.0.2-alpha.1"
"@any-touch/compute": "^2.0.2",
"@any-touch/shared": "^2.0.2"
},
"peerDependencies": {
"any-touch": "^2.0.1"
},
"files": [

@@ -25,3 +22,3 @@ "dist/*"

"sideEffects": false,
"gitHead": "6448e271ecbc59ba49d220264ff4f5ab19950b87"
"gitHead": "7df4617ecb8b89c720ce9747cdd77554c4966a88"
}
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