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

event-lite

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

event-lite - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

test/90.fix.js

2

dist/event-lite.min.js

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

function EventLite(){return this instanceof EventLite?void 0:new EventLite}!function(t){function e(t){for(var e in l)t[e]=l[e];return t}function n(t,e){return o(this,t).push(e),this}function i(t,e){function n(){r.call(i,t,n),e.apply(this,arguments)}var i=this;return o(i,t).push(n),i}function r(t,e){function n(t){return t!==e}var i,u=this;if(t){if(e){if(i=o(u,t,!0)){if(i=i.filter(n),!i.length)return r.call(u,t);u[f][t]=i}}else if(delete u[f][t],!Object.keys(u[f]).length)return r.call(u)}else delete u[f];return u}function u(t,e){function n(t){t.apply(i,r)}var i=this,r=Array.prototype.slice.call(arguments,1),u=o(i,t,!0);return u?(u.forEach(n),!!u.length):!1}function o(t,e,n){if(!n||t[f]){var i=t[f]||(t[f]={});return i[e]||(i[e]=[])}}"undefined"!=typeof module&&(module.exports=t);var f="listeners",l={on:n,once:i,off:r,emit:u};e(t.prototype),t.mixin=e}(EventLite);
function EventLite(){return this instanceof EventLite?void 0:new EventLite}!function(t){function e(t){for(var e in l)t[e]=l[e];return t}function n(t,e){return o(this,t).push(e),this}function i(t,e){function n(){r.call(i,t,n),e.apply(this,arguments)}var i=this;return o(i,t).push(n),i}function r(t,e){function n(t){return t!==e}var i,u=this;if(t){if(e){if(i=o(u,t,!0)){if(i=i.filter(n),!i.length)return r.call(u,t);u[f][t]=i}}else if(i=u[f],i&&(delete i[t],!Object.keys(i).length))return r.call(u)}else delete u[f];return u}function u(t,e){function n(t){t.apply(i,r)}var i=this,r=Array.prototype.slice.call(arguments,1),u=o(i,t,!0);return u?(u.forEach(n),!!u.length):!1}function o(t,e,n){if(!n||t[f]){var i=t[f]||(t[f]={});return i[e]||(i[e]=[])}}"undefined"!=typeof module&&(module.exports=t);var f="listeners",l={on:n,once:i,off:r,emit:u};e(t.prototype),t.mixin=e}(EventLite);

@@ -112,4 +112,7 @@ /**

} else if (!func) {
delete that[LISTENERS][type];
if (!Object.keys(that[LISTENERS]).length) return off.call(that);
listners = that[LISTENERS];
if (listners) {
delete listners[type];
if (!Object.keys(listners).length) return off.call(that);
}
} else {

@@ -116,0 +119,0 @@ listners = getListeners(that, type, true);

{
"name": "event-lite",
"version": "0.0.4",
"version": "0.0.5",
"description": "Light-weight EventEmitter (less than 1KB when minified)",

@@ -15,5 +15,2 @@ "main": "event-lite.js",

"license": "MIT",
"bugs": {
"url": "https://github.com/kawanet/event-lite/issues"
},
"homepage": "https://github.com/kawanet/event-lite",

@@ -20,0 +17,0 @@ "keywords": [

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