Comparing version 2.0.4 to 2.0.5
@@ -1,2 +0,2 @@ | ||
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Fable=t()}}((function(){return function t(e,o,r){function n(s,a){if(!o[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var g=o[s]={exports:{}};e[s][0].call(g.exports,(function(t){return n(e[s][1][t]||t)}),g,g.exports,t,e,o,r)}return o[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)n(r[s]);return n}({1:[function(t,e,o){ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Fable=e()}}((function(){return function e(t,o,r){function n(s,a){if(!o[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var g=o[s]={exports:{}};t[s][0].call(g.exports,(function(e){return n(t[s][1][e]||e)}),g,g.exports,e,t,o,r)}return o[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)n(r[s]);return n}({1:[function(e,t,o){ | ||
/** | ||
@@ -9,3 +9,3 @@ * Base Logger Class | ||
*/ | ||
const r=new(t("fable-uuid").FableUUID);e.exports=class{constructor(t,e){this._Settings=t,this.loggerUUID=r.getUUID()}initialize(){}trace(t,e){this.write("trace",t,e)}debug(t,e){this.write("debug",t,e)}info(t,e){this.write("info",t,e)}warn(t,e){this.write("warn",t,e)}error(t,e){this.write("error",t,e)}fatal(t,e){this.write("fatal",t,e)}write(t,e,o){return!0}}},{"fable-uuid":9}],2:[function(t,e,o){ | ||
const r=new(e("fable-uuid").FableUUID);t.exports=class{constructor(e,t){this._Settings=e,this.loggerUUID=r.getUUID()}initialize(){}trace(e,t){this.write("trace",e,t)}debug(e,t){this.write("debug",e,t)}info(e,t){this.write("info",e,t)}warn(e,t){this.write("warn",e,t)}error(e,t){this.write("error",e,t)}fatal(e,t){this.write("fatal",e,t)}write(e,t,o){return!0}}},{"fable-uuid":9}],2:[function(e,t,o){ | ||
/** | ||
@@ -18,3 +18,3 @@ * Default Logger Provider Function --- Browser | ||
*/ | ||
getDefaultProviders=()=>{let e={};return e.console=t("./Fable-Log-Logger-Console.js"),e},e.exports=getDefaultProviders()},{"./Fable-Log-Logger-Console.js":4}],3:[function(t,e,o){e.exports=[{loggertype:"console",streamtype:"console",level:"trace"}]},{}],4:[function(t,e,o){let r=t("./Fable-Log-BaseLogger.js");e.exports=class extends r{constructor(t,e){super(t),this._ShowTimeStamps=!!t.hasOwnProperty("ShowTimeStamps")&&1==t.ShowTimeStamps,this._FormattedTimeStamps=!!t.hasOwnProperty("FormattedTimeStamps")&&1==t.FormattedTimeStamps,this._ContextMessage=t.hasOwnProperty("Context")?` (${t.Context})`:e._Settings.hasOwnProperty("Product")?` (${e._Settings.Product})`:""}write(t,e,o){if(this._ShowTimeStamps&&this._FormattedTimeStamps){let o=(new Date).toISOString();console.log(`${o} [${t}]${this._ContextMessage} ${e}`)}else if(this._ShowTimeStamps){let o=+new Date;console.log(`${o} [${t}]${this._ContextMessage} ${e}`)}else console.log(`[${t}]${this._ContextMessage} ${e}`);void 0!==o&&console.log(JSON.stringify(o,null,4))}}},{"./Fable-Log-BaseLogger.js":1}],5:[function(t,e,o){ | ||
getDefaultProviders=()=>{let t={};return t.console=e("./Fable-Log-Logger-Console.js"),t.default=t.console,t},t.exports=getDefaultProviders()},{"./Fable-Log-Logger-Console.js":4}],3:[function(e,t,o){t.exports=[{loggertype:"console",streamtype:"console",level:"trace"}]},{}],4:[function(e,t,o){let r=e("./Fable-Log-BaseLogger.js");t.exports=class extends r{constructor(e,t){super(e),this._ShowTimeStamps=!!e.hasOwnProperty("ShowTimeStamps")&&1==e.ShowTimeStamps,this._FormattedTimeStamps=!!e.hasOwnProperty("FormattedTimeStamps")&&1==e.FormattedTimeStamps,this._ContextMessage=e.hasOwnProperty("Context")?` (${e.Context})`:t._Settings.hasOwnProperty("Product")?` (${t._Settings.Product})`:""}write(e,t,o){if(this._ShowTimeStamps&&this._FormattedTimeStamps){let o=(new Date).toISOString();console.log(`${o} [${e}]${this._ContextMessage} ${t}`)}else if(this._ShowTimeStamps){let o=+new Date;console.log(`${o} [${e}]${this._ContextMessage} ${t}`)}else console.log(`[${e}]${this._ContextMessage} ${t}`);void 0!==o&&console.log(JSON.stringify(o,null,4))}}},{"./Fable-Log-BaseLogger.js":1}],5:[function(e,t,o){ | ||
/** | ||
@@ -28,3 +28,3 @@ * Fable Logging Add-on | ||
*/ | ||
class r{constructor(e,o){let r="object"==typeof e?e:{};this._Settings=r,this._Providers=t("./Fable-Log-DefaultProviders.js"),this._StreamDefinitions=r.hasOwnProperty("LogStreams")?r.LogStreams:t("./Fable-Log-DefaultStreams.json"),this.logStreams=[],this.logProviders={},this.activeLogStreams={},this.logStreamsTrace=[],this.logStreamsDebug=[],this.logStreamsInfo=[],this.logStreamsWarn=[],this.logStreamsError=[],this.logStreamsFatal=[],this.datumDecorator=t=>t,this.uuid="string"==typeof r.Product?r.Product:"Default"}addLogger(t,e){if(this.activeLogStreams.hasOwnProperty(t.loggerUUID))return!1;switch(this.logStreams.push(t),this.activeLogStreams[t.loggerUUID]=!0,e){case"trace":this.logStreamsTrace.push(t);case"debug":this.logStreamsDebug.push(t);case"info":this.logStreamsInfo.push(t);case"warn":this.logStreamsWarn.push(t);case"error":this.logStreamsError.push(t);case"fatal":this.logStreamsFatal.push(t)}return!0}setDatumDecorator(t){this.datumDecorator="function"==typeof t?t:t=>t}trace(t,e){const o=this.datumDecorator(e);for(let e=0;e<this.logStreamsTrace.length;e++)this.logStreamsTrace[e].trace(t,o)}debug(t,e){const o=this.datumDecorator(e);for(let e=0;e<this.logStreamsDebug.length;e++)this.logStreamsDebug[e].debug(t,o)}info(t,e){const o=this.datumDecorator(e);for(let e=0;e<this.logStreamsInfo.length;e++)this.logStreamsInfo[e].info(t,o)}warn(t,e){const o=this.datumDecorator(e);for(let e=0;e<this.logStreamsWarn.length;e++)this.logStreamsWarn[e].warn(t,o)}error(t,e){const o=this.datumDecorator(e);for(let e=0;e<this.logStreamsError.length;e++)this.logStreamsError[e].error(t,o)}fatal(t,e){const o=this.datumDecorator(e);for(let e=0;e<this.logStreamsFatal.length;e++)this.logStreamsFatal[e].fatal(t,o)}initialize(){for(let t=0;t<this._StreamDefinitions.length;t++){let e=Object.assign({loggertype:"console",streamtype:"console",level:"info"},this._StreamDefinitions[t]);this._Providers.hasOwnProperty(e.loggertype)?this.addLogger(new this._Providers[e.loggertype](e,this),e.level):console.log(`Error initializing log stream: bad loggertype in stream definition ${JSON.stringify(e)}`)}for(let t=0;t<this.logStreams.length;t++)this.logStreams[t].initialize()}logTime(t,e){let o=void 0!==t?t:"Time",r=new Date;this.info(`${o} ${r} (epoch ${+r})`,e)}getTimeStamp(){return+new Date}getTimeDelta(t){return+new Date-t}logTimeDelta(t,e,o){let r=void 0!==e?e:"Time Measurement",n=+new Date;this.info(`${r} logged at (epoch ${+n}) took (${t}ms)`,o)}logTimeDeltaHuman(t,e,o){let r=void 0!==e?e:"Time Measurement",n=+new Date,i=parseInt(t%1e3),s=parseInt(t/1e3%60),a=parseInt(t/6e4%60),l=parseInt(t/36e5);i=i<10?"00"+i:i<100?"0"+i:i,s=s<10?"0"+s:s,a=a<10?"0"+a:a,l=l<10?"0"+l:l,this.info(`${r} logged at (epoch ${+n}) took (${t}ms) or (${l}:${a}:${s}.${i})`,o)}logTimeDeltaRelative(t,e,o){this.logTimeDelta(this.getTimeDelta(t),e,o)}logTimeDeltaRelativeHuman(t,e,o){this.logTimeDeltaHuman(this.getTimeDelta(t),e,o)}}e.exports={new:function(t){return new r(t)},FableLog:r}},{"./Fable-Log-DefaultProviders.js":2,"./Fable-Log-DefaultStreams.json":3}],6:[function(t,e,o){e.exports={Product:"ApplicationNameHere",ProductVersion:"0.0.0",ConfigFile:!1,LogStreams:[{level:"trace"}]}},{}],7:[function(t,e,o){(function(o){(function(){ | ||
class r{constructor(t,o){let r="object"==typeof t?t:{};this._Settings=r,this._Providers=e("./Fable-Log-DefaultProviders.js"),this._StreamDefinitions=r.hasOwnProperty("LogStreams")?r.LogStreams:e("./Fable-Log-DefaultStreams.json"),this.logStreams=[],this.logProviders={},this.activeLogStreams={},this.logStreamsTrace=[],this.logStreamsDebug=[],this.logStreamsInfo=[],this.logStreamsWarn=[],this.logStreamsError=[],this.logStreamsFatal=[],this.datumDecorator=e=>e,this.uuid="string"==typeof r.Product?r.Product:"Default"}addLogger(e,t){if(this.activeLogStreams.hasOwnProperty(e.loggerUUID))return!1;switch(this.logStreams.push(e),this.activeLogStreams[e.loggerUUID]=!0,t){case"trace":this.logStreamsTrace.push(e);case"debug":this.logStreamsDebug.push(e);case"info":this.logStreamsInfo.push(e);case"warn":this.logStreamsWarn.push(e);case"error":this.logStreamsError.push(e);case"fatal":this.logStreamsFatal.push(e)}return!0}setDatumDecorator(e){this.datumDecorator="function"==typeof e?e:e=>e}trace(e,t){const o=this.datumDecorator(t);for(let t=0;t<this.logStreamsTrace.length;t++)this.logStreamsTrace[t].trace(e,o)}debug(e,t){const o=this.datumDecorator(t);for(let t=0;t<this.logStreamsDebug.length;t++)this.logStreamsDebug[t].debug(e,o)}info(e,t){const o=this.datumDecorator(t);for(let t=0;t<this.logStreamsInfo.length;t++)this.logStreamsInfo[t].info(e,o)}warn(e,t){const o=this.datumDecorator(t);for(let t=0;t<this.logStreamsWarn.length;t++)this.logStreamsWarn[t].warn(e,o)}error(e,t){const o=this.datumDecorator(t);for(let t=0;t<this.logStreamsError.length;t++)this.logStreamsError[t].error(e,o)}fatal(e,t){const o=this.datumDecorator(t);for(let t=0;t<this.logStreamsFatal.length;t++)this.logStreamsFatal[t].fatal(e,o)}initialize(){for(let e=0;e<this._StreamDefinitions.length;e++){let t=Object.assign({loggertype:"default",streamtype:"console",level:"info"},this._StreamDefinitions[e]);this._Providers.hasOwnProperty(t.loggertype)?this.addLogger(new this._Providers[t.loggertype](t,this),t.level):console.log(`Error initializing log stream: bad loggertype in stream definition ${JSON.stringify(t)}`)}for(let e=0;e<this.logStreams.length;e++)this.logStreams[e].initialize()}logTime(e,t){let o=void 0!==e?e:"Time",r=new Date;this.info(`${o} ${r} (epoch ${+r})`,t)}getTimeStamp(){return+new Date}getTimeDelta(e){return+new Date-e}logTimeDelta(e,t,o){let r=void 0!==t?t:"Time Measurement",n=+new Date;this.info(`${r} logged at (epoch ${+n}) took (${e}ms)`,o)}logTimeDeltaHuman(e,t,o){let r=void 0!==t?t:"Time Measurement",n=+new Date,i=parseInt(e%1e3),s=parseInt(e/1e3%60),a=parseInt(e/6e4%60),l=parseInt(e/36e5);i=i<10?"00"+i:i<100?"0"+i:i,s=s<10?"0"+s:s,a=a<10?"0"+a:a,l=l<10?"0"+l:l,this.info(`${r} logged at (epoch ${+n}) took (${e}ms) or (${l}:${a}:${s}.${i})`,o)}logTimeDeltaRelative(e,t,o){this.logTimeDelta(this.getTimeDelta(e),t,o)}logTimeDeltaRelativeHuman(e,t,o){this.logTimeDeltaHuman(this.getTimeDelta(e),t,o)}}t.exports={new:function(e){return new r(e)},FableLog:r}},{"./Fable-Log-DefaultProviders.js":2,"./Fable-Log-DefaultStreams.json":3}],6:[function(e,t,o){t.exports={Product:"ApplicationNameHere",ProductVersion:"0.0.0",ConfigFile:!1,LogStreams:[{level:"trace"}]}},{}],7:[function(e,t,o){(function(o){(function(){ | ||
/** | ||
@@ -38,3 +38,3 @@ * Fable Settings Add-on | ||
*/ | ||
const r=t("match-all");class n{constructor(e){this.default=this.buildDefaultSettings();let o=this.merge(e,this.buildDefaultSettings());if(this._PerformEnvTemplating=!o||!0!==o.NoEnvReplacement,this.base=JSON.parse(JSON.stringify(o)),o.DefaultConfigFile)try{o=this.merge(t(o.DefaultConfigFile),o)}catch(t){console.log("Fable-Settings Warning: Default configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+t)}if(o.ConfigFile)try{o=this.merge(t(o.ConfigFile),o)}catch(t){console.log("Fable-Settings Warning: Configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+t)}this.settings=o}buildDefaultSettings(){return JSON.parse(JSON.stringify(t("./Fable-Settings-Default")))}_resolveEnv(t){for(const e in t){const n=t[e];if("object"==typeof n)this._resolveEnv(n);else if("string"==typeof n&&n.indexOf("${")>=0){r(n,/\$\{(.*?)\}/g).toArray().forEach((r=>{const n=r.split("|");let i=o.env[n[0]]||"";!i&&n.length>1&&(i=n[1]),t[e]=t[e].replace("${"+r+"}",i)}))}}}merge(t,e){let o="object"==typeof t?t:{},r="object"==typeof e?e:this.settings,n=JSON.parse(JSON.stringify(o));return r=Object.assign(r,n),this._PerformEnvTemplating&&this._resolveEnv(r),r}fill(t){let e="object"==typeof t?t:{};return this.settings=Object.assign(e,this.settings),this.settings}}e.exports={new:function(t){return new n(t)},FableSettings:n}}).call(this)}).call(this,t("_process"))},{"./Fable-Settings-Default":6,_process:11,"match-all":10}],8:[function(t,e,o){e.exports= | ||
const r=e("match-all");class n{constructor(t){this.default=this.buildDefaultSettings();let o=this.merge(t,this.buildDefaultSettings());if(this._PerformEnvTemplating=!o||!0!==o.NoEnvReplacement,this.base=JSON.parse(JSON.stringify(o)),o.DefaultConfigFile)try{o=this.merge(e(o.DefaultConfigFile),o)}catch(e){console.log("Fable-Settings Warning: Default configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+e)}if(o.ConfigFile)try{o=this.merge(e(o.ConfigFile),o)}catch(e){console.log("Fable-Settings Warning: Configuration file specified but there was a problem loading it. Falling back to base."),console.log(" Loading Exception: "+e)}this.settings=o}buildDefaultSettings(){return JSON.parse(JSON.stringify(e("./Fable-Settings-Default")))}_resolveEnv(e){for(const t in e){const n=e[t];if("object"==typeof n)this._resolveEnv(n);else if("string"==typeof n&&n.indexOf("${")>=0){r(n,/\$\{(.*?)\}/g).toArray().forEach((r=>{const n=r.split("|");let i=o.env[n[0]]||"";!i&&n.length>1&&(i=n[1]),e[t]=e[t].replace("${"+r+"}",i)}))}}}_isObject(e){return"object"==typeof e&&!Array.isArray(e)}_deepMergeObjects(e,t){if(t&&this._isObject(t))return Object.keys(t).forEach((o=>{const r=t[o];if(this._isObject(r)){const t=e[o];if(t&&this._isObject(t))return void this._deepMergeObjects(t,r)}e[o]=r})),e}merge(e,t){let o="object"==typeof e?e:{},r="object"==typeof t?t:this.settings,n=JSON.parse(JSON.stringify(o));return r=this._deepMergeObjects(r,n),this._PerformEnvTemplating&&this._resolveEnv(r),r}fill(e){let t="object"==typeof e?e:{},o=JSON.parse(JSON.stringify(t));return this.settings=this._deepMergeObjects(o,this.settings),this.settings}}t.exports={new:function(e){return new n(e)},FableSettings:n}}).call(this)}).call(this,e("_process"))},{"./Fable-Settings-Default":6,_process:11,"match-all":10}],8:[function(e,t,o){t.exports= | ||
/** | ||
@@ -47,3 +47,3 @@ * Random Byte Generator - Browser version | ||
*/ | ||
class{constructor(){this.getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)}generateWhatWGBytes(){let t=new Uint8Array(16);return this.getRandomValues(t),t}generateRandomBytes(){let t=new Uint8Array(16);for(let e,o=0;o<16;o++)0==(3&o)&&(e=4294967296*Math.random()),t[o]=e>>>((3&o)<<3)&255;return t}generate(){return this.getRandomValues?generateWhatWGBytes():generateRandomBytes()}}},{}],9:[function(t,e,o){ | ||
class{constructor(){this.getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)}generateWhatWGBytes(){let e=new Uint8Array(16);return this.getRandomValues(e),e}generateRandomBytes(){let e=new Uint8Array(16);for(let t,o=0;o<16;o++)0==(3&o)&&(t=4294967296*Math.random()),e[o]=t>>>((3&o)<<3)&255;return e}generate(){return this.getRandomValues?this.generateWhatWGBytes():this.generateRandomBytes()}}},{}],9:[function(e,t,o){ | ||
/** | ||
@@ -57,3 +57,3 @@ * Fable UUID Generator | ||
*/ | ||
var r=t("./Fable-UUID-Random.js");class n{constructor(t){this._UUIDModeRandom=!("object"!=typeof t||!t.hasOwnProperty("UUIDModeRandom"))&&1==t.UUIDModeRandom,this._UUIDLength="object"==typeof t&&t.hasOwnProperty("UUIDLength")?t.UUIDLength+0:8,this._UUIDRandomDictionary="object"==typeof t&&t.hasOwnProperty("UUIDDictionary")?t.UUIDDictionary+0:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",this.randomByteGenerator=new r,this._HexLookup=[];for(let t=0;t<256;++t)this._HexLookup[t]=(t+256).toString(16).substr(1)}bytesToUUID(t){let e=0;return[this._HexLookup[t[e++]],this._HexLookup[t[e++]],this._HexLookup[t[e++]],this._HexLookup[t[e++]],"-",this._HexLookup[t[e++]],this._HexLookup[t[e++]],"-",this._HexLookup[t[e++]],this._HexLookup[t[e++]],"-",this._HexLookup[t[e++]],this._HexLookup[t[e++]],"-",this._HexLookup[t[e++]],this._HexLookup[t[e++]],this._HexLookup[t[e++]],this._HexLookup[t[e++]],this._HexLookup[t[e++]],this._HexLookup[t[e++]]].join("")}generateUUIDv4(){new Array(16);var t=this.randomByteGenerator.generate();return t[6]=15&t[6]|64,t[8]=63&t[8]|128,this.bytesToUUID(t)}generateRandom(){let t="";for(let e=0;e<this._UUIDLength;e++)t+=this._UUIDRandomDictionary.charAt(Math.floor(Math.random()*(this._UUIDRandomDictionary.length-1)));return t}getUUID(){return this._UUIDModeRandom?this.generateRandom():this.generateUUIDv4()}}e.exports={new:function(t){return new n(t)},FableUUID:n}},{"./Fable-UUID-Random.js":8}],10:[function(t,e,o){"use strict";e.exports=function(t,e){return{input:t,regex:e,next:function(){var t=this.nextRaw();if(t)for(var e=1;e<t.length;e++)if(t[e])return t[e];return null},nextRaw:function(){return this.regex.exec(this.input)},toArray:function(){for(var t=[],e=null;e=this.next();)t.push(e);return t},reset:function(t){return this.regex.lastIndex=t||0}}}},{}],11:[function(t,e,o){var r,n,i=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(t){if(r===setTimeout)return setTimeout(t,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(t){r=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,g=[],h=!1,c=-1;function f(){h&&u&&(h=!1,u.length?g=u.concat(g):c=-1,g.length&&m())}function m(){if(!h){var t=l(f);h=!0;for(var e=g.length;e;){for(u=g,g=[];++c<e;)u&&u[c].run();c=-1,e=g.length}u=null,h=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)e[o-1]=arguments[o];g.push(new p(t,e)),1!==g.length||h||l(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],12:[function(t,e,o){ | ||
var r=e("./Fable-UUID-Random.js");class n{constructor(e){this._UUIDModeRandom=!("object"!=typeof e||!e.hasOwnProperty("UUIDModeRandom"))&&1==e.UUIDModeRandom,this._UUIDLength="object"==typeof e&&e.hasOwnProperty("UUIDLength")?e.UUIDLength+0:8,this._UUIDRandomDictionary="object"==typeof e&&e.hasOwnProperty("UUIDDictionary")?e.UUIDDictionary+0:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",this.randomByteGenerator=new r,this._HexLookup=[];for(let e=0;e<256;++e)this._HexLookup[e]=(e+256).toString(16).substr(1)}bytesToUUID(e){let t=0;return[this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],"-",this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]],this._HexLookup[e[t++]]].join("")}generateUUIDv4(){new Array(16);var e=this.randomByteGenerator.generate();return e[6]=15&e[6]|64,e[8]=63&e[8]|128,this.bytesToUUID(e)}generateRandom(){let e="";for(let t=0;t<this._UUIDLength;t++)e+=this._UUIDRandomDictionary.charAt(Math.floor(Math.random()*(this._UUIDRandomDictionary.length-1)));return e}getUUID(){return this._UUIDModeRandom?this.generateRandom():this.generateUUIDv4()}}t.exports={new:function(e){return new n(e)},FableUUID:n}},{"./Fable-UUID-Random.js":8}],10:[function(e,t,o){"use strict";t.exports=function(e,t){return{input:e,regex:t,next:function(){var e=this.nextRaw();if(e)for(var t=1;t<e.length;t++)if(e[t])return e[t];return null},nextRaw:function(){return this.regex.exec(this.input)},toArray:function(){for(var e=[],t=null;t=this.next();)e.push(t);return e},reset:function(e){return this.regex.lastIndex=e||0}}}},{}],11:[function(e,t,o){var r,n,i=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,g=[],h=!1,c=-1;function f(){h&&u&&(h=!1,u.length?g=u.concat(g):c=-1,g.length&&m())}function m(){if(!h){var e=l(f);h=!0;for(var t=g.length;t;){for(u=g,g=[];++c<t;)u&&u[c].run();c=-1,t=g.length}u=null,h=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)t[o-1]=arguments[o];g.push(new p(e,t)),1!==g.length||h||l(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],12:[function(e,t,o){ | ||
/** | ||
@@ -63,3 +63,3 @@ * @license MIT | ||
*/ | ||
const r=t("fable-settings").FableSettings,n=t("fable-uuid").FableUUID,i=t("fable-log").FableLog;class s{constructor(t){let e=new r(t);this.settingsManager=e,this.libUUID=new n(this.settingsManager.settings),this.log=new i(this.settingsManager.settings),this.log.initialize()}get settings(){return this.settingsManager.settings}get fable(){return this}getUUID(){return this.libUUID.getUUID()}}e.exports={new:function(t){return new s(t)},Fable:s}},{"fable-log":5,"fable-settings":7,"fable-uuid":9}]},{},[12])(12)})); | ||
const r=e("fable-settings").FableSettings,n=e("fable-uuid").FableUUID,i=e("fable-log").FableLog;class s{constructor(e){let t=new r(e);this.settingsManager=t,this.libUUID=new n(this.settingsManager.settings),this.log=new i(this.settingsManager.settings),this.log.initialize()}get settings(){return this.settingsManager.settings}get fable(){return this}getUUID(){return this.libUUID.getUUID()}}t.exports={new:function(e){return new s(e)},Fable:s}},{"fable-log":5,"fable-settings":7,"fable-uuid":9}]},{},[12])(12)})); | ||
//# sourceMappingURL=fable.min.js.map |
{ | ||
"name": "fable", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "An entity behavior management and API bundling library.", | ||
@@ -5,0 +5,0 @@ "main": "source/Fable.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
159267
1452