New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fn-machine

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fn-machine - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "fn-machine",
"version": "0.0.5",
"version": "0.0.6",
"description": "a tiny functional state machine",

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

@@ -9,3 +9,3 @@ /** @typedef {import('./fn-state').CurrentState} CurrentState */

* @param {function(CurrentState)=} changeCb
* @return {function(string, Object):CurrentState}
* @return {function(string, Object?):CurrentState}
*/

@@ -12,0 +12,0 @@ export default function machine(states: {

@@ -10,3 +10,3 @@ /** @typedef {import('./fn-state').CurrentState} CurrentState */

* @param {function(CurrentState)=} changeCb
* @return {function(string, Object):CurrentState}
* @return {function(string, Object?):CurrentState}
*/

@@ -18,9 +18,4 @@ export default function machine(states, initialState, initialContext, changeCb = function(state){}) {

const currentState = {state: current, context};
/**
* @param {string} event
* @param {Object} detail
* @return {CurrentState}
*/
return function send(event, detail) {
// if no event, return the current state

@@ -27,0 +22,0 @@ if (!event) {

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