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 2.0.0 to 2.0.1

10

index.js

@@ -25,5 +25,5 @@ 'use strict'

function Instance(id, emitter, middlewares) {
function Instance(id, emitter, middlewares, initState) {
this.id = id
this.actualState = this.model.states[INITIAL_STATE]
this.actualState = initState
this.middlewares = []

@@ -48,5 +48,5 @@ this.internalEmitter = emitter

Flow.prototype.newInstance = function (id) {
console.log('CREANDO NUEVA INSTANCIA')
return new Promise((resolve, reject) => {
var newInstance = new externals.Instance(id, this.internalEmitter, this.middlewares)
var newInstance = new externals.Instance(id, this.internalEmitter, this.middlewares, this.model.states[INITIAL_STATE])
console.log('CREANDO NUEVA INSTANCIA ' + JSON.stringify(newInstance))
client.set(id, newInstance, this.model.ttl, (err) => {

@@ -82,3 +82,3 @@ if (err) {

} else {
console.log('INSTANCIA ENCONTRADA')
console.log('INSTANCIA ENCONTRADA ' + JSON.stringify(cached.item))
resolve(cached.item)

@@ -85,0 +85,0 @@ }

{
"name": "flowx",
"version": "2.0.0",
"version": "2.0.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