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

@discourse/itsatrap

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@discourse/itsatrap - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

25

itsatrap.js

@@ -1033,5 +1033,2 @@ /*global define:false */

self._handleKeyEvent = undefined;
documentItsATrap && documentItsATrap.destroy();
documentItsATrap = null;
};

@@ -1110,22 +1107,2 @@

/**
* Init the global itsatrap functions
*
* This method is needed to allow the global itsatrap functions to work
* now that itsatrap is a constructor function.
*/
var documentItsATrap;
ItsATrap.init = function() {
documentItsATrap = ItsATrap(document);
for (var method in documentItsATrap) {
if (method.charAt(0) !== "_") {
ItsATrap[method] = (function(method) {
return function() {
return documentItsATrap[method].apply(documentItsATrap, arguments);
};
})(method);
}
}
};
/**
* adds a pause and unpause method to ItsATrap

@@ -1167,4 +1144,2 @@ * this allows you to enable or disable keyboard shortcuts

ItsATrap.init();
// expose itsatrap to the global object

@@ -1171,0 +1146,0 @@ window.ItsATrap = ItsATrap;

2

package.json
{
"name": "@discourse/itsatrap",
"version": "2.0.7",
"version": "2.0.8",
"description": "Fork of the original Mousetrap, Simple library for handling keyboard shortcuts",

@@ -5,0 +5,0 @@ "main": "itsatrap.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