fable 3.0.102 → 3.0.104
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.
- package/dist/fable.compatible.js +4 -4
- package/dist/fable.compatible.min.js +1 -1
- package/dist/fable.compatible.min.js.map +1 -1
- package/dist/fable.js +4 -4
- package/dist/fable.min.js +1 -1
- package/dist/fable.min.js.map +1 -1
- package/package.json +2 -2
- package/source/Fable.js +2 -0
- package/source/services/Fable-Service-Anticipate.js +16 -3
- package/source/services/Fable-Service-MetaTemplate.js +4 -1
- package/test/Anticipate_tests.js +24 -0
package/dist/fable.compatible.js
CHANGED
|
@@ -2831,7 +2831,8 @@ _this17.serviceTypes=[];// A map of instantiated services
|
|
|
2831
2831
|
_this17.servicesMap={};// A map of the default instantiated service by type
|
|
2832
2832
|
_this17.services={};// A map of class constructors for services
|
|
2833
2833
|
_this17.serviceClasses={};// If we need extra service initialization capabilities
|
|
2834
|
-
_this17.extraServiceInitialization=false;//
|
|
2834
|
+
_this17.extraServiceInitialization=false;// Set how noisy the system is about signaling complexity
|
|
2835
|
+
_this17.LogNoisiness=0;// Initialization Phase 1: Set up the core utility services
|
|
2835
2836
|
// These are things like power, water, and sewage. They are required for fable to run (e.g. logging, settings, etc)
|
|
2836
2837
|
// Instantiate the default Settings Manager
|
|
2837
2838
|
_this17.SettingsManager=new libFableSettings(pSettings);_this17.SettingsManager=_this17.SettingsManager;// Instantiate the UUID generator
|
|
@@ -3132,8 +3133,7 @@ return _this25.makeFolderRecursive(tmpParameters,fCallback);}else{console.log(pC
|
|
|
3132
3133
|
* Precedent Meta-Templating
|
|
3133
3134
|
* @author Steven Velozo <steven@velozo.com>
|
|
3134
3135
|
* @description Process text stream trie and postfix tree, parsing out meta-template expression functions.
|
|
3135
|
-
*/var libWordTree=require("./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js");var libStringParser=require("./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js");var FableServiceMetaTemplate=/*#__PURE__*/function(_libFableServiceBase5){_inherits(FableServiceMetaTemplate,_libFableServiceBase5);var _super17=_createSuper(FableServiceMetaTemplate);function FableServiceMetaTemplate(pFable,pOptions,pServiceHash){var _this26;_classCallCheck2(this,FableServiceMetaTemplate);_this26=_super17.call(this,pFable,pOptions,pServiceHash);_this26.serviceType='MetaTemplate';_this26.WordTree=new libWordTree()
|
|
3136
|
-
_this26.StringParser=new libStringParser(_this26.fable);_this26.ParseTree=_this26.WordTree.ParseTree;return _this26;}/**
|
|
3136
|
+
*/var libWordTree=require("./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js");var libStringParser=require("./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js");var FableServiceMetaTemplate=/*#__PURE__*/function(_libFableServiceBase5){_inherits(FableServiceMetaTemplate,_libFableServiceBase5);var _super17=_createSuper(FableServiceMetaTemplate);function FableServiceMetaTemplate(pFable,pOptions,pServiceHash){var _this26;_classCallCheck2(this,FableServiceMetaTemplate);_this26=_super17.call(this,pFable,pOptions,pServiceHash);_this26.serviceType='MetaTemplate';_this26.WordTree=new libWordTree();_this26.StringParser=new libStringParser(_this26.fable);_this26.ParseTree=_this26.WordTree.ParseTree;return _this26;}/**
|
|
3137
3137
|
* Add a Pattern to the Parse Tree
|
|
3138
3138
|
* @method addPattern
|
|
3139
3139
|
* @param {Object} pTree - A node on the parse tree to push the characters into
|
|
@@ -3146,7 +3146,7 @@ _this26.StringParser=new libStringParser(_this26.fable);_this26.ParseTree=_this2
|
|
|
3146
3146
|
* @param {string} pString - The string to parse
|
|
3147
3147
|
* @param {object} pData - Data to pass in as the second argument
|
|
3148
3148
|
* @return {string} The result from the parser
|
|
3149
|
-
*/},{key:"parseString",value:function parseString(pString,pData,fCallback){return this.StringParser.parseString(pString,this.ParseTree,pData,fCallback);}}]);return FableServiceMetaTemplate;}(libFableServiceBase);module.exports=FableServiceMetaTemplate;},{"./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js":129,"./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js":130,"fable-serviceproviderbase":44}],129:[function(require,module,exports){/**
|
|
3149
|
+
*/},{key:"parseString",value:function parseString(pString,pData,fCallback){if(this.LogNoisiness>4){this.fable.log.trace("Metatemplate parsing template string [".concat(pString,"] where the callback is a ").concat(_typeof(fCallback)),{TemplateData:pData});}return this.StringParser.parseString(pString,this.ParseTree,pData,fCallback);}}]);return FableServiceMetaTemplate;}(libFableServiceBase);module.exports=FableServiceMetaTemplate;},{"./Fable-Service-MetaTemplate/MetaTemplate-StringParser.js":129,"./Fable-Service-MetaTemplate/MetaTemplate-WordTree.js":130,"fable-serviceproviderbase":44}],129:[function(require,module,exports){/**
|
|
3150
3150
|
* String Parser
|
|
3151
3151
|
* @author Steven Velozo <steven@velozo.com>
|
|
3152
3152
|
* @description Parse a string, properly processing each matched token in the word tree.
|