@aofl/resource-enumerate
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s="QfWi")}({BZcc:function(t,e){t.exports=require("@aofl/api-request")},QfWi:function(t,e,r){"use strict";r.r(e);var n=r("o0o1"),o=r.n(n),i=r("yXPU"),a=r.n(i),u=r("lwsE"),c=r.n(u),s=r("W8MJ"),f=r.n(s),l=r("bygm"),h=r("j1ZV"),p=r("BZcc"),v=function(){function t(e){var r=this;c()(this,t),this.environment=e,this.ready=new Promise((function(t){r.resolve=t})),this.middlewareInstance=new h.Middleware("before","after"),this.apiRequestInstance=new p.ApiRequest}var e,r;return f()(t,[{key:"init",value:(r=a()(o.a.mark((function t(e){var r,n,i,a,u,c,s=this,f=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.apis,n=e.developmentConfig,i=e.stageConfig,a=f.length>1&&void 0!==f[1]&&f[1],this.apis=r,u=function(t){if(!Object.hasOwnProperty.call(s.apis,t))return"continue";var e=s.apis[t];s.apiRequestInstance.addFormatter(t,{pack:function(){return e.requestOptions||{}},unpack:function(t){return t.json()}})},t.t0=o.a.keys(this.apis);case 5:if((t.t1=t.t0()).done){t.next=12;break}if(c=t.t1.value,"continue"!==u(c)){t.next=10;break}return t.abrupt("continue",5);case 10:t.next=5;break;case 12:if(!1!==a||this.environment===l.environmentTypeEnumerate.PROD){t.next=17;break}return t.next=15,this.updateApis(n,i);case 15:case 17:return this.resolve(),t.abrupt("return",this.ready);case 19:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"before",value:function(t){this.middlewareInstance.use(t,"before")}},{key:"after",value:function(t){this.middlewareInstance.use(t,"after")}},{key:"get",value:(e=a()(o.a.mark((function e(r){var n,i,a,u,c,s,f,l=this,h=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=!(h.length>1&&void 0!==h[1])||h[1],e.next=3,this.ready;case 3:if(i=this.apis[r],a=n,void 0!==i){e.next=7;break}throw new TypeError("".concat(r," is not a valid api namespace."));case 7:return(!a||"function"==typeof i.invalidateCache&&i.invalidateCache.call(null))&&(this.apiRequestInstance.clearCache(t.NAMESPACE),a=!1),u=this.apiRequestInstance.getCacheManager(t.NAMESPACE),c=u.getItem(i.url+JSON.stringify("")),s={namespace:r,cached:null!==c},e.next=13,this.middlewareInstance.iterateMiddleware(s,"before");case 13:return f=null,f=null!==c?c:this.apiRequestInstance.request(i.url,"",r,a,t.NAMESPACE),e.abrupt("return",f.then((function(t){return l.middlewareInstance.iterateMiddleware(s,"after",t)})));case 16:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"updateApis",value:function(t,e){var r=this,n=t;return this.environment===l.environmentTypeEnumerate.STAGE&&(n=e),n().then((function(t){for(var e in r.apis)if(Object.hasOwnProperty.call(r.apis,e)){var n=r.apis[e],o={};"function"==typeof n[r.environment+"Variables"]&&(o=n[r.environment+"Variables"].call(null)),n.url=t.default(e,o)}}))}}],[{key:"NAMESPACE",get:function(){return"resource-enumerate"}}]),t}();r.d(e,"ResourceEnumerate",(function(){return v}))},W8MJ:function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},bygm:function(t,e){t.exports=require("@aofl/server-environment")},j1ZV:function(t,e){t.exports=require("@aofl/middleware")},ls82:function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?p:l,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",l="suspendedYield",h="executing",p="completed",v={};function y(){}function d(){}function m(){}var g={};g[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(_([])));b&&b!==r&&n.call(b,i)&&(g=b);var x=m.prototype=y.prototype=Object.create(g);function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var u=s(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(f).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,a)}))}a(u.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function _(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:S}}function S(){return{value:e,done:!0}}return d.prototype=x.constructor=m,m.constructor=d,m[u]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},E(L.prototype),L.prototype[a]=function(){return this},t.AsyncIterator=L,t.async=function(e,r,n,o){var i=new L(c(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),x[u]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=_,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},lwsE:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},o0o1:function(t,e,r){t.exports=r("ls82")},yXPU:function(t,e){function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}}}); | ||
module.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s="QfWi")}({BZcc:function(t,e){t.exports=require("@aofl/api-request")},QfWi:function(t,e,r){"use strict";r.r(e);var n=r("o0o1"),o=r.n(n),i=r("lwsE"),a=r.n(i),u=r("W8MJ"),c=r.n(u),s=r("bygm"),f=r("j1ZV"),l=r("BZcc"),h=function(){function t(e){var r=this;a()(this,t),this.environment=e,this.ready=new Promise((function(t){r.resolve=t})),this.middlewareInstance=new f.Middleware("before","after"),this.apiRequestInstance=new l.ApiRequest}return c()(t,[{key:"init",value:function(t){var e,r,n,i,a,u,c=this,f=arguments;return o.a.async((function(l){for(;;)switch(l.prev=l.next){case 0:e=t.apis,r=t.developmentConfig,n=t.stageConfig,i=f.length>1&&void 0!==f[1]&&f[1],this.apis=e,a=function(t){if(!Object.hasOwnProperty.call(c.apis,t))return"continue";var e=c.apis[t];c.apiRequestInstance.addFormatter(t,{pack:function(){return e.requestOptions||{}},unpack:function(t){return t.json()}})},l.t0=o.a.keys(this.apis);case 5:if((l.t1=l.t0()).done){l.next=12;break}if(u=l.t1.value,"continue"!==a(u)){l.next=10;break}return l.abrupt("continue",5);case 10:l.next=5;break;case 12:if(!1!==i||this.environment===s.environmentTypeEnumerate.PROD){l.next=17;break}return l.next=15,o.a.awrap(this.updateApis(r,n));case 15:case 17:return this.resolve(),l.abrupt("return",this.ready);case 19:case"end":return l.stop()}}),null,this)}},{key:"before",value:function(t){this.middlewareInstance.use(t,"before")}},{key:"after",value:function(t){this.middlewareInstance.use(t,"after")}},{key:"get",value:function(e){var r,n,i,a,u,c,s,f=this,l=arguments;return o.a.async((function(h){for(;;)switch(h.prev=h.next){case 0:return r=!(l.length>1&&void 0!==l[1])||l[1],h.next=3,o.a.awrap(this.ready);case 3:if(n=this.apis[e],i=r,void 0!==n){h.next=7;break}throw new TypeError("".concat(e," is not a valid api namespace."));case 7:return(!i||"function"==typeof n.invalidateCache&&n.invalidateCache.call(null))&&(this.apiRequestInstance.clearCache(t.NAMESPACE),i=!1),a=this.apiRequestInstance.getCacheManager(t.NAMESPACE),u=a.getItem(n.url+JSON.stringify("")),c={namespace:e,cached:null!==u},h.next=13,o.a.awrap(this.middlewareInstance.iterateMiddleware(c,"before"));case 13:return s=null,s=null!==u?u:this.apiRequestInstance.request(n.url,"",e,i,t.NAMESPACE),h.abrupt("return",s.then((function(t){return f.middlewareInstance.iterateMiddleware(c,"after",t)})));case 16:case"end":return h.stop()}}),null,this)}},{key:"updateApis",value:function(t,e){var r=this,n=t;return this.environment===s.environmentTypeEnumerate.STAGE&&(n=e),n().then((function(t){for(var e in r.apis)if(Object.hasOwnProperty.call(r.apis,e)){var n=r.apis[e],o={};"function"==typeof n[r.environment+"Variables"]&&(o=n[r.environment+"Variables"].call(null)),n.url=t.default(e,o)}}))}}],[{key:"NAMESPACE",get:function(){return"resource-enumerate"}}]),t}();r.d(e,"ResourceEnumerate",(function(){return h}))},W8MJ:function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},bygm:function(t,e){t.exports=require("@aofl/server-environment")},j1ZV:function(t,e){t.exports=require("@aofl/middleware")},ls82:function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new P(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?p:l,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",l="suspendedYield",h="executing",p="completed",y={};function d(){}function v(){}function m(){}var g={};g[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(_([])));b&&b!==r&&n.call(b,i)&&(g=b);var x=m.prototype=d.prototype=Object.create(g);function E(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var u=s(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(f).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,a)}))}a(u.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function _(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:S}}function S(){return{value:e,done:!0}}return v.prototype=x.constructor=m,m.constructor=v,m[u]=v.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},E(L.prototype),L.prototype[a]=function(){return this},t.AsyncIterator=L,t.async=function(e,r,n,o){var i=new L(c(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(x),x[u]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=_,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},lwsE:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},o0o1:function(t,e,r){t.exports=r("ls82")}}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aofl/resource-enumerate", | ||
"version": "3.0.0-beta.40", | ||
"version": "3.0.0-beta.41", | ||
"description": "Resource enumerate is a special case API call that returns the interface of the API code in a single endpoint", | ||
@@ -11,5 +11,6 @@ "main": "index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build-ci": "cross-env NODE_ENV=production aofl build --debug", | ||
"build": "cross-env NODE_ENV=production npx aofl build", | ||
"build:dev": "cross-env NODE_ENV=development npx aofl build", | ||
"prepublishOnly": "npm run build && npm run docs", | ||
"prepublishOnly": "npm run build-ci && npm run docs", | ||
"docs": "jsdoc -c .jsdocrc.json ." | ||
@@ -34,7 +35,7 @@ }, | ||
"devDependencies": { | ||
"@aofl/api-request": "^3.0.0-beta.40", | ||
"@aofl/cache-manager": "^3.0.0-beta.40", | ||
"@aofl/cli": "^3.0.0-beta.40", | ||
"@aofl/middleware": "^3.0.0-beta.40", | ||
"@aofl/server-environment": "^3.0.0-beta.40", | ||
"@aofl/api-request": "^3.0.0-beta.41", | ||
"@aofl/cache-manager": "^3.0.0-beta.41", | ||
"@aofl/cli": "^3.0.0-beta.41", | ||
"@aofl/middleware": "^3.0.0-beta.41", | ||
"@aofl/server-environment": "^3.0.0-beta.41", | ||
"cross-env": "^6.0.3", | ||
@@ -51,3 +52,3 @@ "jsdoc": "^3.6.3", | ||
}, | ||
"gitHead": "0bfdc05f0d4406219d0b432a55fe53ab1726f4c0" | ||
"gitHead": "212bc663acbda22a9679fadb2aa64484e35dc068" | ||
} |
Sorry, the diff of this file is not supported yet
44680
-2.33%424
-0.24%