Comparing version 1.0.1 to 1.0.2
@@ -13,2 +13,3 @@ 'use strict'; | ||
this.state = state; | ||
this.lastState = null; | ||
this.opts = opts; | ||
@@ -20,2 +21,3 @@ | ||
Job.prototype.setState = function(state) { | ||
this.lastState = state; | ||
this.state = state; | ||
@@ -28,4 +30,8 @@ }; | ||
Job.prototype.getLastState = function() { | ||
return this.lastState; | ||
}; | ||
Job.prototype.set = function(setting, val) { | ||
if (arguments.length === 1) { | ||
if(arguments.length === 1) { | ||
// app.get(setting) | ||
@@ -32,0 +38,0 @@ return this.settings[setting]; |
{ | ||
"name": "mdw-fsm", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "middleware finite state machine", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11004
373