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

@any-touch/recognizer

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@any-touch/recognizer - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

2

dist/index.es.js

@@ -5,3 +5,3 @@ import { __assign } from 'tslib';

function resetStatus (recognizer) {
if (-1 !== [STATUS_END, STATUS_CANCELLED, STATUS_RECOGNIZED, STATUS_FAILED].indexOf(recognizer.status)) {
if ([STATUS_END, STATUS_CANCELLED, STATUS_RECOGNIZED, STATUS_FAILED].includes(recognizer.status)) {
recognizer.status = STATUS_POSSIBLE;

@@ -8,0 +8,0 @@ }

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var T=require("tslib"),S=require("@any-touch/shared");function t(T){-1!==[S.STATUS_END,S.STATUS_CANCELLED,S.STATUS_RECOGNIZED,S.STATUS_FAILED].indexOf(T.status)&&(T.status=S.STATUS_POSSIBLE)}var s=function(){function t(T){this.disabled=!1,this._$isRecognized=!1,this.status=S.STATUS_POSSIBLE,this.computeFunctions=[],this.options=T,this.name=this.options.name}return t.prototype.set=function(S){return void 0!==S&&(this.options=T.__assign(T.__assign({},this.options),S)),this},t.prototype._$isValidPointLength=function(T){return this.options.pointLength===T},t}();exports.default=s,exports.recognizeForPressMoveLike=function(T,s,_){var e=T._$test(s);t(T);var A=s.stage;T.status=function(T,t,s){var _,e,A,i,E,U,n,o={1:(_={},_[S.STATUS_POSSIBLE]=(e={},e[S.INPUT_MOVE]=S.STATUS_START,e[S.INPUT_END]=S.STATUS_FAILED,e[S.INPUT_CANCEL]=S.STATUS_FAILED,e),_[S.STATUS_START]=(A={},A[S.INPUT_MOVE]=S.STATUS_MOVE,A[S.INPUT_END]=S.STATUS_END,A[S.INPUT_CANCEL]=S.STATUS_CANCELLED,A),_[S.STATUS_MOVE]=(i={},i[S.INPUT_MOVE]=S.STATUS_MOVE,i[S.INPUT_END]=S.STATUS_END,i[S.INPUT_CANCEL]=S.STATUS_CANCELLED,i),_),0:(E={},E[S.STATUS_START]=(U={},U[S.INPUT_MOVE]=S.STATUS_FAILED,U[S.INPUT_END]=S.STATUS_END,U[S.INPUT_CANCEL]=S.STATUS_CANCELLED,U),E[S.STATUS_MOVE]=(n={},n[S.INPUT_START]=S.STATUS_FAILED,n[S.INPUT_MOVE]=S.STATUS_FAILED,n[S.INPUT_END]=S.STATUS_END,n[S.INPUT_CANCEL]=S.STATUS_CANCELLED,n),E)}[Number(T)][t];return void 0!==o&&o[s]||t}(e,T.status,A),T._$isRecognized=[S.STATUS_START,S.STATUS_MOVE].includes(T.status);var i=T.name,E=T.status,U=T._$isRecognized;return U&&_(i),(U||[S.STATUS_END,S.STATUS_CANCELLED].includes(T.status))&&_(i+E),e},exports.resetStatusForPressMoveLike=t;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var T=require("tslib"),S=require("@any-touch/shared");function t(T){[S.STATUS_END,S.STATUS_CANCELLED,S.STATUS_RECOGNIZED,S.STATUS_FAILED].includes(T.status)&&(T.status=S.STATUS_POSSIBLE)}var s=function(){function t(T){this.disabled=!1,this._$isRecognized=!1,this.status=S.STATUS_POSSIBLE,this.computeFunctions=[],this.options=T,this.name=this.options.name}return t.prototype.set=function(S){return void 0!==S&&(this.options=T.__assign(T.__assign({},this.options),S)),this},t.prototype._$isValidPointLength=function(T){return this.options.pointLength===T},t}();exports.default=s,exports.recognizeForPressMoveLike=function(T,s,_){var e=T._$test(s);t(T);var A=s.stage;T.status=function(T,t,s){var _,e,A,i,E,U,n,o={1:(_={},_[S.STATUS_POSSIBLE]=(e={},e[S.INPUT_MOVE]=S.STATUS_START,e[S.INPUT_END]=S.STATUS_FAILED,e[S.INPUT_CANCEL]=S.STATUS_FAILED,e),_[S.STATUS_START]=(A={},A[S.INPUT_MOVE]=S.STATUS_MOVE,A[S.INPUT_END]=S.STATUS_END,A[S.INPUT_CANCEL]=S.STATUS_CANCELLED,A),_[S.STATUS_MOVE]=(i={},i[S.INPUT_MOVE]=S.STATUS_MOVE,i[S.INPUT_END]=S.STATUS_END,i[S.INPUT_CANCEL]=S.STATUS_CANCELLED,i),_),0:(E={},E[S.STATUS_START]=(U={},U[S.INPUT_MOVE]=S.STATUS_FAILED,U[S.INPUT_END]=S.STATUS_END,U[S.INPUT_CANCEL]=S.STATUS_CANCELLED,U),E[S.STATUS_MOVE]=(n={},n[S.INPUT_START]=S.STATUS_FAILED,n[S.INPUT_MOVE]=S.STATUS_FAILED,n[S.INPUT_END]=S.STATUS_END,n[S.INPUT_CANCEL]=S.STATUS_CANCELLED,n),E)}[Number(T)][t];return void 0!==o&&o[s]||t}(e,T.status,A),T._$isRecognized=[S.STATUS_START,S.STATUS_MOVE].includes(T.status);var i=T.name,E=T.status,U=T._$isRecognized;return U&&_(i),(U||[S.STATUS_END,S.STATUS_CANCELLED].includes(T.status))&&_(i+E),e},exports.resetStatusForPressMoveLike=t;
{
"name": "@any-touch/recognizer",
"version": "1.0.9",
"version": "1.0.10",
"description": "any-touch的识别器的基类.",

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

"dependencies": {
"@any-touch/shared": "^1.0.9"
"@any-touch/shared": "^1.0.10"
},

@@ -21,3 +21,3 @@ "files": [

"sideEffects": false,
"gitHead": "a4cb16b16c0a7c22e3769c49d73b73261e28e778"
"gitHead": "bf39da942dc851dc68139893c3d52bf2ce53b9f0"
}
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