text-machine
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -40,3 +40,3 @@ /* | ||
this.program = options.program ; | ||
this.hostMethods = options.hostMethods || {} ; | ||
this.api = options.api || {} ; | ||
this.stateStack = null ; | ||
@@ -230,3 +230,3 @@ | ||
if ( this.hostMethods[ action[ 0 ] ] ) { | ||
if ( this.api[ action[ 0 ] ] ) { | ||
context.startingContext = startingContext ; | ||
@@ -240,5 +240,5 @@ context.buffer = buffer ; | ||
this.hostMethods[ action[ 0 ] ]( context , ... action[ 1 ] ) ; | ||
this.api[ action[ 0 ] ]( context , ... action[ 1 ] ) ; | ||
} | ||
} ; | ||
{ | ||
"name": "text-machine", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "A state machine for text processing.", | ||
@@ -5,0 +5,0 @@ "main": "lib/TextMachine.js", |
28130