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

events-ex

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

events-ex - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6

2

package.json
{
"name": "events-ex",
"version": "0.9.5",
"version": "0.9.6",
"description": "Browser-friendly enhanced events most compatible with standard node.js, it's powerful eventable ability.",

@@ -5,0 +5,0 @@ "contributors": [

@@ -115,7 +115,12 @@ ### events-ex [![Build Status](https://img.shields.io/travis/snowyu/events-ex.js/master.png)](http://travis-ci.org/snowyu/events-ex.js) [![npm](https://img.shields.io/npm/v/events-ex.svg)](https://npmjs.org/package/events-ex) [![downloads](https://img.shields.io/npm/dm/events-ex.svg)](https://npmjs.org/package/events-ex) [![license](https://img.shields.io/npm/l/events-ex.svg)](https://npmjs.org/package/events-ex)

eventable = require('events-ex/eventable')
OtherClass = require('OtherClass')
#OtherClass = require('OtherClass')
class OtherClass
exec: -> console.log "my original exec"
class MyClass
# only 'on', 'off', 'emit' added to the class
eventable MyClass, include: ['on', 'off', 'emit']
eventable OtherClass, methods
eventable OtherClass, methods:
exec: ->
console.log "new exec"
@super() # call the original method
```

@@ -122,0 +127,0 @@ #### allOff(obj) _(events-ex/all-off)_

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