Comparing version 0.0.1 to 0.0.2
var stately = require("stately"); | ||
exports.control = function() { | ||
var safeMachine, safeStates = {} | ||
var me, safeMachine, safeStates = {} | ||
, cautiousMachine, unsafeStates = {} | ||
; | ||
function makeMachines() { | ||
if (me._getType) { | ||
safeStates._getType = me._getType; | ||
unsafeStates._getType = me._getType; | ||
} | ||
if (me._getState) { | ||
safeStates._getState = me._getState; | ||
unsafeStates._getState = me._getState; | ||
} | ||
safeMachine = stately.define(safeStates); | ||
@@ -28,4 +35,3 @@ cautiousMachine = stately.define(unsafeStates); | ||
} | ||
return { | ||
me = { | ||
start : makeMachines, | ||
@@ -35,3 +41,4 @@ safe : registerSafeCallback, | ||
handle : handle | ||
}; | ||
} | ||
return me; | ||
}; |
{ | ||
"name" : "docstate" | ||
, "description" : "Couch + Stately equals a reliable state machine" | ||
, "homepage" : "http://github.com/jchris/stately" | ||
, "version" : "0.0.1" | ||
, "homepage" : "http://github.com/jchris/docstate" | ||
, "version" : "0.0.2" | ||
, "author" : "J Chris Anderson <jchris@couchbase.com> (http://jchrisa.net)" | ||
@@ -10,3 +10,3 @@ , "contributors" : [] | ||
{ "mail" : "jchris@couchbase.com" | ||
, "web" : "http://github.com/jchris/stately/issues" | ||
, "web" : "http://github.com/jchris/docstate/issues" | ||
} | ||
@@ -13,0 +13,0 @@ , "directories" : { "lib" : "./lib" } |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
2411
38