How to use event-emitter-grouped - 4 common examples

To help you get started, we’ve selected a few event-emitter-grouped examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bevry / kava / source / index.js View on Github external
}
		} else if (report) {
			++Private.totalPassedTests
		}

		if (error || report) {
			Public.report('finishTest', test, error)
		}
	}
}

// =================================
// Event Emitter Grouped

// Add event emitter grouped to our classes
Object.getOwnPropertyNames(EventEmitterGrouped.prototype).forEach(function(
	key
) {
	Test.prototype[key] = Suite.prototype[key] =
		EventEmitterGrouped.prototype[key]
})

// =================================
// Private Interface

/**
 * Kava's Private Interface.
 * The reason we have a public and private interface is that we do not want tests being able to modify the test results.
 * As such, the private interface contains properties that must be mutable by the public interface, but not mutable by the bad tests.
 * @private
 * @namespace
 */
github nfriedly / nfriedly.com / node_modules / docpad / out / lib / docpad.js View on Github external
ambi = require('ambi');

TaskGroup = require('taskgroup').TaskGroup;

safefs = require('safefs');

safeps = require('safeps');

util = require('util');

superAgent = require('superagent');

extractOptsAndCallback = require('extract-opts').extractOptsAndCallback;

EventEmitterGrouped = require('event-emitter-grouped').EventEmitterGrouped;

_ref = require('./base'), queryEngine = _ref.queryEngine, Backbone = _ref.Backbone, Events = _ref.Events, Model = _ref.Model, Collection = _ref.Collection, View = _ref.View, QueryCollection = _ref.QueryCollection;

FileModel = require('./models/file');

DocumentModel = require('./models/document');

FilesCollection = require('./collections/files');

ElementsCollection = require('./collections/elements');

MetaCollection = require('./collections/meta');

ScriptsCollection = require('./collections/scripts');

StylesCollection = require('./collections/styles');
github lorenwest / node-monitor / node_modules / docpad / out / lib / docpad.js View on Github external
ambi = require('ambi');

TaskGroup = require('taskgroup').TaskGroup;

safefs = require('safefs');

safeps = require('safeps');

util = require('util');

superAgent = require('superagent');

extractOptsAndCallback = require('extract-opts').extractOptsAndCallback;

EventEmitterGrouped = require('event-emitter-grouped').EventEmitterGrouped;

_ref = require('./base'), queryEngine = _ref.queryEngine, Backbone = _ref.Backbone, Events = _ref.Events, Model = _ref.Model, Collection = _ref.Collection, View = _ref.View, QueryCollection = _ref.QueryCollection;

FileModel = require('./models/file');

DocumentModel = require('./models/document');

FilesCollection = require('./collections/files');

ElementsCollection = require('./collections/elements');

MetaCollection = require('./collections/meta');

ScriptsCollection = require('./collections/scripts');

StylesCollection = require('./collections/styles');
github bevry / kava / source / index.js View on Github external
Object.getOwnPropertyNames(EventEmitterGrouped.prototype).forEach(function(
	key
) {
	Test.prototype[key] = Suite.prototype[key] =
		EventEmitterGrouped.prototype[key]
})

event-emitter-grouped

Emit events in serial or parallel with support for synchronous and asynchronous listeners

Artistic-2.0
Latest version published 11 months ago

Package Health Score

56 / 100
Full package analysis