Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@nichoth/events

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nichoth/events - npm Package Compare versions

Comparing version
3.1.1
to
3.1.2
+1
-1
package.json
{
"name": "@nichoth/events",
"version": "3.1.1",
"version": "3.1.2",
"description": "Event emitter and helpers",

@@ -5,0 +5,0 @@ "directories": {

@@ -26,2 +26,5 @@ # events ![tests](https://github.com/nichoth/events/actions/workflows/nodejs.yml/badge.svg)

### Bus.flatten
Get an array of the leaf node values of an object of any shape, for example the return value of `Bus.createEvents`.
It's recommended to use the `.flatten` static function to get the event name values after calling `.createEvents`. Or, if you pass in anything that is not an array, the constructor will call `.flatten` on it.

@@ -40,3 +43,3 @@ ```js

const bus = new Bus(Bus.flattern(events))
const bus = new Bus(Bus.flatten(events))
// is the same as

@@ -43,0 +46,0 @@ const bust2 = new Bus(events)