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

minivents

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minivents - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

1

minivents.js

@@ -15,2 +15,3 @@ function Events(target){

target.off = function(type, func){
type || events = {}
var list = events[type] || [],

@@ -17,0 +18,0 @@ i = list.length = func ? list.length : 0

2

minivents.min.js

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

function Events(n){var t={};n=n||this,n.on=function(n,e,o){t[n]||(t[n]=[]),t[n].push({f:e,c:o})},n.off=function(n,e){for(var o=t[n]||[],f=o.length=e?o.length:0;f-->0;)e==o[f].f&&o.splice(f,1)},n.emit=function(){var n,e=Array.apply([],arguments),o=t[e.shift()]||[],f=o.length;for(n=0;f>n;n++)o[n].f.apply(o[n].c,e)}}var u,module,cjs=module!=u;(cjs?module:window)[cjs?"exports":"Events"]=Events;
function Events(n){var t={};n=n||this,n.on=function(n,e,o){t[n]||(t[n]=[]),t[n].push({f:e,c:o})},n.off=function(n,e){n||t={};for(var o=t[n]||[],f=o.length=e?o.length:0;f-->0;)e==o[f].f&&o.splice(f,1)},n.emit=function(){var n,e=Array.apply([],arguments),o=t[e.shift()]||[],f=o.length;for(n=0;f>n;n++)o[n].f.apply(o[n].c,e)}}var u,module,cjs=module!=u;(cjs?module:window)[cjs?"exports":"Events"]=Events;
{
"name": "minivents",
"version": "1.1.2",
"version": "1.1.3",
"description": "Tiny eventing for javascript",

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