@qiwi/uniconfig
Advanced tools
Comparing version
@@ -0,1 +1,8 @@ | ||
# [@qiwi/uniconfig-v1.9.0](https://github.com/qiwi/uniconfig/compare/v1.8.0...v1.9.0) (2018-07-11) | ||
### Features | ||
* add basic plugin api ([6583c1e](https://github.com/qiwi/uniconfig/commit/6583c1e)) | ||
# [@qiwi/uniconfig-v1.8.0](https://github.com/qiwi/uniconfig/compare/v1.7.0...v1.8.0) (2018-07-03) | ||
@@ -2,0 +9,0 @@ |
@@ -1,1 +0,1 @@ | ||
(function () {var p={};Object.defineProperty(p,"__esModule",{value:!0});var Ha={};Object.defineProperty(p,"get",{enumerable:!0,get:function(){return Ha.get}}),Object.defineProperty(p,"has",{enumerable:!0,get:function(){return Ha.has}});var Da=gb;p.$5$var$isBrowser=Da;var jb=$a;function gb(){try{var r=window;return void 0!==r&&void 0!==r.document}catch(r){return!1}}function $a(r){return r}p.$5$var$echo=jb;var ya,xa,K={};function Ua(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function hb(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?r:t}function fb(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}Object.defineProperty(K,"__esModule",{value:!0});var Yb=(ya="target path is not found in config data",K.$6$var$MISSED_VALUE_PATH=ya),Ya=(xa=function(r){function t(){return Ua(this,t),hb(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return fb(t,Error),t}(),K.$6$var$ConfigError=xa),Xa=Ya;K.default=Xa;var $={};Object.defineProperty($,"__esModule",{value:!0});var X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zb=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Ub(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Lb=function(){function e(){return Ub(this,e),this.events={},this}return zb(e,[{key:"on",value:function(e,t){return"object"!==X(this.events[e])&&(this.events[e]=[]),this.events[e].push(t),this}},{key:"removeListener",value:function(e,t){var r=void 0;return"object"===X(this.events[e])&&(r=this.events[e].indexOf(t))>-1&&this.events[e].splice(r,1),this}},{key:"once",value:function(e,t){var r=this;return this.on(e,function n(){r.removeListener(e,n);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];t.apply(null,a)})}},{key:"emit",value:function(e){var t=void 0,r=void 0,n=void 0;if("object"===X(this.events[e])){n=(r=this.events[e].slice()).length;for(var o=arguments.length,a=Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];for(t=0;t<n;t++)r[t].apply(this,a);return r.length>0}return!1}}]),e}(),Hb=Lb;$.default=Hb;var Mb,Gb=false;function g(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function l(e){return"function"==typeof e}function Nb(e){return"number"==typeof e}function C(e){return"object"==typeof e&&null!==e}function La(e){return void 0===e}function Qa(){if(Gb)return;Gb=true;Mb={};Mb=g,g.EventEmitter=g,g.prototype._events=void 0,g.prototype._maxListeners=void 0,g.defaultMaxListeners=10,g.prototype.setMaxListeners=function(e){if(!Nb(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},g.prototype.emit=function(e){var t,r,i,n,s,v;if(this._events||(this._events={}),"error"===e&&(!this._events.error||C(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var o=new Error("Uncaught, unspecified \"error\" event. ("+t+")");throw o.context=t,o}if(La(r=this._events[e]))return!1;if(l(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),r.apply(this,n);}else if(C(r))for(n=Array.prototype.slice.call(arguments,1),i=(v=r.slice()).length,s=0;s<i;s++)v[s].apply(this,n);return!0},g.prototype.addListener=function(e,t){var r;if(!l(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,l(t.listener)?t.listener:t),this._events[e]?C(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,C(this._events[e])&&!this._events[e].warned&&(r=La(this._maxListeners)?g.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},g.prototype.on=g.prototype.addListener,g.prototype.once=function(e,t){if(!l(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},g.prototype.removeListener=function(e,t){var r,i,n,s;if(!l(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=(r=this._events[e]).length,i=-1,r===t||l(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(C(r)){for(s=n;s-->0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},g.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(l(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},g.prototype.listeners=function(e){return this._events&&this._events[e]?l(this._events[e])?[this._events[e]]:this._events[e].slice():[]},g.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(l(t))return 1;if(t)return t.length}return 0},g.listenerCount=function(e,t){return e.listenerCount(t)}}var E={};Object.defineProperty(E,"__esModule",{value:!0});var ga=void 0;E.READY=ga;var Ca=yb;E.$9$var$eventEmitterFactory=Ca;var Sa=Ta($);function Ta($){return $&&$.__esModule?$:{default:$}}function yb(){return new((0,Da)()?Sa.default:(Qa(),Mb))}var Zb=(ga="CONFIG_READY",E.$9$var$READY=ga);var u,t,ta={},e=ta={};function _(){throw new Error("setTimeout has not been defined")}function Q(){throw new Error("clearTimeout has not been defined")}function ka($){if(u===setTimeout)return setTimeout($,0);if((u===_||!u)&&setTimeout)return u=setTimeout,setTimeout($,0);try{return u($,0)}catch(e){try{return u.call(null,$,0)}catch(e){return u.call(this,$,0)}}}function Va($){if(t===clearTimeout)return clearTimeout($);if((t===Q||!t)&&clearTimeout)return t=clearTimeout,clearTimeout($);try{return t($)}catch(e){try{return t.call(null,$)}catch(e){return t.call(this,$)}}}!function(){try{u="function"==typeof setTimeout?setTimeout:_}catch($){u=_}try{t="function"==typeof clearTimeout?clearTimeout:Q}catch($){t=Q}}();var B,o=[],P=!1,Ga=-1;function Kb(){P&&B&&(P=!1,B.length?o=B.concat(o):Ga=-1,o.length&&Fa())}function Fa(){if(!P){var $=ka(Kb);P=!0;for(var e=o.length;e;){for(B=o,o=[];++Ga<e;)B&&B[Ga].run();Ga=-1,e=o.length}B=null,P=!1,Va($)}}function Ea($,e){this.fun=$,this.array=e}function k(){}e.nextTick=function($){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];o.push(new Ea($,e)),1!==o.length||P||ka(Fa)},Ea.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=k,e.addListener=k,e.once=k,e.off=k,e.removeListener=k,e.removeAllListeners=k,e.emit=k,e.prependListener=k,e.prependOnceListener=k,e.listeners=function($){return[]},e.binding=function($){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function($){throw new Error("process.chdir is not supported")},e.umask=function(){return 0};var Oa,Pa,c;$657$exports=f,"object"==typeof ta&&ta.env,c=function(){};var sa=256,O=Number.MAX_SAFE_INTEGER||9007199254740991,Z=16,d=(Oa=[],Oa),a=(Pa=[],Pa),b=0,q=b++;a[q]="0|[1-9]\\d*";var w=b++;a[w]="[0-9]+";var R=b++;a[R]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var ja=b++;a[ja]="("+a[q]+")\\.("+a[q]+")\\.("+a[q]+")";var na=b++;a[na]="("+a[w]+")\\.("+a[w]+")\\.("+a[w]+")";var S=b++;a[S]="(?:"+a[q]+"|"+a[R]+")";var T=b++;a[T]="(?:"+a[w]+"|"+a[R]+")";var U=b++;a[U]="(?:-("+a[S]+"(?:\\."+a[S]+")*))";var V=b++;a[V]="(?:-?("+a[T]+"(?:\\."+a[T]+")*))";var W=b++;a[W]="[0-9A-Za-z-]+";var D=b++;a[D]="(?:\\+("+a[W]+"(?:\\."+a[W]+")*))";var oa=b++,ra="v?"+a[ja]+a[U]+"?"+a[D]+"?";a[oa]="^"+ra+"$";var Y="[v=\\s]*"+a[na]+a[V]+"?"+a[D]+"?",Ba=b++;a[Ba]="^"+Y+"$";var v=b++;a[v]="((?:<|>)?=?)";var M=b++;a[M]=a[w]+"|x|X|\\*";var I=b++;a[I]=a[q]+"|x|X|\\*";var m=b++;a[m]="[v=\\s]*("+a[I]+")(?:\\.("+a[I]+")(?:\\.("+a[I]+")(?:"+a[U]+")?"+a[D]+"?)?)?";var r=b++;a[r]="[v=\\s]*("+a[M]+")(?:\\.("+a[M]+")(?:\\.("+a[M]+")(?:"+a[V]+")?"+a[D]+"?)?)?";var Ka=b++;a[Ka]="^"+a[v]+"\\s*"+a[m]+"$";var ia=b++;a[ia]="^"+a[v]+"\\s*"+a[r]+"$";var nb=b++;a[nb]="(?:^|[^\\d])(\\d{1,"+Z+"})(?:\\.(\\d{1,"+Z+"}))?(?:\\.(\\d{1,"+Z+"}))?(?:$|[^\\d])";var J=b++;a[J]="(?:~>?)";var H=b++;a[H]="(\\s*)"+a[J]+"\\s+",d[H]=new RegExp(a[H],"g");var Eb="$1~",la=b++;a[la]="^"+a[J]+a[m]+"$";var ma=b++;a[ma]="^"+a[J]+a[r]+"$";var G=b++;a[G]="(?:\\^)";var F=b++;a[F]="(\\s*)"+a[G]+"\\s+",d[F]=new RegExp(a[F],"g");var Na="$1^",pa=b++;a[pa]="^"+a[G]+a[m]+"$";var qa=b++;a[qa]="^"+a[G]+a[r]+"$";var aa=b++;a[aa]="^"+a[v]+"\\s*("+Y+")$|^$";var ba=b++;a[ba]="^"+a[v]+"\\s*("+ra+")$|^$";var A=b++;a[A]="(\\s*)"+a[v]+"\\s*("+Y+"|"+a[m]+")",d[A]=new RegExp(a[A],"g");var Ra="$1$2$3",ua=b++;a[ua]="^\\s*("+a[m]+")\\s+-\\s+("+a[m]+")\\s*$";var va=b++;a[va]="^\\s*("+a[r]+")\\s+-\\s+("+a[r]+")\\s*$";var wa=b++;a[wa]="(<|>)?=?\\s*\\*";for(var n=0;n<b;n++)c(n,a[n]),d[n]||(d[n]=new RegExp(a[n]));var Wa=f;function f($,r){if($ instanceof f){if($.loose===r)return $;$=$.version}else if("string"!=typeof $)throw new TypeError("Invalid Version: "+$);if($.length>sa)throw new TypeError("version is longer than "+sa+" characters");if(!(this instanceof f))return new f($,r);c("SemVer",$,r),this.loose=r;var e=$.trim().match(r?d[Ba]:d[oa]);if(!e)throw new TypeError("Invalid Version: "+$);if(this.raw=$,this.major=+e[1],this.minor=+e[2],this.patch=+e[3],this.major>O||this.major<0)throw new TypeError("Invalid major version");if(this.minor>O||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>O||this.patch<0)throw new TypeError("Invalid patch version");e[4]?this.prerelease=e[4].split(".").map(function($){if(/^[0-9]+$/.test($)){var r=+$;if(r>=0&&r<O)return r}return $}):this.prerelease=[],this.build=e[5]?e[5].split("."):[],this.format()}Wa,f.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},f.prototype.toString=function(){return this.version},f.prototype.compare=function($){return c("SemVer.compare",this.version,this.loose,$),$ instanceof f||($=new f($,this.loose)),this.compareMain($)||this.comparePre($)},f.prototype.compareMain=function($){return $ instanceof f||($=new f($,this.loose)),N(this.major,$.major)||N(this.minor,$.minor)||N(this.patch,$.patch)},f.prototype.comparePre=function($){if($ instanceof f||($=new f($,this.loose)),this.prerelease.length&&!$.prerelease.length)return-1;if(!this.prerelease.length&&$.prerelease.length)return 1;if(!this.prerelease.length&&!$.prerelease.length)return 0;var r=0;do{var e=this.prerelease[r],a=$.prerelease[r];if(c("prerelease compare",r,e,a),void 0===e&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===e)return-1;if(e!==a)return N(e,a)}while(++r)},f.prototype.inc=function($,r){switch($){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",r),this.inc("pre",r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var e=this.prerelease.length;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: "+$);}return this.format(),this.raw=this.version,this};var za=/^[0-9]+$/;function N($,r){var e=za.test($),a=za.test(r);return e&&a&&($=+$,r=+r),e&&!a?-1:a&&!e?1:$<r?-1:$>r?1:0}function s($,r,e){return new f($,e).compare(new f(r,e))}function _a($,r,e){return s($,r,e)>0}function ab($,r,e){return s($,r,e)<0}function bb($,r,e){return 0===s($,r,e)}function cb($,r,e){return 0!==s($,r,e)}function db($,r,e){return s($,r,e)>=0}function eb($,r,e){return s($,r,e)<=0}function ca($,r,e,a){var t;switch(r){case"===":"object"==typeof $&&($=$.version),"object"==typeof e&&(e=e.version),t=$===e;break;case"!==":"object"==typeof $&&($=$.version),"object"==typeof e&&(e=e.version),t=$!==e;break;case"":case"=":case"==":t=bb($,e,a);break;case"!=":t=cb($,e,a);break;case">":t=_a($,e,a);break;case">=":t=db($,e,a);break;case"<":t=ab($,e,a);break;case"<=":t=eb($,e,a);break;default:throw new TypeError("Invalid operator: "+r);}return t}function i($,r){if($ instanceof i){if($.loose===r)return $;$=$.value}if(!(this instanceof i))return new i($,r);c("comparator",$,r),this.loose=r,this.parse($),this.semver===L?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}var L={};i.prototype.parse=function($){var r=this.loose?d[aa]:d[ba],e=$.match(r);if(!e)throw new TypeError("Invalid comparator: "+$);this.operator=e[1],"="===this.operator&&(this.operator=""),e[2]?this.semver=new f(e[2],this.loose):this.semver=L},i.prototype.toString=function(){return this.value},i.prototype.test=function($){return c("Comparator.test",$,this.loose),this.semver===L||("string"==typeof $&&($=new f($,this.loose)),ca($,this.operator,this.semver,this.loose))},i.prototype.intersects=function($,r){if(!($ instanceof i))throw new TypeError("a Comparator is required");var e;if(""===this.operator)return e=new h($.value,r),da(this.value,e,r);if(""===$.operator)return e=new h(this.value,r),da($.semver,e,r);var a=!(">="!==this.operator&&">"!==this.operator||">="!==$.operator&&">"!==$.operator),t=!("<="!==this.operator&&"<"!==this.operator||"<="!==$.operator&&"<"!==$.operator),v=this.semver.version===$.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==$.operator&&"<="!==$.operator),s=ca(this.semver,"<",$.semver,r)&&(">="===this.operator||">"===this.operator)&&("<="===$.operator||"<"===$.operator),n=ca(this.semver,">",$.semver,r)&&("<="===this.operator||"<"===this.operator)&&(">="===$.operator||">"===$.operator);return a||t||v&&o||s||n};var ib=h;function h($,r){if($ instanceof h)return $.loose===r?$:new h($.raw,r);if($ instanceof i)return new h($.value,r);if(!(this instanceof h))return new h($,r);if(this.loose=r,this.raw=$,this.set=$.split(/\s*\|\|\s*/).map(function($){return this.parseRange($.trim())},this).filter(function($){return $.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+$);this.format()}ib,h.prototype.format=function(){return this.range=this.set.map(function($){return $.join(" ").trim()}).join("||").trim(),this.range},h.prototype.toString=function(){return this.range},h.prototype.parseRange=function($){var r=this.loose;$=$.trim(),c("range",$,r);var e=r?d[va]:d[ua];$=$.replace(e,vb),c("hyphen replace",$),$=$.replace(d[A],Ra),c("comparator trim",$,d[A]),$=($=($=$.replace(d[H],Eb)).replace(d[F],Na)).split(/\s+/).join(" ");var a=r?d[aa]:d[ba],t=$.split(" ").map(function($){return mb($,r)}).join(" ").split(/\s+/);return this.loose&&(t=t.filter(function($){return!!$.match(a)})),t=t.map(function($){return new i($,r)})},h.prototype.intersects=function($,r){if(!($ instanceof h))throw new TypeError("a Range is required");return this.set.some(function(e){return e.every(function(e){return $.set.some(function($){return $.every(function($){return e.intersects($,r)})})})})};var kb=lb;function lb($,r){return new h($,r).set.map(function($){return $.map(function($){return $.value}).join(" ").trim().split(" ")})}function mb($,r){return c("comp",$),$=qb($,r),c("caret",$),$=ob($,r),c("tildes",$),$=sb($,r),c("xrange",$),$=ub($,r),c("stars",$),$}function j($){return!$||"x"===$.toLowerCase()||"*"===$}function ob($,r){return $.trim().split(/\s+/).map(function($){return pb($,r)}).join(" ")}function pb($,r){var e=r?d[ma]:d[la];return $.replace(e,function(r,e,a,t,v){var o;return c("tilde",$,r,e,a,t,v),j(e)?o="":j(a)?o=">="+e+".0.0 <"+(+e+1)+".0.0":j(t)?o=">="+e+"."+a+".0 <"+e+"."+(+a+1)+".0":v?(c("replaceTilde pr",v),"-"!==v.charAt(0)&&(v="-"+v),o=">="+e+"."+a+"."+t+v+" <"+e+"."+(+a+1)+".0"):o=">="+e+"."+a+"."+t+" <"+e+"."+(+a+1)+".0",c("tilde return",o),o})}function qb($,r){return $.trim().split(/\s+/).map(function($){return rb($,r)}).join(" ")}function rb($,r){c("caret",$,r);var e=r?d[qa]:d[pa];return $.replace(e,function(r,e,a,t,v){var o;return c("caret",$,r,e,a,t,v),j(e)?o="":j(a)?o=">="+e+".0.0 <"+(+e+1)+".0.0":j(t)?o="0"===e?">="+e+"."+a+".0 <"+e+"."+(+a+1)+".0":">="+e+"."+a+".0 <"+(+e+1)+".0.0":v?(c("replaceCaret pr",v),"-"!==v.charAt(0)&&(v="-"+v),o="0"===e?"0"===a?">="+e+"."+a+"."+t+v+" <"+e+"."+a+"."+(+t+1):">="+e+"."+a+"."+t+v+" <"+e+"."+(+a+1)+".0":">="+e+"."+a+"."+t+v+" <"+(+e+1)+".0.0"):(c("no pr"),o="0"===e?"0"===a?">="+e+"."+a+"."+t+" <"+e+"."+a+"."+(+t+1):">="+e+"."+a+"."+t+" <"+e+"."+(+a+1)+".0":">="+e+"."+a+"."+t+" <"+(+e+1)+".0.0"),c("caret return",o),o})}function sb($,r){return c("replaceXRanges",$,r),$.split(/\s+/).map(function($){return tb($,r)}).join(" ")}function tb($,r){$=$.trim();var e=r?d[ia]:d[Ka];return $.replace(e,function(r,e,a,t,v,o){c("xRange",$,r,e,a,t,v,o);var s=j(a),n=s||j(t),i=n||j(v);return"="===e&&i&&(e=""),s?r=">"===e||"<"===e?"<0.0.0":"*":e&&i?(n&&(t=0),i&&(v=0),">"===e?(e=">=",n?(a=+a+1,t=0,v=0):i&&(t=+t+1,v=0)):"<="===e&&(e="<",n?a=+a+1:t=+t+1),r=e+a+"."+t+"."+v):n?r=">="+a+".0.0 <"+(+a+1)+".0.0":i&&(r=">="+a+"."+t+".0 <"+a+"."+(+t+1)+".0"),c("xRange return",r),r})}function ub($,r){return c("replaceStars",$,r),$.trim().replace(d[wa],"")}function vb($,r,e,a,t,v,o,s,n,i,p,c,E){return((r=j(e)?"":j(a)?">="+e+".0.0":j(t)?">="+e+"."+a+".0":">="+r)+" "+(s=j(n)?"":j(i)?"<"+(+n+1)+".0.0":j(p)?"<"+n+"."+(+i+1)+".0":c?"<="+n+"."+i+"."+p+"-"+c:"<="+s)).trim()}function wb($,r){for(var e=0;e<$.length;e++)if(!$[e].test(r))return!1;if(r.prerelease.length){for(e=0;e<$.length;e++)if(c($[e].semver),$[e].semver!==L&&$[e].semver.prerelease.length>0){var a=$[e].semver;if(a.major===r.major&&a.minor===r.minor&&a.patch===r.patch)return!0}return!1}return!0}kb,h.prototype.test=function($){if(!$)return!1;"string"==typeof $&&($=new f($,this.loose));for(var r=0;r<this.set.length;r++)if(wb(this.set[r],$))return!0;return!1};var xb=da;function da($,r,e){try{r=new h(r,e)}catch($){return!1}return r.test($)}var ea={};Object.defineProperty(ea,"__esModule",{value:!0});var Ab=function(){function e(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(r,t,a){return t&&e(r.prototype,t),a&&e(r,a),r}}();function Bb(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var Cb=function(){function e(){return Bb(this,e),this.store=[],this}return Ab(e,[{key:"register",value:function(e,r,t){return this.store.push({type:e,range:r,schema:t}),this}},{key:"get",value:function(e,r){var t=this.store.find(function(t){var a=t.range;return t.type===e&&(0,xb)(r,a)});return t?t.schema:null}},{key:"has",value:function(e,r){return!!this.get(e,r)}},{key:"flush",value:function(){return this.store.length=0,this}}]),e}(),Db=Cb;ea.default=Db;var fa={};Object.defineProperty(fa,"__esModule",{value:!0});var Fb=function(e,t){return!1};fa.default=Fb;var z={};Object.defineProperty(z,"__esModule",{value:!0});var Ia=(ha=void 0,z.SchemaRegistry=ha);z.validator=Ia;var Ib=Ja(ea),Jb=Ja(fa);function Ja($){return $&&$.__esModule?$:{default:$}}var ha=Ib.default;z.SchemaRegistry=ha,Ia=Jb.default,z.validator=Ia;var y={};Object.defineProperty(y,"__esModule",{value:!0});var Ma=void 0;y.DEFAULT_OPTS=Ma;var Ob=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var $ in t)Object.prototype.hasOwnProperty.call(t,$)&&(e[$]=t[$])}return e},Pb=function(){function e(e,r){for(var t=0;t<r.length;t++){var $=r[t];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(e,$.key,$)}}return function(r,t,$){return t&&e(r.prototype,t),$&&e(r,$),r}}();function Qb(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var Rb=(Ma={tolerateMissed:!0},y.$3$var$DEFAULT_OPTS=Ma),Sb=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Qb(this,e),this.opts=Ob({},Rb,t),this.data=this.constructor.parse(this.constructor.load(r)),this.type="config",this.id=""+Math.random(),this.emitter=this.opts.emitter||(0,Ca)(),this.registry=new ha,this.emit(ga),this}return Pb(e,[{key:"get",value:function(e){if(!this.opts.tolerateMissed&&!this.has(e))throw new xa(ya);return(0,p.get)(this.data,e)}},{key:"has",value:function(e){return(0,p.has)(this.data,e)}},{key:"on",value:function(e,r){return this.emitter.on(e+this.id,r),this}},{key:"off",value:function(e,r){return this.emitter.removeListener(e+this.id,r),this}},{key:"emit",value:function(e,r){return this.emitter.emit(e+this.id,{type:e,data:r})}}],[{key:"load",value:function(e){}},{key:"parse",value:function(e){}},{key:"getSourceType",value:function(e){}}]),e}(),Tb=Sb;y.default=Tb;var x={};Object.defineProperty(x,"__esModule",{value:!0});var Vb=Aa;x.$1$var$factory=Vb;var Wb=Za(y);function Za($){return $&&$.__esModule?$:{default:$}}function Aa($,r){return new Wb.default($,r)}var Xb=Aa;x.default=Xb;if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=x}else if(typeof define==="function"&&define.amd){define(function(){return x})}})(); | ||
(function () {var p={};Object.defineProperty(p,"__esModule",{value:!0});var Fa={};Object.defineProperty(p,"get",{enumerable:!0,get:function(){return Fa.get}}),Object.defineProperty(p,"has",{enumerable:!0,get:function(){return Fa.has}});var Ga=jb;p.$5$var$isBrowser=Ga;var nb=gb;function jb(){try{var r=window;return void 0!==r&&void 0!==r.document}catch(r){return!1}}function gb(r){return r}p.$5$var$echo=nb;var Aa,xa,E={};function Za(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Va(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?r:t}function hb(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}Object.defineProperty(E,"__esModule",{value:!0});var Zb=(Aa="target path is not found in config data",E.$6$var$MISSED_VALUE_PATH=Aa),$a=(xa=function(r){function t(){return Za(this,t),Va(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return hb(t,Error),t}(),E.$6$var$ConfigError=xa),Ya=$a;E.default=Ya;var R={};Object.defineProperty(R,"__esModule",{value:!0});var $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Na=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function zb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Nb=function(){function e(){return zb(this,e),this.events={},this}return Na(e,[{key:"on",value:function(e,t){return"object"!==$(this.events[e])&&(this.events[e]=[]),this.events[e].push(t),this}},{key:"removeListener",value:function(e,t){var r=void 0;return"object"===$(this.events[e])&&(r=this.events[e].indexOf(t))>-1&&this.events[e].splice(r,1),this}},{key:"once",value:function(e,t){var r=this;return this.on(e,function n(){r.removeListener(e,n);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];t.apply(null,a)})}},{key:"emit",value:function(e){var t=void 0,r=void 0,n=void 0;if("object"===$(this.events[e])){n=(r=this.events[e].slice()).length;for(var o=arguments.length,a=Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];for(t=0;t<n;t++)r[t].apply(this,a);return r.length>0}return!1}}]),e}(),Hb=Nb;R.default=Hb;var Eb,Lb=false;function g(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function l(e){return"function"==typeof e}function Vb(e){return"number"==typeof e}function C(e){return"object"==typeof e&&null!==e}function Ka(e){return void 0===e}function Xa(){if(Lb)return;Lb=true;Eb={};Eb=g,g.EventEmitter=g,g.prototype._events=void 0,g.prototype._maxListeners=void 0,g.defaultMaxListeners=10,g.prototype.setMaxListeners=function(e){if(!Vb(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},g.prototype.emit=function(e){var t,r,i,n,s,v;if(this._events||(this._events={}),"error"===e&&(!this._events.error||C(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var o=new Error("Uncaught, unspecified \"error\" event. ("+t+")");throw o.context=t,o}if(Ka(r=this._events[e]))return!1;if(l(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),r.apply(this,n);}else if(C(r))for(n=Array.prototype.slice.call(arguments,1),i=(v=r.slice()).length,s=0;s<i;s++)v[s].apply(this,n);return!0},g.prototype.addListener=function(e,t){var r;if(!l(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,l(t.listener)?t.listener:t),this._events[e]?C(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,C(this._events[e])&&!this._events[e].warned&&(r=Ka(this._maxListeners)?g.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},g.prototype.on=g.prototype.addListener,g.prototype.once=function(e,t){if(!l(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},g.prototype.removeListener=function(e,t){var r,i,n,s;if(!l(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=(r=this._events[e]).length,i=-1,r===t||l(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(C(r)){for(s=n;s-->0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},g.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(l(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},g.prototype.listeners=function(e){return this._events&&this._events[e]?l(this._events[e])?[this._events[e]]:this._events[e].slice():[]},g.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(l(t))return 1;if(t)return t.length}return 0},g.listenerCount=function(e,t){return e.listenerCount(t)}}var J={};Object.defineProperty(J,"__esModule",{value:!0});var da=void 0;J.READY=da;var za=Ta;J.$9$var$eventEmitterFactory=za;var Qa=Sa(R);function Sa($){return $&&$.__esModule?$:{default:$}}function Ta(){return new((0,Ga)()?Qa.default:(Xa(),Eb))}var $b=(da="CONFIG_READY",J.$9$var$READY=da);var v,u,sa={},e=sa={};function _(){throw new Error("setTimeout has not been defined")}function Q(){throw new Error("clearTimeout has not been defined")}function ka($){if(v===setTimeout)return setTimeout($,0);if((v===_||!v)&&setTimeout)return v=setTimeout,setTimeout($,0);try{return v($,0)}catch(e){try{return v.call(null,$,0)}catch(e){return v.call(this,$,0)}}}function Ua($){if(u===clearTimeout)return clearTimeout($);if((u===Q||!u)&&clearTimeout)return u=clearTimeout,clearTimeout($);try{return u($)}catch(e){try{return u.call(null,$)}catch(e){return u.call(this,$)}}}!function(){try{v="function"==typeof setTimeout?setTimeout:_}catch($){v=_}try{u="function"==typeof clearTimeout?clearTimeout:Q}catch($){u=Q}}();var B,o=[],P=!1,Ea=-1;function Kb(){P&&B&&(P=!1,B.length?o=B.concat(o):Ea=-1,o.length&&Da())}function Da(){if(!P){var $=ka(Kb);P=!0;for(var e=o.length;e;){for(B=o,o=[];++Ea<e;)B&&B[Ea].run();Ea=-1,e=o.length}B=null,P=!1,Ua($)}}function oa($,e){this.fun=$,this.array=e}function k(){}e.nextTick=function($){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];o.push(new oa($,e)),1!==o.length||P||ka(Da)},oa.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=k,e.addListener=k,e.once=k,e.off=k,e.removeListener=k,e.removeAllListeners=k,e.emit=k,e.prependListener=k,e.prependOnceListener=k,e.listeners=function($){return[]},e.binding=function($){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function($){throw new Error("process.chdir is not supported")},e.umask=function(){return 0};var Oa,Pa,c;$657$exports=f,"object"==typeof sa&&sa.env,c=function(){};var ja=256,O=Number.MAX_SAFE_INTEGER||9007199254740991,Z=16,d=(Oa=[],Oa),a=(Pa=[],Pa),b=0,s=b++;a[s]="0|[1-9]\\d*";var r=b++;a[r]="[0-9]+";var S=b++;a[S]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var na=b++;a[na]="("+a[s]+")\\.("+a[s]+")\\.("+a[s]+")";var Ba=b++;a[Ba]="("+a[r]+")\\.("+a[r]+")\\.("+a[r]+")";var T=b++;a[T]="(?:"+a[s]+"|"+a[S]+")";var U=b++;a[U]="(?:"+a[r]+"|"+a[S]+")";var V=b++;a[V]="(?:-("+a[T]+"(?:\\."+a[T]+")*))";var W=b++;a[W]="(?:-?("+a[U]+"(?:\\."+a[U]+")*))";var X=b++;a[X]="[0-9A-Za-z-]+";var D=b++;a[D]="(?:\\+("+a[X]+"(?:\\."+a[X]+")*))";var qa=b++,ra="v?"+a[na]+a[V]+"?"+a[D]+"?";a[qa]="^"+ra+"$";var Y="[v=\\s]*"+a[Ba]+a[W]+"?"+a[D]+"?",Ca=b++;a[Ca]="^"+Y+"$";var q=b++;a[q]="((?:<|>)?=?)";var F=b++;a[F]=a[r]+"|x|X|\\*";var L=b++;a[L]=a[s]+"|x|X|\\*";var m=b++;a[m]="[v=\\s]*("+a[L]+")(?:\\.("+a[L]+")(?:\\.("+a[L]+")(?:"+a[V]+")?"+a[D]+"?)?)?";var w=b++;a[w]="[v=\\s]*("+a[F]+")(?:\\.("+a[F]+")(?:\\.("+a[F]+")(?:"+a[W]+")?"+a[D]+"?)?)?";var Ja=b++;a[Ja]="^"+a[q]+"\\s*"+a[m]+"$";var ia=b++;a[ia]="^"+a[q]+"\\s*"+a[w]+"$";var yb=b++;a[yb]="(?:^|[^\\d])(\\d{1,"+Z+"})(?:\\.(\\d{1,"+Z+"}))?(?:\\.(\\d{1,"+Z+"}))?(?:$|[^\\d])";var K=b++;a[K]="(?:~>?)";var I=b++;a[I]="(\\s*)"+a[K]+"\\s+",d[I]=new RegExp(a[I],"g");var Gb="$1~",la=b++;a[la]="^"+a[K]+a[m]+"$";var ma=b++;a[ma]="^"+a[K]+a[w]+"$";var H=b++;a[H]="(?:\\^)";var G=b++;a[G]="(\\s*)"+a[H]+"\\s+",d[G]=new RegExp(a[G],"g");var Ob="$1^",Ma=b++;a[Ma]="^"+a[H]+a[m]+"$";var pa=b++;a[pa]="^"+a[H]+a[w]+"$";var aa=b++;a[aa]="^"+a[q]+"\\s*("+Y+")$|^$";var ba=b++;a[ba]="^"+a[q]+"\\s*("+ra+")$|^$";var A=b++;a[A]="(\\s*)"+a[q]+"\\s*("+Y+"|"+a[m]+")",d[A]=new RegExp(a[A],"g");var Ra="$1$2$3",ta=b++;a[ta]="^\\s*("+a[m]+")\\s+-\\s+("+a[m]+")\\s*$";var ua=b++;a[ua]="^\\s*("+a[w]+")\\s+-\\s+("+a[w]+")\\s*$";var va=b++;a[va]="(<|>)?=?\\s*\\*";for(var n=0;n<b;n++)c(n,a[n]),d[n]||(d[n]=new RegExp(a[n]));var Wa=f;function f($,r){if($ instanceof f){if($.loose===r)return $;$=$.version}else if("string"!=typeof $)throw new TypeError("Invalid Version: "+$);if($.length>ja)throw new TypeError("version is longer than "+ja+" characters");if(!(this instanceof f))return new f($,r);c("SemVer",$,r),this.loose=r;var e=$.trim().match(r?d[Ca]:d[qa]);if(!e)throw new TypeError("Invalid Version: "+$);if(this.raw=$,this.major=+e[1],this.minor=+e[2],this.patch=+e[3],this.major>O||this.major<0)throw new TypeError("Invalid major version");if(this.minor>O||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>O||this.patch<0)throw new TypeError("Invalid patch version");e[4]?this.prerelease=e[4].split(".").map(function($){if(/^[0-9]+$/.test($)){var r=+$;if(r>=0&&r<O)return r}return $}):this.prerelease=[],this.build=e[5]?e[5].split("."):[],this.format()}Wa,f.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},f.prototype.toString=function(){return this.version},f.prototype.compare=function($){return c("SemVer.compare",this.version,this.loose,$),$ instanceof f||($=new f($,this.loose)),this.compareMain($)||this.comparePre($)},f.prototype.compareMain=function($){return $ instanceof f||($=new f($,this.loose)),N(this.major,$.major)||N(this.minor,$.minor)||N(this.patch,$.patch)},f.prototype.comparePre=function($){if($ instanceof f||($=new f($,this.loose)),this.prerelease.length&&!$.prerelease.length)return-1;if(!this.prerelease.length&&$.prerelease.length)return 1;if(!this.prerelease.length&&!$.prerelease.length)return 0;var r=0;do{var e=this.prerelease[r],a=$.prerelease[r];if(c("prerelease compare",r,e,a),void 0===e&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===e)return-1;if(e!==a)return N(e,a)}while(++r)},f.prototype.inc=function($,r){switch($){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",r),this.inc("pre",r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var e=this.prerelease.length;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: "+$);}return this.format(),this.raw=this.version,this};var ya=/^[0-9]+$/;function N($,r){var e=ya.test($),a=ya.test(r);return e&&a&&($=+$,r=+r),e&&!a?-1:a&&!e?1:$<r?-1:$>r?1:0}function x($,r,e){return new f($,e).compare(new f(r,e))}function _a($,r,e){return x($,r,e)>0}function ab($,r,e){return x($,r,e)<0}function bb($,r,e){return 0===x($,r,e)}function cb($,r,e){return 0!==x($,r,e)}function db($,r,e){return x($,r,e)>=0}function eb($,r,e){return x($,r,e)<=0}function ca($,r,e,a){var t;switch(r){case"===":"object"==typeof $&&($=$.version),"object"==typeof e&&(e=e.version),t=$===e;break;case"!==":"object"==typeof $&&($=$.version),"object"==typeof e&&(e=e.version),t=$!==e;break;case"":case"=":case"==":t=bb($,e,a);break;case"!=":t=cb($,e,a);break;case">":t=_a($,e,a);break;case">=":t=db($,e,a);break;case"<":t=ab($,e,a);break;case"<=":t=eb($,e,a);break;default:throw new TypeError("Invalid operator: "+r);}return t}function i($,r){if($ instanceof i){if($.loose===r)return $;$=$.value}if(!(this instanceof i))return new i($,r);c("comparator",$,r),this.loose=r,this.parse($),this.semver===M?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}var M={};i.prototype.parse=function($){var r=this.loose?d[aa]:d[ba],e=$.match(r);if(!e)throw new TypeError("Invalid comparator: "+$);this.operator=e[1],"="===this.operator&&(this.operator=""),e[2]?this.semver=new f(e[2],this.loose):this.semver=M},i.prototype.toString=function(){return this.value},i.prototype.test=function($){return c("Comparator.test",$,this.loose),this.semver===M||("string"==typeof $&&($=new f($,this.loose)),ca($,this.operator,this.semver,this.loose))},i.prototype.intersects=function($,r){if(!($ instanceof i))throw new TypeError("a Comparator is required");var e;if(""===this.operator)return e=new h($.value,r),ea(this.value,e,r);if(""===$.operator)return e=new h(this.value,r),ea($.semver,e,r);var a=!(">="!==this.operator&&">"!==this.operator||">="!==$.operator&&">"!==$.operator),t=!("<="!==this.operator&&"<"!==this.operator||"<="!==$.operator&&"<"!==$.operator),v=this.semver.version===$.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==$.operator&&"<="!==$.operator),s=ca(this.semver,"<",$.semver,r)&&(">="===this.operator||">"===this.operator)&&("<="===$.operator||"<"===$.operator),n=ca(this.semver,">",$.semver,r)&&("<="===this.operator||"<"===this.operator)&&(">="===$.operator||">"===$.operator);return a||t||v&&o||s||n};var ib=h;function h($,r){if($ instanceof h)return $.loose===r?$:new h($.raw,r);if($ instanceof i)return new h($.value,r);if(!(this instanceof h))return new h($,r);if(this.loose=r,this.raw=$,this.set=$.split(/\s*\|\|\s*/).map(function($){return this.parseRange($.trim())},this).filter(function($){return $.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+$);this.format()}ib,h.prototype.format=function(){return this.range=this.set.map(function($){return $.join(" ").trim()}).join("||").trim(),this.range},h.prototype.toString=function(){return this.range},h.prototype.parseRange=function($){var r=this.loose;$=$.trim(),c("range",$,r);var e=r?d[ua]:d[ta];$=$.replace(e,vb),c("hyphen replace",$),$=$.replace(d[A],Ra),c("comparator trim",$,d[A]),$=($=($=$.replace(d[I],Gb)).replace(d[G],Ob)).split(/\s+/).join(" ");var a=r?d[aa]:d[ba],t=$.split(" ").map(function($){return mb($,r)}).join(" ").split(/\s+/);return this.loose&&(t=t.filter(function($){return!!$.match(a)})),t=t.map(function($){return new i($,r)})},h.prototype.intersects=function($,r){if(!($ instanceof h))throw new TypeError("a Range is required");return this.set.some(function(e){return e.every(function(e){return $.set.some(function($){return $.every(function($){return e.intersects($,r)})})})})};var kb=lb;function lb($,r){return new h($,r).set.map(function($){return $.map(function($){return $.value}).join(" ").trim().split(" ")})}function mb($,r){return c("comp",$),$=qb($,r),c("caret",$),$=ob($,r),c("tildes",$),$=sb($,r),c("xrange",$),$=ub($,r),c("stars",$),$}function j($){return!$||"x"===$.toLowerCase()||"*"===$}function ob($,r){return $.trim().split(/\s+/).map(function($){return pb($,r)}).join(" ")}function pb($,r){var e=r?d[ma]:d[la];return $.replace(e,function(r,e,a,t,v){var o;return c("tilde",$,r,e,a,t,v),j(e)?o="":j(a)?o=">="+e+".0.0 <"+(+e+1)+".0.0":j(t)?o=">="+e+"."+a+".0 <"+e+"."+(+a+1)+".0":v?(c("replaceTilde pr",v),"-"!==v.charAt(0)&&(v="-"+v),o=">="+e+"."+a+"."+t+v+" <"+e+"."+(+a+1)+".0"):o=">="+e+"."+a+"."+t+" <"+e+"."+(+a+1)+".0",c("tilde return",o),o})}function qb($,r){return $.trim().split(/\s+/).map(function($){return rb($,r)}).join(" ")}function rb($,r){c("caret",$,r);var e=r?d[pa]:d[Ma];return $.replace(e,function(r,e,a,t,v){var o;return c("caret",$,r,e,a,t,v),j(e)?o="":j(a)?o=">="+e+".0.0 <"+(+e+1)+".0.0":j(t)?o="0"===e?">="+e+"."+a+".0 <"+e+"."+(+a+1)+".0":">="+e+"."+a+".0 <"+(+e+1)+".0.0":v?(c("replaceCaret pr",v),"-"!==v.charAt(0)&&(v="-"+v),o="0"===e?"0"===a?">="+e+"."+a+"."+t+v+" <"+e+"."+a+"."+(+t+1):">="+e+"."+a+"."+t+v+" <"+e+"."+(+a+1)+".0":">="+e+"."+a+"."+t+v+" <"+(+e+1)+".0.0"):(c("no pr"),o="0"===e?"0"===a?">="+e+"."+a+"."+t+" <"+e+"."+a+"."+(+t+1):">="+e+"."+a+"."+t+" <"+e+"."+(+a+1)+".0":">="+e+"."+a+"."+t+" <"+(+e+1)+".0.0"),c("caret return",o),o})}function sb($,r){return c("replaceXRanges",$,r),$.split(/\s+/).map(function($){return tb($,r)}).join(" ")}function tb($,r){$=$.trim();var e=r?d[ia]:d[Ja];return $.replace(e,function(r,e,a,t,v,o){c("xRange",$,r,e,a,t,v,o);var s=j(a),n=s||j(t),i=n||j(v);return"="===e&&i&&(e=""),s?r=">"===e||"<"===e?"<0.0.0":"*":e&&i?(n&&(t=0),i&&(v=0),">"===e?(e=">=",n?(a=+a+1,t=0,v=0):i&&(t=+t+1,v=0)):"<="===e&&(e="<",n?a=+a+1:t=+t+1),r=e+a+"."+t+"."+v):n?r=">="+a+".0.0 <"+(+a+1)+".0.0":i&&(r=">="+a+"."+t+".0 <"+a+"."+(+t+1)+".0"),c("xRange return",r),r})}function ub($,r){return c("replaceStars",$,r),$.trim().replace(d[va],"")}function vb($,r,e,a,t,v,o,s,n,i,p,c,E){return((r=j(e)?"":j(a)?">="+e+".0.0":j(t)?">="+e+"."+a+".0":">="+r)+" "+(s=j(n)?"":j(i)?"<"+(+n+1)+".0.0":j(p)?"<"+n+"."+(+i+1)+".0":c?"<="+n+"."+i+"."+p+"-"+c:"<="+s)).trim()}function wb($,r){for(var e=0;e<$.length;e++)if(!$[e].test(r))return!1;if(r.prerelease.length){for(e=0;e<$.length;e++)if(c($[e].semver),$[e].semver!==M&&$[e].semver.prerelease.length>0){var a=$[e].semver;if(a.major===r.major&&a.minor===r.minor&&a.patch===r.patch)return!0}return!1}return!0}kb,h.prototype.test=function($){if(!$)return!1;"string"==typeof $&&($=new f($,this.loose));for(var r=0;r<this.set.length;r++)if(wb(this.set[r],$))return!0;return!1};var xb=ea;function ea($,r,e){try{r=new h(r,e)}catch($){return!1}return r.test($)}var fa={};Object.defineProperty(fa,"__esModule",{value:!0});var Ab=function(){function e(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(r,t,a){return t&&e(r.prototype,t),a&&e(r,a),r}}();function Bb(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var Cb=function(){function e(){return Bb(this,e),this.store=[],this}return Ab(e,[{key:"register",value:function(e,r,t){return this.store.push({type:e,range:r,schema:t}),this}},{key:"get",value:function(e,r){var t=this.store.find(function(t){var a=t.range;return t.type===e&&(0,xb)(r,a)});return t?t.schema:null}},{key:"has",value:function(e,r){return!!this.get(e,r)}},{key:"flush",value:function(){return this.store.length=0,this}}]),e}(),Db=Cb;fa.default=Db;var ga={};Object.defineProperty(ga,"__esModule",{value:!0});var Fb=function(e,t){return!1};ga.default=Fb;var t={};Object.defineProperty(t,"__esModule",{value:!0});var Ha=(ha=void 0,t.SchemaRegistry=ha);t.validator=Ha;var Ib=Ia(fa),Jb=Ia(ga);function Ia($){return $&&$.__esModule?$:{default:$}}var ha=Ib.default;t.SchemaRegistry=ha,Ha=Jb.default,t.validator=Ha;var Mb={};t.default=Mb;var z={};Object.defineProperty(z,"__esModule",{value:!0});var La=void 0;z.DEFAULT_OPTS=La;var Pb=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var $ in t)Object.prototype.hasOwnProperty.call(t,$)&&(e[$]=t[$])}return e},Qb=function(){function e(e,r){for(var t=0;t<r.length;t++){var $=r[t];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(e,$.key,$)}}return function(r,t,$){return t&&e(r.prototype,t),$&&e(r,$),r}}();function Rb(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var Sb=(La={tolerateMissed:!0},z.$3$var$DEFAULT_OPTS=La),Tb=function(){function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Rb(this,e),this.opts=Pb({},Sb,t),this.data=this.constructor.parse(this.constructor.load(r)),this.type="config",this.id=""+Math.random(),this.emitter=this.opts.emitter||(0,za)(),this.registry=new ha,this.emit(da),this}return Qb(e,[{key:"get",value:function(e){if(!this.opts.tolerateMissed&&!this.has(e))throw new xa(Aa);return(0,p.get)(this.data,e)}},{key:"has",value:function(e){return(0,p.has)(this.data,e)}},{key:"on",value:function(e,r){return this.emitter.on(e+this.id,r),this}},{key:"off",value:function(e,r){return this.emitter.removeListener(e+this.id,r),this}},{key:"emit",value:function(e,r){return this.emitter.emit(e+this.id,{type:e,data:r})}}],[{key:"load",value:function(e){}},{key:"parse",value:function(e){}},{key:"getSourceType",value:function(e){}}]),e}(),Ub=Tb;z.default=Ub;var y={};Object.defineProperty(y,"__esModule",{value:!0});var Wb=wa;y.$1$var$factory=Wb;var Xb=fb(z);function fb($){return $&&$.__esModule?$:{default:$}}function wa($,r){return new Xb.default($,r)}var Yb=wa;y.default=Yb;if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=y}else if(typeof define==="function"&&define.amd){define(function(){return y})}})(); |
@@ -14,2 +14,3 @@ 'use strict'; | ||
exports.file = _file2.default; | ||
exports.file = _file2.default; | ||
exports.default = {}; |
@@ -19,2 +19,3 @@ 'use strict'; | ||
exports.SchemaRegistry = _registry2.default; | ||
exports.validator = _validator2.default; | ||
exports.validator = _validator2.default; | ||
exports.default = {}; |
@@ -19,2 +19,3 @@ 'use strict'; | ||
exports.AbstractSource = _abstract2.default; | ||
exports.FileSource = _file2.default; | ||
exports.FileSource = _file2.default; | ||
exports.default = {}; |
@@ -8,1 +8,3 @@ // | ||
} | ||
export default {} |
// | ||
/** | ||
* Uniconfig core | ||
* @module uniconfig-core | ||
*/ | ||
@@ -7,4 +11,3 @@ import Config from './config' | ||
/** | ||
* uniconfig | ||
* | ||
* Config factory. | ||
* @param {string} source | ||
@@ -11,0 +14,0 @@ * @param {Object} opts |
@@ -108,1 +108,13 @@ // | ||
@@ -10,1 +10,3 @@ // | ||
} | ||
export default {} |
@@ -10,1 +10,3 @@ // | ||
} | ||
export default {} |
{ | ||
"name": "@qiwi/uniconfig", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"description": "Yet another one config processor. Weird. Slow. Our own.", | ||
@@ -5,0 +5,0 @@ "main": "dist/es6/index.js", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
73205
4.2%63
8.62%1147
5.52%1
-50%35
Infinity%