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

reshow-hooks

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-hooks - npm Package Compare versions

Comparing version 0.17.31 to 0.17.32

10

build/cjs/src/useLongPress.js

@@ -33,3 +33,3 @@ "use strict";

var start = function start( /**@type React.MouseEvent*/e) {
e === null || e === void 0 ? void 0 : e.persist();
var currentTarget = e === null || e === void 0 ? void 0 : e.currentTarget;
var _lastPayload$current = lastPayload.current,

@@ -39,12 +39,12 @@ _lastPayload$current$ = _lastPayload$current.threshold,

onStart = _lastPayload$current.onStart;
(0, _callFunc["default"])(onStart, [e]);
(0, _callFunc["default"])(onStart, [e, currentTarget]);
timerRun(function () {
(0, _callFunc["default"])(callback, [e]);
(0, _callFunc["default"])(callback, [e, currentTarget]);
}, threshold);
};
var cancel = function cancel( /**@type React.MouseEvent*/e) {
e === null || e === void 0 ? void 0 : e.persist();
var currentTarget = e === null || e === void 0 ? void 0 : e.currentTarget;
timerStop();
var onCancel = lastPayload.current.onCancel;
(0, _callFunc["default"])(onCancel, [e]);
(0, _callFunc["default"])(onCancel, [e, currentTarget]);
};

@@ -51,0 +51,0 @@ var mouseHandlers = {

{
"version": "0.17.31",
"version": "0.17.32",
"name": "reshow-hooks",

@@ -4,0 +4,0 @@ "repository": {

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