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

eev

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eev - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

bower.json
{
"name": "eev",
"main": "eev.js",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "https://github.com/chrisdavies/eev",

@@ -6,0 +6,0 @@ "authors": [

@@ -48,2 +48,4 @@

Eev.prototype = {
constructor: Eev,
on: function (names, fn) {

@@ -50,0 +52,0 @@ var me = this;

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

var Eev=function(){var e=0,t=/[^\w\-]+/g;function n(e){this.head=new i,this.tail=new i(this.head),this.head.next=this.tail,this.linkConstructor=e,this.reg={}}n.prototype={insert:function(e){var t=new i(this.tail.prev,this.tail,e);return t.next.prev=t.prev.next=t,t},remove:function(e){e.prev.next=e.next,e.next.prev=e.prev}};function i(e,t,n){this.prev=e,this.next=t,this.fn=n||r}i.prototype.run=function(e){this.fn(e),this.next&&this.next.run(e)};function r(){}function o(){this.events={}}return o.prototype={on:function(i,r){var o=this;i.split(t).forEach(function(t){var i=o.events[t]||(o.events[t]=new n),s=r._eev||(r._eev=++e);i.reg[s]||(i.reg[s]=i.insert(r))})},off:function(e,n){var i=this;n&&e.split(t).forEach(function(e){var t=i.events[e];if(t){var r=t.reg[n._eev];t.reg[n._eev]=void 0,t&&r&&t.remove(r)}})},emit:function(e,t){var n=this.events[e];n&&n.head.run(t)}},o}();!function(e,t){var n=e.define;n&&n.amd?n([],t):"undefined"!=typeof module&&module.exports&&(module.exports=t())}(this,function(){return Eev});
var Eev=function(){var t=0,e=/[^\w\-]+/g;function n(t){this.head=new i,this.tail=new i(this.head),this.head.next=this.tail,this.linkConstructor=t,this.reg={}}n.prototype={insert:function(t){var e=new i(this.tail.prev,this.tail,t);return e.next.prev=e.prev.next=e,e},remove:function(t){t.prev.next=t.next,t.next.prev=t.prev}};function i(t,e,n){this.prev=t,this.next=e,this.fn=n||r}i.prototype.run=function(t){this.fn(t),this.next&&this.next.run(t)};function r(){}function o(){this.events={}}return o.prototype={constructor:o,on:function(i,r){var o=this;i.split(e).forEach(function(e){var i=o.events[e]||(o.events[e]=new n),s=r._eev||(r._eev=++t);i.reg[s]||(i.reg[s]=i.insert(r))})},off:function(t,n){var i=this;n&&t.split(e).forEach(function(t){var e=i.events[t];if(e){var r=e.reg[n._eev];e.reg[n._eev]=void 0,e&&r&&e.remove(r)}})},emit:function(t,e){var n=this.events[t];n&&n.head.run(e)}},o}();!function(t,e){var n=t.define;n&&n.amd?n([],e):"undefined"!=typeof module&&module.exports&&(module.exports=e())}(this,function(){return Eev});
{
"name": "eev",
"version": "0.1.2",
"version": "0.1.3",
"description": "A tiny, fast, zero-dependency event emitter",

@@ -5,0 +5,0 @@ "main": "eev.js",

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