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

eventify

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventify - npm Package Compare versions

Comparing version 0.3.4 to 0.3.6

2

dist/eventify.min.js

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

// eventify - v0.3.4 (2013-04-28)
// eventify - v0.3.6 (2013-04-28)
// -----------------

@@ -3,0 +3,0 @@ // Copyright(c) 2010-2012 Jeremy Ashkenas, DocumentCloud

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

module.exports = process.env.NODE_ENV && process.env.NODE_ENV === 'coverage' ? require('./lib-cov/') : require('./lib/');
if (process.env.NODE_ENV && process.env.NODE_ENV === 'coverage') {
module.exports = require('./lib-cov/eventify.js');
} else {
module.exports = require('./lib/eventify.js');
}
{
"name": "eventify",
"version": "0.3.4",
"version": "0.3.6",
"description": "Lightweight module that can be mixed in to any object in order to provide it with custom events. For node.js and the browser. Based on Backbone.Events",

@@ -60,3 +60,6 @@ "author": "Bermi Ferrer <bermi@bermilabs.com>",

"ender": "./lib/ender.js",
"main": "./lib/eventify.js"
"main": "index",
"directories": {
"lib": "./lib"
}
}

@@ -7,4 +7,2 @@ # Eventify

[![browser support](http://ci.testling.com/bermi/eventify.png)](http://ci.testling.com/bermi/eventify)
## Installing

@@ -11,0 +9,0 @@

(function (root) {
var expect = root.expect || require('expect.js'),
Eventify;
Eventify,
is_commons = typeof require !== 'undefined';
if (typeof require !== 'undefined') {
root.Eventify = "original";
Eventify = require('../index.js');
if (is_commons) {
Eventify = require('../');
} else {

@@ -15,10 +15,12 @@ Eventify = root.Eventify;

describe('No conflict', function () {
it('should restore original Eventify', function () {
var b = Eventify,
currentVersion = b.noConflict();
expect(currentVersion).to.be(b);
expect(root.Eventify).to.be("original");
if (!is_commons) {
describe('No conflict', function () {
it('should restore original Eventify', function () {
var b = Eventify,
currentVersion = b.noConflict();
expect(currentVersion).to.be(b);
expect(root.Eventify).to.be("original");
});
});
});
}

@@ -132,3 +134,3 @@ describe("On and trigger", function () {

describe("Two binds that unbind themeselves", function () {
describe("Two binds that unbind themselves", function () {
var obj = { counterA: 0, counterB: 0 };

@@ -298,3 +300,3 @@ Eventify.enable(obj);

describe("Additional parameters", function () {
it("should include aditional parameters", function (done) {
it("should include additional parameters", function (done) {
var obj = Eventify.enable(),

@@ -301,0 +303,0 @@ param1 = "one",

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