mooremachine
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -8,3 +8,3 @@ /* | ||
/* | ||
* Copyright (c) 2018, Joyent, Inc. | ||
* Copyright (c) 2019, Joyent, Inc. | ||
*/ | ||
@@ -81,2 +81,22 @@ | ||
FSMStateHandle.prototype.gotoStateOn = function (obj, evt, state) { | ||
mod_assert.string(state, 'state'); | ||
var self = this; | ||
self.on(obj, evt, function _gotoStateOn() { | ||
self.gotoState(state); | ||
}); | ||
}; | ||
FSMStateHandle.prototype.gotoStateTimeout = function (timeout, state) { | ||
mod_assert.string(state, 'state'); | ||
var self = this; | ||
self.timeout(timeout, function _gotoStateTimeout() { | ||
self.gotoState(state); | ||
}); | ||
}; | ||
FSMStateHandle.prototype.reset = function () { | ||
@@ -83,0 +103,0 @@ this.fsh_valid = true; |
{ | ||
"name": "mooremachine", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "Moore finite state machines", | ||
@@ -11,3 +11,3 @@ "main": "lib/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/arekinath/node-mooremachine.git" | ||
"url": "git+https://github.com/joyent/node-mooremachine.git" | ||
}, | ||
@@ -14,0 +14,0 @@ "author": "Joyent, Inc", |
Sorry, the diff of this file is not supported yet
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
33706
362