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

reflow

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reflow - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

index.js

@@ -6,3 +6,2 @@ var async = require("async");

return function(obj, targetState, callback) {
console.log("HERE");
if(!workflow.hasOwnProperty(targetState)) {

@@ -15,3 +14,2 @@ // There is no such state defined

if(err) return callback(err);
console.log("STATE", currentState);
var current = workflow[currentState];

@@ -39,9 +37,6 @@ if(!current.hasOwnProperty(targetState)) {

if(err) return callback(err);
console.log("HM");
//Run any trigger functions now state is set
async.each(transition.triggers||[], function(t, cb){
console.log('trnasa', obj, t);
return t(obj, cb);
}, function(err) {
console.log("AND HERE");
return callback(err, obj);

@@ -48,0 +43,0 @@ });

2

package.json
{
"name": "reflow",
"version": "0.0.3",
"version": "0.0.4",
"description": "Simple to use workflow/transitions helper.",

@@ -5,0 +5,0 @@ "keywords" : ["workflow", "workflows"],

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