fable 3.0.25 → 3.0.27

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/.browserslistrc CHANGED
@@ -1 +1 @@
1
- > 0.01%
1
+ since 2018
@@ -607,7 +607,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
607
607
  key: "formatterRoundNumber",
608
608
  value: function formatterRoundNumber(pValue, pDigits) {
609
609
  var tmpDigits = typeof pDigits == 'undefined' ? 2 : pDigits;
610
- var tmpValue = Number.parseFloat(pValue).toFixed(tmpDigits);
610
+ var tmpValue = parseFloat(pValue).toFixed(tmpDigits);
611
611
  if (isNaN(tmpValue)) {
612
612
  var tmpZed = 0;
613
613
  return tmpZed.toFixed(tmpDigits);
@@ -3,7 +3,7 @@
3
3
  * @license MIT
4
4
  * @author <steven@velozo.com>
5
5
  */
6
- var n=function(){function e(){_classCallCheck(this,e),this._Regex_formatterInsertCommas=/.{1,3}/g,this._Regex_formatterAddCommasToNumber=/^([-+]?)(0?)(\d+)(.?)(\d+)$/g,this._Regex_formatterDollarsRemoveCommas=/,/gi,this._Regex_formatterCleanNonAlpha=/[^a-z0-9]/gi,this._Value_MoneySign_Currency="$",this._Value_NaN_Currency="--",this._Value_GroupSeparator_Number=",",this._Value_Prefix_StringHash="HSH",this._Value_Clean_formatterCleanNonAlpha="_",this._UseEngineStringStartsWith="function"==typeof String.prototype.startsWith,this._UseEngineStringEndsWith="function"==typeof String.prototype.endsWith}return _createClass(e,[{key:"stringReverse",value:function(e){return e.split("").reverse().join("")}},{key:"stringStartsWith",value:function(e,t,r){return this._UseEngineStringStartsWith?e.startsWith(t,r):this.stringStartsWith_Polyfill.call(e,t,r)}},{key:"stringStartsWith_Polyfill",value:function(e,t){return this.slice(t||0,e.length)===e}},{key:"stringEndsWith",value:function(e,t,r){return this._UseEngineStringEndsWith?e.endsWith(t,r):this.stringEndsWith_Polyfill.call(e,t,r)}},{key:"stringEndsWith_Polyfill",value:function(e,t){return t<this.length?t|=0:t=this.length,this.substr(t-e.length,e.length)===e}},{key:"insecureStringHash",value:function(e){for(var t=0,r=e.length,n=0;n<r;)t=(t<<5)-t+e.charCodeAt(n++)|0;return"".concat(this._Value_Prefix_StringHash).concat(t)}},{key:"cleanEnclosureWrapCharacters",value:function(e,t){return t.startsWith(e)&&t.endsWith(e)?t.substring(1,t.length-1):t}},{key:"cleanNonAlphaCharacters",value:function(e){if("string"==typeof e&&""!=e)return e.replace(this._Regex_formatterCleanNonAlpha,this._Value_Clean_formatterCleanNonAlpha)}},{key:"formatterInsertCommas",value:function(e){var t=this.stringReverse(e).match(this._Regex_formatterInsertCommas).join(",");return this.stringReverse(t)}},{key:"processAddCommasToNumberRegex",value:function(e,t,r,n,i,a){return t+(i?this.formatterInsertCommas(n)+i+a:this.formatterInsertCommas(n+a))}},{key:"formatterAddCommasToNumber",value:function(e){return e.toString().replace(this._Regex_formatterAddCommasToNumber,this.processAddCommasToNumberRegex.bind(this))}},{key:"formatterDollars",value:function(e){var t=parseFloat(e).toFixed(2);return isNaN(t)&&("string"==typeof e&&(t=parseFloat(e.replace(this._Value_MoneySign_Currency,"").replace(this._Regex_formatterDollarsRemoveCommas,"")).toFixed(2)),isNaN(t))?this._Value_NaN_Currency:"$".concat(this.formatterAddCommasToNumber(t))}},{key:"formatterRoundNumber",value:function(e,t){var r=void 0===t?2:t,n=Number.parseFloat(e).toFixed(r);if(isNaN(n)){return(0).toFixed(r)}return n}},{key:"stringBeforeMatch",value:function(e,t){return e.split(t)[0]}},{key:"stringAfterMatch",value:function(e,t){var r=e.indexOf(t);return r<0||r+t.length>=e.length?"":e.substring(r+t.length)}},{key:"stringCountEnclosures",value:function(e,t,r){for(var n="string"==typeof e?e:"",i="string"==typeof t?t:"(",a="string"==typeof r?r:")",o=0,s=0,u=0;u<n.length;u++)n[u]==i?(0==s&&o++,s++):n[u]==a&&s--;return o}},{key:"stringGetEnclosureValueByIndex",value:function(e,t,r,n){for(var i="string"==typeof e?e:"",a="number"==typeof t?t:0,o="string"==typeof r?r:"(",s="string"==typeof n?n:")",u=0,l=0,c=!1,f=0,h=0,p=0;p<i.length;p++)i[p]==o?1==++l&&a==++u-1&&(c=!0,f=p):i[p]==s&&0==--l&&c&&h<=f&&(h=p,c=!1);return u<=a?"":h>0&&h>f?i.substring(f+1,h):i.substring(f+1)}},{key:"stringRemoveEnclosureByIndex",value:function(e,t,r,n){for(var i="string"==typeof e?e:"",a="number"==typeof t?t:0,o="string"==typeof r?r:"(",s="string"==typeof n?n:")",u=0,l=0,c=!1,f=0,h=0,p=0;p<i.length;p++)i[p]==o?1==++l&&a==++u-1&&(c=!0,f=p):i[p]==s&&0==--l&&c&&h<=f&&(h=p,c=!1);if(u<=a)return i;var g="";return f>1&&(g=i.substring(0,f)),i.length>h+1&&h>f&&(g+=i.substring(h+1)),g}}]),e}();t.exports=n},{}],18:[function(e,t,r){
6
+ var n=function(){function e(){_classCallCheck(this,e),this._Regex_formatterInsertCommas=/.{1,3}/g,this._Regex_formatterAddCommasToNumber=/^([-+]?)(0?)(\d+)(.?)(\d+)$/g,this._Regex_formatterDollarsRemoveCommas=/,/gi,this._Regex_formatterCleanNonAlpha=/[^a-z0-9]/gi,this._Value_MoneySign_Currency="$",this._Value_NaN_Currency="--",this._Value_GroupSeparator_Number=",",this._Value_Prefix_StringHash="HSH",this._Value_Clean_formatterCleanNonAlpha="_",this._UseEngineStringStartsWith="function"==typeof String.prototype.startsWith,this._UseEngineStringEndsWith="function"==typeof String.prototype.endsWith}return _createClass(e,[{key:"stringReverse",value:function(e){return e.split("").reverse().join("")}},{key:"stringStartsWith",value:function(e,t,r){return this._UseEngineStringStartsWith?e.startsWith(t,r):this.stringStartsWith_Polyfill.call(e,t,r)}},{key:"stringStartsWith_Polyfill",value:function(e,t){return this.slice(t||0,e.length)===e}},{key:"stringEndsWith",value:function(e,t,r){return this._UseEngineStringEndsWith?e.endsWith(t,r):this.stringEndsWith_Polyfill.call(e,t,r)}},{key:"stringEndsWith_Polyfill",value:function(e,t){return t<this.length?t|=0:t=this.length,this.substr(t-e.length,e.length)===e}},{key:"insecureStringHash",value:function(e){for(var t=0,r=e.length,n=0;n<r;)t=(t<<5)-t+e.charCodeAt(n++)|0;return"".concat(this._Value_Prefix_StringHash).concat(t)}},{key:"cleanEnclosureWrapCharacters",value:function(e,t){return t.startsWith(e)&&t.endsWith(e)?t.substring(1,t.length-1):t}},{key:"cleanNonAlphaCharacters",value:function(e){if("string"==typeof e&&""!=e)return e.replace(this._Regex_formatterCleanNonAlpha,this._Value_Clean_formatterCleanNonAlpha)}},{key:"formatterInsertCommas",value:function(e){var t=this.stringReverse(e).match(this._Regex_formatterInsertCommas).join(",");return this.stringReverse(t)}},{key:"processAddCommasToNumberRegex",value:function(e,t,r,n,i,a){return t+(i?this.formatterInsertCommas(n)+i+a:this.formatterInsertCommas(n+a))}},{key:"formatterAddCommasToNumber",value:function(e){return e.toString().replace(this._Regex_formatterAddCommasToNumber,this.processAddCommasToNumberRegex.bind(this))}},{key:"formatterDollars",value:function(e){var t=parseFloat(e).toFixed(2);return isNaN(t)&&("string"==typeof e&&(t=parseFloat(e.replace(this._Value_MoneySign_Currency,"").replace(this._Regex_formatterDollarsRemoveCommas,"")).toFixed(2)),isNaN(t))?this._Value_NaN_Currency:"$".concat(this.formatterAddCommasToNumber(t))}},{key:"formatterRoundNumber",value:function(e,t){var r=void 0===t?2:t,n=parseFloat(e).toFixed(r);if(isNaN(n)){return(0).toFixed(r)}return n}},{key:"stringBeforeMatch",value:function(e,t){return e.split(t)[0]}},{key:"stringAfterMatch",value:function(e,t){var r=e.indexOf(t);return r<0||r+t.length>=e.length?"":e.substring(r+t.length)}},{key:"stringCountEnclosures",value:function(e,t,r){for(var n="string"==typeof e?e:"",i="string"==typeof t?t:"(",a="string"==typeof r?r:")",o=0,s=0,u=0;u<n.length;u++)n[u]==i?(0==s&&o++,s++):n[u]==a&&s--;return o}},{key:"stringGetEnclosureValueByIndex",value:function(e,t,r,n){for(var i="string"==typeof e?e:"",a="number"==typeof t?t:0,o="string"==typeof r?r:"(",s="string"==typeof n?n:")",u=0,l=0,c=!1,f=0,h=0,p=0;p<i.length;p++)i[p]==o?1==++l&&a==++u-1&&(c=!0,f=p):i[p]==s&&0==--l&&c&&h<=f&&(h=p,c=!1);return u<=a?"":h>0&&h>f?i.substring(f+1,h):i.substring(f+1)}},{key:"stringRemoveEnclosureByIndex",value:function(e,t,r,n){for(var i="string"==typeof e?e:"",a="number"==typeof t?t:0,o="string"==typeof r?r:"(",s="string"==typeof n?n:")",u=0,l=0,c=!1,f=0,h=0,p=0;p<i.length;p++)i[p]==o?1==++l&&a==++u-1&&(c=!0,f=p):i[p]==s&&0==--l&&c&&h<=f&&(h=p,c=!1);if(u<=a)return i;var g="";return f>1&&(g=i.substring(0,f)),i.length>h+1&&h>f&&(g+=i.substring(h+1)),g}}]),e}();t.exports=n},{}],18:[function(e,t,r){
7
7
  /**
8
8
  * Base Logger Class
9
9
  *