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

@flowio/events

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flowio/events - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4-0

22

lib/trigger-once-events.js

@@ -17,2 +17,6 @@ 'use strict';

var _filter = require('lodash/filter');
var _filter2 = _interopRequireDefault(_filter);
var _channelEventEmitter = require('./channel-event-emitter');

@@ -99,6 +103,22 @@

}
/**
* Reset previously triggered events. If not eventsToReset are provided, all events previously
* triggered will be forgotten.
*
* @param {String[]} eventsToReset - Events to be reset
*/
}, {
key: 'resetPreviouslyTriggered',
value: function resetPreviouslyTriggered() {
this.previouslyTriggered = [];
var eventsToReset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
if (eventsToReset.length) {
this.previouslyTriggered = (0, _filter2.default)(this.previouslyTriggered, function (previous) {
return !(0, _includes2.default)(eventsToReset, previous.event);
});
} else {
this.previouslyTriggered = [];
}
}

@@ -105,0 +125,0 @@ }]);

2

package.json
{
"name": "@flowio/events",
"version": "0.0.3",
"version": "0.0.4-0",
"description": "Event Bus (Pub/Sub)",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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