@aofl/resource-enumerate
Advanced tools
Comparing version
{ | ||
"plugins": ["node_modules/jsdoc-babel"], | ||
"plugins": ["../node_modules/jsdoc-babel"], | ||
"source": { | ||
@@ -8,3 +8,3 @@ "includePattern": ".*\\.js$", | ||
"opts": { | ||
"template": "./node_modules/tsd-jsdoc/dist", | ||
"template": "../node_modules/tsd-jsdoc/dist", | ||
"encoding": "utf8", | ||
@@ -11,0 +11,0 @@ "destination": ".", |
@@ -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("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")},lwsE:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},mLhc: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)}},o0o1:function(t,e,r){t.exports=r("mLhc")}}); | ||
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")},NToG: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}},NthX:function(t,e,r){t.exports=r("eEQR")},QfWi:function(t,e,r){"use strict";r.r(e);var n=r("NthX"),o=r.n(n),i=r("SDJZ"),a=r.n(i),u=r("NToG"),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}))},SDJZ:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},bygm:function(t,e){t.exports=require("@aofl/server-environment")},eEQR: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)}},j1ZV:function(t,e){t.exports=require("@aofl/middleware")}}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aofl/resource-enumerate", | ||
"version": "3.0.0-beta.47", | ||
"version": "3.0.0-beta.48", | ||
"description": "Resource enumerate is a special case API call that returns the interface of the API code in a single endpoint", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"prepublishOnly": "npm run build-ci && npm run docs", | ||
"docs": "jsdoc -c .jsdocrc.json ." | ||
"docs": "npx jsdoc -c .jsdocrc.json ." | ||
}, | ||
@@ -35,7 +35,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"@aofl/api-request": "^3.0.0-beta.47", | ||
"@aofl/cache-manager": "^3.0.0-beta.47", | ||
"@aofl/cli": "^3.0.0-beta.46", | ||
"@aofl/middleware": "^3.0.0-beta.47", | ||
"@aofl/server-environment": "^3.0.0-beta.47", | ||
"@aofl/api-request": "^3.0.0-beta.48", | ||
"@aofl/cache-manager": "^3.0.0-beta.48", | ||
"@aofl/cli": "^3.0.0-beta.48", | ||
"@aofl/middleware": "^3.0.0-beta.48", | ||
"@aofl/server-environment": "^3.0.0-beta.48", | ||
"cross-env": "^6.0.3", | ||
@@ -52,3 +52,3 @@ "jsdoc": "^3.6.3", | ||
}, | ||
"gitHead": "11344382e361206a6f67f05f4904149ead37c1ed" | ||
"gitHead": "d77a51a21b591d1ac0032de47395878116e8566a" | ||
} |
Sorry, the diff of this file is not supported yet
44716
0.02%