🚨 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.7
to
0.0.8
+8
-0
lib/fsm.js

@@ -88,2 +88,10 @@ 'use strict';

get data() {
return this._data;
}
set data(value) {
this._data = value;
}
states() {

@@ -90,0 +98,0 @@ return allStates(this._transitions).filter(s => s !== '*');

@@ -140,2 +140,15 @@ 'use strict';

it('can access "data" obj', () => {
const dataObj = { dat: 'a', onbj: { as: 'as' } };
const f = new FSM({ data: dataObj });
expect(f.data).to.equal(dataObj);
});
it('can set "data" obj', () => {
const dataObj = { dat: 'a', onbj: { as: 'as' } };
const f = new FSM({});
f.data = dataObj;
expect(f.data).to.equal(dataObj);
});
it('creates transition methods', () => {

@@ -142,0 +155,0 @@ expect(fsm.aToB).to.be.instanceof(Function);

+1
-1
{
"name": "@trigo/fsm",
"version": "0.0.7",
"version": "0.0.8",
"description": "FSM - Finite State Machine",

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