Socket
Socket
Sign inDemoInstall

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.6 to 1.1.7

3

minivents.js

@@ -8,4 +8,3 @@ (this.window||module)[(this.window ? 'Events' : 'exports')] = function (target){

target.on = function(type, func, ctx){
events[type] = events[type] || []
events[type].push({f:func, c:ctx})
(events[type] = events[type] || []).push({f:func, c:ctx})
}

@@ -12,0 +11,0 @@ /**

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

(this.window||module)[this.window?"Events":"exports"]=function(n){var t={};n=n||this,n.on=function(n,f,i){t[n]=t[n]||[],t[n].push({f:f,c:i})},n.off=function(n,f){n||(t={});for(var i=t[n]||[],o=i.length=f?i.length:0;o-->0;)f==i[o].f&&i.splice(o,1)},n.emit=function(){for(var n,f=Array.apply([],arguments),i=t[f.shift()]||[],o=0;n=i[o++];)n.f.apply(n.c,f)}};
(this.window||module)[this.window?"Events":"exports"]=function(n){var t={};n=n||this,n.on=function(n,f,i){(t[n]=t[n]||[]).push({f:f,c:i})},n.off=function(n,f){n||(t={});for(var i=t[n]||[],o=i.length=f?i.length:0;o-->0;)f==i[o].f&&i.splice(o,1)},n.emit=function(){for(var n,f=Array.apply([],arguments),i=t[f.shift()]||[],o=0;n=i[o++];)n.f.apply(n.c,f)}};
{
"name": "minivents",
"version": "1.1.6",
"version": "1.1.7",
"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