New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2 to 0.0.3

7

index.js

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

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

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

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

@@ -35,8 +37,11 @@ if(!current.hasOwnProperty(targetState)) {

if(!conditionsOk) return callback(conditionErrors);
return set(obj, targetState, function(err) {
return set(obj, targetState, function(err, obj) {
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);

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

2

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

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

@@ -22,3 +22,3 @@ # Reflow

o.state = state;
callback(null);
callback(null, o);
};

@@ -25,0 +25,0 @@

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