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

mooremachine

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mooremachine - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

22

lib/fsm.js

@@ -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;

4

package.json
{
"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

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