Comparing version 0.2.5 to 0.2.6
@@ -143,3 +143,3 @@ 'use strict'; | ||
for(let { to, guards, reducers } of candidates) { | ||
if(guards(context)) { | ||
if(guards(context, fromEvent)) { | ||
service.context = reducers.call(service, context, fromEvent); | ||
@@ -182,3 +182,3 @@ | ||
machine: valueEnumerableWritable(machine), | ||
context: valueEnumerableWritable(machine.context(initialContext)), | ||
context: valueEnumerableWritable(machine.context(initialContext, event)), | ||
onChange: valueEnumerable(onChange) | ||
@@ -185,0 +185,0 @@ }); |
@@ -139,3 +139,3 @@ function valueEnumerable(value) { | ||
for(let { to, guards, reducers } of candidates) { | ||
if(guards(context)) { | ||
if(guards(context, fromEvent)) { | ||
service.context = reducers.call(service, context, fromEvent); | ||
@@ -178,3 +178,3 @@ | ||
machine: valueEnumerableWritable(machine), | ||
context: valueEnumerableWritable(machine.context(initialContext)), | ||
context: valueEnumerableWritable(machine.context(initialContext, event)), | ||
onChange: valueEnumerable(onChange) | ||
@@ -181,0 +181,0 @@ }); |
{ | ||
"name": "robot3", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "A function, immutable Finite State Machine library", | ||
@@ -5,0 +5,0 @@ "main": "dist/machine.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15410