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 1.4.1 to 1.4.2

16

lib/fsm.js

@@ -36,2 +36,4 @@ // Copyright 2015 Joyent, Inc.

this.fsm_history = [];
this.fsm_inTransition = false;
this.fsm_nextState = undefined;
this.fsm_validTransitions = undefined;

@@ -96,2 +98,8 @@ if (this.fsm_allStateEvents === undefined)

if (this.fsm_inTransition) {
assert.ok(this.fsm_nextState === undefined);
this.fsm_nextState = state;
return;
}
if (this.fsm_validTransitions !== undefined) {

@@ -139,4 +147,6 @@ if (this.fsm_validTransitions.indexOf(state) === -1) {

this.fsm_inTransition = true;
f.call(this, this.sOn.bind(this), this.sOnce.bind(this),
this.sTimeout.bind(this), this.sOnState.bind(this));
this.fsm_inTransition = false;

@@ -154,2 +164,8 @@ var self = this;

this.emit('stateChanged', state);
var next = this.fsm_nextState;
if (next !== undefined) {
this.fsm_nextState = undefined;
this.gotoState(next);
}
};

@@ -156,0 +172,0 @@

2

package.json
{
"name": "mooremachine",
"version": "1.4.1",
"version": "1.4.2",
"description": "Moore finite state machines",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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