@trigo/fsm
Advanced tools
+1
-1
@@ -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; |
+1
-1
@@ -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 @@ |
+1
-1
| { | ||
| "name": "@trigo/fsm", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "description": "FSM - Finite State Machine", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
95034
0.03%