fable 3.0.98 → 3.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3226,7 +3226,7 @@ return fCallback();}/**
3226
3226
  * @param {function} fCallback - The callback function to call when the parse is complete
3227
3227
  */},{key:"parseString",value:function parseString(pString,pParseTree,pData,fCallback){var _this28=this;if(typeof fCallback!=='function'){var tmpParserState=this.newParserState(pParseTree);for(var i=0;i<pString.length;i++){// TODO: This is not fast.
3228
3228
  this.parseCharacter(pString[i],tmpParserState,pData,fCallback);}this.flushOutputBuffer(tmpParserState);return tmpParserState.Output;}else{// This is the async mode
3229
- var _tmpParserState=this.newParserState(pParseTree);_tmpParserState.Asynchronous=true;var tmpAnticipate=this.fable.instantiateServiceProviderWithoutRegistration('Anticipate');var _loop=function _loop(_i12){tmpAnticipate.anticipate(function(fCallback){console.log("Running template for character [".concat(pString[_i12],"] index ").concat(_i12));_this28.parseCharacterAsync(pString[_i12],_tmpParserState,pData,fCallback);});};for(var _i12=0;_i12<pString.length;_i12++){_loop(_i12);}tmpAnticipate.wait(function(pError){// Flush the remaining data
3229
+ var _tmpParserState=this.newParserState(pParseTree);_tmpParserState.Asynchronous=true;var tmpAnticipate=this.fable.instantiateServiceProviderWithoutRegistration('Anticipate');var _loop=function _loop(_i12){tmpAnticipate.anticipate(function(fCallback){_this28.parseCharacterAsync(pString[_i12],_tmpParserState,pData,fCallback);});};for(var _i12=0;_i12<pString.length;_i12++){_loop(_i12);}tmpAnticipate.wait(function(pError){// Flush the remaining data
3230
3230
  _this28.flushOutputBuffer(_tmpParserState);return fCallback(pError,_tmpParserState.Output);});}}}]);return StringParser;}();module.exports=StringParser;},{}],130:[function(require,module,exports){/**
3231
3231
  * Word Tree
3232
3232
  * @author Steven Velozo <steven@velozo.com>