Initial commit: 11ty website with Fire/Frost branding
This commit is contained in:
23
node_modules/@11ty/eleventy/src/EventBus.js
generated
vendored
Normal file
23
node_modules/@11ty/eleventy/src/EventBus.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import debugUtil from "debug";
|
||||
|
||||
import EventEmitter from "./Util/AsyncEventEmitter.js";
|
||||
|
||||
const debug = debugUtil("Eleventy:EventBus");
|
||||
|
||||
/**
|
||||
* @module 11ty/eleventy/EventBus
|
||||
* @ignore
|
||||
*/
|
||||
|
||||
debug("Setting up global EventBus.");
|
||||
/**
|
||||
* Provides a global event bus that modules deep down in the stack can
|
||||
* subscribe to from a global singleton for decoupled pub/sub.
|
||||
* @type {module:11ty/eleventy/Util/AsyncEventEmitter~AsyncEventEmitter}
|
||||
*/
|
||||
let bus = new EventEmitter();
|
||||
bus.setMaxListeners(100); // defaults to 10
|
||||
|
||||
debug("EventBus max listener count: %o", bus.getMaxListeners());
|
||||
|
||||
export default bus;
|
||||
Reference in New Issue
Block a user