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

flowx

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flowx - npm Package Compare versions

Comparing version 1.0.0 to 1.1.1

15

index.js

@@ -14,3 +14,3 @@ 'use strict'

function Instance(model) {
function Instance(model, emitter) {
/*this.flow = flow

@@ -22,3 +22,3 @@ this.id = id*/

this.middlewares = []
this.internalEmitter = new flowEmitter();
this.internalEmitter = emitter
}

@@ -80,6 +80,2 @@

Instance.prototype.on = function (eventName, eventFunction) {
this.internalEmitter.on(eventName, eventFunction)
}
Instance.prototype.register = function (name, fn) {

@@ -99,6 +95,7 @@ this.middlewares[name] = fn

this.instances = []
this.internalEmitter = new flowEmitter();
}
Flow.prototype.newInstance = function (id) {
this.instances[id] = new externals.Instance(this.model)
this.instances[id] = new externals.Instance(this.model, this.internalEmitter)
return this.instances[id]

@@ -116,2 +113,6 @@ }

Flow.prototype.on = function (eventName, eventFunction) {
this.internalEmitter.on(eventName, eventFunction)
}
return Flow

@@ -118,0 +119,0 @@

{
"name": "flowx",
"version": "1.0.0",
"version": "1.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "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