New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

activity-loop

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

activity-loop - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

17

dist/index.js

@@ -100,2 +100,4 @@ 'use strict';

value: function activity(e) {
var _this = this;
if (e && e.type === 'mousemove' && e.clientX === this.mousePos[0] && e.clientY === this.mousePos[1]) {

@@ -109,4 +111,9 @@ return;

this.emit('activity');
this.restart();
// weird but I had to put this operation to the next tick
// otherwise it causes an extra `mousemove` event sometimes.
(0, _utilsSetTimeout2['default'])(function () {
_this.restart();
});
if (e) {

@@ -132,6 +139,6 @@ this.mousePos = [e.clientX, e.clientY];

value: function addListeners() {
var _this = this;
var _this2 = this;
events.forEach(function (e) {
_this.el.addEventListener(e, _this.activity);
_this2.el.addEventListener(e, _this2.activity);
});

@@ -142,6 +149,6 @@ }

value: function removeListeners() {
var _this2 = this;
var _this3 = this;
events.forEach(function (e) {
_this2.el.removeEventListener(e, _this2.activity);
_this3.el.removeEventListener(e, _this3.activity);
});

@@ -148,0 +155,0 @@ }

{
"name": "activity-loop",
"version": "1.1.3",
"version": "1.1.4",
"description": "Checks whether a user interaction happened on the given element",

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

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