🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@trigo/fsm

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trigo/fsm - npm Package Compare versions

Comparing version
0.0.3
to
0.0.4
+1
-1
lib/fsm.js

@@ -71,3 +71,3 @@ 'use strict';

if (this.states().indexOf(state) === -1) {
throw new Error(`Invlaid state: "${state}" known states: ${this.allStates().join(', ')}`);
throw new Error(`Invlaid state: "${state}" known states: ${this.states().join(', ')}`);
}

@@ -74,0 +74,0 @@ this._state = state;

@@ -78,3 +78,3 @@ 'use strict';

it('init(state) - checks if valid state', () => {
expect(() => fsm.init('rya')).to.throw();
expect(() => fsm.init('rya')).to.throw(/Invlaid state: "rya" known states/);
});

@@ -81,0 +81,0 @@

{
"name": "@trigo/fsm",
"version": "0.0.3",
"version": "0.0.4",
"description": "FSM - Finite State Machine",

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