fable 3.0.32 → 3.0.34
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/.config/configstore/update-notifier-npm.json +1 -1
- package/.config/retold-harness/MySQL-Laden-Entry.sh +17 -0
- package/.config/retold-harness/MySQL-Security.sql +5 -0
- package/.config/retold-harness/bookstore-api-endpoint-exercises.paw +0 -0
- package/.config/retold-harness/bookstore-configuration.json +28 -0
- package/.config/retold-harness/bookstore-import-books-run.js +1 -0
- package/.config/retold-harness/bookstore-import-books.js +214 -0
- package/.config/retold-harness/bookstore-serve-meadow-endpoint-apis-IPC.js +137 -0
- package/.config/retold-harness/bookstore-serve-meadow-endpoint-apis.js +128 -0
- package/.config/retold-harness/data/books.csv +10001 -0
- package/.config/retold-harness/model/ddl/BookStore.ddl +66 -0
- package/.config/retold-harness/model/generated_diagram/README.md +1 -0
- package/.config/retold-harness/model/generated_diagram/Stricture_Output.dot +13 -0
- package/.config/retold-harness/model/generated_diagram/Stricture_Output.png +0 -0
- package/.config/retold-harness/model/generated_documentation/Dictionary.md +18 -0
- package/.config/retold-harness/model/generated_documentation/Model-Author.md +20 -0
- package/.config/retold-harness/model/generated_documentation/Model-Book.md +26 -0
- package/.config/retold-harness/model/generated_documentation/Model-BookAuthorJoin.md +14 -0
- package/.config/retold-harness/model/generated_documentation/Model-BookPrice.md +25 -0
- package/.config/retold-harness/model/generated_documentation/Model-Review.md +22 -0
- package/.config/retold-harness/model/generated_documentation/ModelChangeTracking.md +17 -0
- package/.config/retold-harness/model/generated_documentation/README.md +1 -0
- package/.config/retold-harness/model/json_schema/BookStore-Extended.json +915 -0
- package/.config/retold-harness/model/json_schema/BookStore-PICT.json +1 -0
- package/.config/retold-harness/model/json_schema/BookStore.json +280 -0
- package/.config/retold-harness/model/json_schema/README.md +1 -0
- package/.config/retold-harness/model/manual_scripts/DropTables.sql +5 -0
- package/.config/retold-harness/model/manual_scripts/README.md +2 -0
- package/.config/retold-harness/model/meadow_schema/BookStore-MeadowSchema-Author.json +220 -0
- package/.config/retold-harness/model/meadow_schema/BookStore-MeadowSchema-Book.json +268 -0
- package/.config/retold-harness/model/meadow_schema/BookStore-MeadowSchema-BookAuthorJoin.json +172 -0
- package/.config/retold-harness/model/meadow_schema/BookStore-MeadowSchema-BookPrice.json +260 -0
- package/.config/retold-harness/model/meadow_schema/BookStore-MeadowSchema-Review.json +236 -0
- package/.config/retold-harness/model/meadow_schema/README.md +1 -0
- package/.config/retold-harness/model/sql_create/BookStore-CreateDatabase.mysql.sql +116 -0
- package/.config/retold-harness/model/sql_create/README.md +1 -0
- package/.config/retold-harness/package.json +19 -0
- package/.config/retold-harness/test_old/Tests.js +3243 -0
- package/.config/retold-harness/test_old/untitled.js +88 -0
- package/.config/vscode-sqltools/runningInfo.json +13 -0
- package/.vscode/settings.json +17 -0
- package/Dockerfile_LUXURYCode +18 -0
- package/README.md +1 -1
- package/dist/fable.compatible.js +1 -11
- package/dist/fable.compatible.min.js +2 -78
- package/dist/fable.compatible.min.js.map +1 -1
- package/dist/fable.js +1 -11
- package/dist/fable.min.js +2 -70
- package/dist/fable.min.js.map +1 -1
- package/package.json +5 -5
- package/source/Fable-ServiceManager.js +0 -1
- package/source/Fable.js +5 -1
- package/source/services/Fable-Service-DataFormat.js +0 -1
package/dist/fable.js
CHANGED
|
@@ -205,7 +205,6 @@ emitter.addEventListener(name,function wrapListener(arg){// IE does not have bui
|
|
|
205
205
|
if(flags.once){emitter.removeEventListener(name,wrapListener);}listener(arg);});}else{throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof emitter);}}},{}],22:[function(require,module,exports){/**
|
|
206
206
|
* Base Logger Class
|
|
207
207
|
*
|
|
208
|
-
* @license MIT
|
|
209
208
|
*
|
|
210
209
|
* @author Steven Velozo <steven@velozo.com>
|
|
211
210
|
*/class BaseLogger{constructor(pLogStreamSettings,pFableLog){// This should not possibly be able to be instantiated without a settings object
|
|
@@ -222,7 +221,6 @@ let tmpRandomData=(tmpDate+Math.random()*16)%16|0;tmpDate=Math.floor(tmpDate/16)
|
|
|
222
221
|
return true;}}module.exports=BaseLogger;},{}],23:[function(require,module,exports){/**
|
|
223
222
|
* Default Logger Provider Function
|
|
224
223
|
*
|
|
225
|
-
* @license MIT
|
|
226
224
|
*
|
|
227
225
|
* @author Steven Velozo <steven@velozo.com>
|
|
228
226
|
*/ // Return the providers that are available without extensions loaded
|
|
@@ -259,20 +257,17 @@ function autoConstruct(pSettings){return new FableLog(pSettings);}module.exports
|
|
|
259
257
|
* For a couple services, we need to be able to instantiate them before the Fable object is fully initialized.
|
|
260
258
|
* This is a base class for those services.
|
|
261
259
|
*
|
|
262
|
-
* @license MIT
|
|
263
260
|
* @author <steven@velozo.com>
|
|
264
261
|
*/class FableCoreServiceProviderBase{constructor(pOptions,pServiceHash){this.fable=false;this.options=typeof pOptions==='object'?pOptions:{};this.serviceType='Unknown';// The hash will be a non-standard UUID ... the UUID service uses this base class!
|
|
265
262
|
this.UUID="CORESVC-".concat(Math.floor(Math.random()*(99999-10000)+10000));this.Hash=typeof pServiceHash==='string'?pServiceHash:"".concat(this.UUID);}// After fable is initialized, it would be expected to be wired in as a normal service.
|
|
266
263
|
connectFable(pFable){this.fable=pFable;return true;}}_defineProperty2(FableCoreServiceProviderBase,"isFableService",true);module.exports=FableCoreServiceProviderBase;},{}],29:[function(require,module,exports){/**
|
|
267
264
|
* Fable Service Base
|
|
268
|
-
* @license MIT
|
|
269
265
|
* @author <steven@velozo.com>
|
|
270
266
|
*/class FableServiceProviderBase{constructor(pFable,pOptions,pServiceHash){this.fable=pFable;this.options=typeof pOptions==='object'?pOptions:{};this.serviceType='Unknown';this.UUID=pFable.getUUID();this.Hash=typeof pServiceHash==='string'?pServiceHash:"".concat(this.UUID);}}_defineProperty2(FableServiceProviderBase,"isFableService",true);module.exports=FableServiceProviderBase;module.exports.CoreServiceProviderBase=require('./Fable-ServiceProviderBase-Preinit.js');},{"./Fable-ServiceProviderBase-Preinit.js":28}],30:[function(require,module,exports){module.exports={"Product":"ApplicationNameHere","ProductVersion":"0.0.0","ConfigFile":false,"LogStreams":[{"level":"trace"}]};},{}],31:[function(require,module,exports){(function(process){(function(){/**
|
|
271
267
|
* Fable Settings Template Processor
|
|
272
268
|
*
|
|
273
269
|
* This class allows environment variables to come in via templated expressions, and defaults to be set.
|
|
274
270
|
*
|
|
275
|
-
* @license MIT
|
|
276
271
|
*
|
|
277
272
|
* @author Steven Velozo <steven@velozo.com>
|
|
278
273
|
* @module Fable Settings
|
|
@@ -282,7 +277,6 @@ this.templateProcessor.addPattern('${','}',pTemplateValue=>{let tmpTemplateValue
|
|
|
282
277
|
let tmpDefaultValue=tmpTemplateValue.substring(tmpSeparatorIndex+1);let tmpEnvironmentVariableName=tmpSeparatorIndex>-1?tmpTemplateValue.substring(0,tmpSeparatorIndex):tmpTemplateValue;if(process.env.hasOwnProperty(tmpEnvironmentVariableName)){return process.env[tmpEnvironmentVariableName];}else{return tmpDefaultValue;}});}parseSetting(pString){return this.templateProcessor.parseString(pString);}}module.exports=FableSettingsTemplateProcessor;}).call(this);}).call(this,require('_process'));},{"_process":43,"precedent":40}],32:[function(require,module,exports){/**
|
|
283
278
|
* Fable Settings Add-on
|
|
284
279
|
*
|
|
285
|
-
* @license MIT
|
|
286
280
|
*
|
|
287
281
|
* @author Steven Velozo <steven@velozo.com>
|
|
288
282
|
* @module Fable Settings
|
|
@@ -317,7 +311,6 @@ let tmpSettingsFromCopy=JSON.parse(JSON.stringify(tmpSettingsFrom));this.setting
|
|
|
317
311
|
function autoConstruct(pSettings){return new FableSettings(pSettings);}module.exports=FableSettings;module.exports.new=autoConstruct;},{"./Fable-Settings-Default":30,"./Fable-Settings-TemplateProcessor.js":31,"fable-serviceproviderbase":29}],33:[function(require,module,exports){/**
|
|
318
312
|
* Random Byte Generator - Browser version
|
|
319
313
|
*
|
|
320
|
-
* @license MIT
|
|
321
314
|
*
|
|
322
315
|
* @author Steven Velozo <steven@velozo.com>
|
|
323
316
|
*/ // Adapted from node-uuid (https://github.com/kelektiv/node-uuid)
|
|
@@ -1658,7 +1651,6 @@ try{if(!global.localStorage)return false;}catch(_){return false;}var val=global.
|
|
|
1658
1651
|
// decorations and such are not lost along the way.
|
|
1659
1652
|
module.exports=wrappy;function wrappy(fn,cb){if(fn&&cb)return wrappy(fn)(cb);if(typeof fn!=='function')throw new TypeError('need wrapper function');Object.keys(fn).forEach(function(k){wrapper[k]=fn[k];});return wrapper;function wrapper(){var args=new Array(arguments.length);for(var i=0;i<args.length;i++){args[i]=arguments[i];}var ret=fn.apply(this,args);var cb=args[args.length-1];if(typeof ret==='function'&&ret!==cb){Object.keys(cb).forEach(function(k){ret[k]=cb[k];});}return ret;}}},{}],76:[function(require,module,exports){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){var target={};for(var i=0;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;}},{}],77:[function(require,module,exports){var libNPMModuleWrapper=require('./Fable.js');if(typeof window==='object'&&!window.hasOwnProperty('Fable')){window.Fable=libNPMModuleWrapper;}module.exports=libNPMModuleWrapper;},{"./Fable.js":79}],78:[function(require,module,exports){/**
|
|
1660
1653
|
* Fable Application Services Management
|
|
1661
|
-
* @license MIT
|
|
1662
1654
|
* @author <steven@velozo.com>
|
|
1663
1655
|
*/const libFableServiceBase=require('fable-serviceproviderbase');class FableService extends libFableServiceBase.CoreServiceProviderBase{constructor(pSettings,pServiceHash){super(pSettings,pServiceHash);this.serviceType='ServiceManager';this.serviceTypes=[];// A map of instantiated services
|
|
1664
1656
|
this.services={};// A map of the default instantiated service by type
|
|
@@ -1682,7 +1674,6 @@ this.services[tmpServiceType]={};}// Add the service to the service map
|
|
|
1682
1674
|
this.services[tmpServiceType][tmpServiceHash]=pServiceInstance;// If this is the first service of this type, make it the default
|
|
1683
1675
|
if(!this.defaultServices.hasOwnProperty(tmpServiceType)){this.defaultServices[tmpServiceType]=pServiceInstance;}return pServiceInstance;}setDefaultServiceInstantiation(pServiceType,pServiceHash){if(this.services[pServiceType].hasOwnProperty(pServiceHash)){this.defaultServices[pServiceType]=this.services[pServiceType][pServiceHash];return true;}return false;}}module.exports=FableService;module.exports.ServiceProviderBase=libFableServiceBase;module.exports.CoreServiceProviderBase=libFableServiceBase.CoreServiceProviderBase;},{"fable-serviceproviderbase":29}],79:[function(require,module,exports){/**
|
|
1684
1676
|
* Fable Application Services Support Library
|
|
1685
|
-
* @license MIT
|
|
1686
1677
|
* @author <steven@velozo.com>
|
|
1687
1678
|
*/ // Pre-init services
|
|
1688
1679
|
const libFableSettings=require('fable-settings');const libFableUUID=require('fable-uuid');const libFableLog=require('fable-log');const libFableServiceManager=require('./Fable-ServiceManager.js');// Default Services
|
|
@@ -1699,9 +1690,8 @@ this._coreServices.ServiceManager=new libFableServiceManager(this);this.serviceM
|
|
|
1699
1690
|
// Initialization Phase 2: Map in the default services.
|
|
1700
1691
|
// They will then be available in the Default service provider set as well.
|
|
1701
1692
|
this.serviceManager.connectPreinitServiceProviderInstance(this._coreServices.ServiceManager);this.serviceManager.connectPreinitServiceProviderInstance(this._coreServices.UUID);this.serviceManager.connectPreinitServiceProviderInstance(this._coreServices.Logging);this.serviceManager.connectPreinitServiceProviderInstance(this._coreServices.SettingsManager);// Initialize and instantiate the default baked-in Data Arithmatic service
|
|
1702
|
-
this.serviceManager.addServiceType('Template',libFableServiceTemplate);this.serviceManager.addServiceType('MetaTemplate',libFableServiceMetaTemplate);this.serviceManager.addAndInstantiateServiceType('DataFormat',libFableServiceDataFormat);this.serviceManager.addAndInstantiateServiceType('Utility',libFableServiceUtility);this.serviceManager.addServiceType('Operation',libFableServiceOperation);this.serviceManager.addServiceType('RestClient',libFableServiceRestClient);}get settings(){return this._coreServices.SettingsManager.settings;}get log(){return this._coreServices.Logging;}get services(){return this._coreServices.ServiceManager.services;}get defaultServices(){return this._coreServices.ServiceManager.defaultServices;}getUUID(){return this._coreServices.UUID.getUUID();}get fable(){return this;}}// This is for backwards compatibility
|
|
1693
|
+
this.serviceManager.addServiceType('Template',libFableServiceTemplate);this.serviceManager.addServiceType('MetaTemplate',libFableServiceMetaTemplate);this.serviceManager.addAndInstantiateServiceType('DataFormat',libFableServiceDataFormat);this.serviceManager.addAndInstantiateServiceType('Utility',libFableServiceUtility);this.serviceManager.addServiceType('Operation',libFableServiceOperation);this.serviceManager.addServiceType('RestClient',libFableServiceRestClient);}get settings(){return this._coreServices.SettingsManager.settings;}get settingsManager(){return this._coreServices.SettingsManager;}get log(){return this._coreServices.Logging;}get services(){return this._coreServices.ServiceManager.services;}get defaultServices(){return this._coreServices.ServiceManager.defaultServices;}getUUID(){return this._coreServices.UUID.getUUID();}get fable(){return this;}}// This is for backwards compatibility
|
|
1703
1694
|
function autoConstruct(pSettings){return new Fable(pSettings);}module.exports=Fable;module.exports.new=autoConstruct;module.exports.LogProviderBase=libFableLog.LogProviderBase;module.exports.ServiceProviderBase=libFableServiceManager.ServiceProviderBase;module.exports.CoreServiceProviderBase=libFableServiceManager.CoreServiceProviderBase;module.exports.precedent=libFableSettings.precedent;},{"./Fable-ServiceManager.js":78,"./services/Fable-Service-DataFormat.js":80,"./services/Fable-Service-MetaTemplate.js":81,"./services/Fable-Service-Operation.js":83,"./services/Fable-Service-RestClient.js":84,"./services/Fable-Service-Template.js":85,"./services/Fable-Service-Utility.js":86,"fable-log":27,"fable-settings":32,"fable-uuid":34}],80:[function(require,module,exports){/**
|
|
1704
|
-
* @license MIT
|
|
1705
1695
|
*/const libFableServiceProviderBase=require('fable-serviceproviderbase');/**
|
|
1706
1696
|
* Data Formatting and Translation Functions
|
|
1707
1697
|
*
|