@imghop/core
Advanced tools
Comparing version 0.0.12-alpha.0 to 0.0.12-alpha.2
export declare const CDN_NAME = "https://hop.imghop.dev/"; | ||
export declare enum AVATAR_SIZES { | ||
sm = "sm", | ||
md = "md", | ||
lg = "lg", | ||
xl = "xl" | ||
} | ||
export declare type AVATAR_SIZES = 'sm' | 'md' | 'lg' | 'xl'; |
@@ -66,9 +66,2 @@ 'use strict'; | ||
(function (AVATAR_SIZES) { | ||
AVATAR_SIZES["sm"] = "sm"; | ||
AVATAR_SIZES["md"] = "md"; | ||
AVATAR_SIZES["lg"] = "lg"; | ||
AVATAR_SIZES["xl"] = "xl"; | ||
})(exports.AVATAR_SIZES || (exports.AVATAR_SIZES = {})); | ||
function queryHelper(url, options) { | ||
@@ -75,0 +68,0 @@ if (!url.startsWith(CDN_NAME)) return url; |
@@ -1,2 +0,2 @@ | ||
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e,r=t(require("qs")),n=t(require("cross-fetch"));function o(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))}}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}(e=exports.AVATAR_SIZES||(exports.AVATAR_SIZES={})).sm="sm",e.md="md",e.lg="lg",e.xl="xl";var c,u=(function(t){var e=function(t){var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),i=new L(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,i),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function f(){}function l(){}function p(){}var d={};d[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(_([])));y&&y!==e&&r.call(y,o)&&(d=y);var g=p.prototype=f.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var n;this._invoke=function(o,i){function a(){return new e((function(n,a){!function n(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var h=u.arg,f=h.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){h.value=t,a(h)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(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 b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return l.prototype=g.constructor=p,p.constructor=l,l.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),c(g,a,"Generator"),g[o]=function(){return this},g.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=_,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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 e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,h):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),h},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),b(r),h}},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;b(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}(c={exports:{}}),c.exports),s=process.env.IMGHOP_DEBUG_URL||"https://imghop.dev/api";function h(t){return function(e,r){return n(""+s+e,a({},r,{headers:a({},r.headers,{Authorization:t})}))}}function f(){return(f=i(u.mark((function t(e){var r,n,o,i;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.apiKey){t.next=2;break}throw new Error("You need to provide an API-Key");case 2:if(e.image){t.next=4;break}throw new Error("You need to provide an Image");case 4:return r=h(e.apiKey),t.next=7,r("/upload",{body:e.image,method:"PUT",headers:a({},e.headers)});case 7:return n=t.sent,t.next=10,n.json();case 10:if(o=t.sent,!n.ok){t.next=15;break}return t.abrupt("return",o.url);case 15:if(!o){t.next=17;break}throw new Error(null!=(i=o.message)?i:o);case 17:throw new Error("Could not upload image");case 18:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(){return(l=i(u.mark((function t(e){var r,n,o,i,a;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.secretKey){t.next=2;break}throw new Error("You need to provide a Secret-Key");case 2:return r=h(e.secretKey),n=e.fileNameOrUrl.replace("https://hop.imghop.dev",""),t.next=6,r(n,{method:"DELETE"});case 6:if((o=t.sent).ok){t.next=14;break}return t.next=10,o.json();case 10:if(!(i=t.sent)){t.next=13;break}throw new Error(null!=(a=i.message)?a:i);case 13:throw new Error("Could not delete image");case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}exports.deleteImage=function(t){return l.apply(this,arguments)},exports.queryHelper=function(t,e){if(!t.startsWith("https://hop.imghop.dev/"))return t;var n=t.split("?"),o=n[0],i=n[1],c=r.parse(e);i&&(c=a({},r.parse(i),c)),c.width&&(c.w=c.width,delete c.width),c.height&&(c.h=c.height,delete c.height),c.quality&&(c.q=c.quality,delete c.quality);var u=r.stringify(c);return u?o+"?"+u:o},exports.uploadImage=function(t){return f.apply(this,arguments)}; | ||
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var e=t(require("qs")),r=t(require("cross-fetch"));function n(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var a,c=(function(t){var e=function(t){var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),i=new L(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,i),o}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function f(){}function l(){}function p(){}var d={};d[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(k([])));y&&y!==e&&r.call(y,o)&&(d=y);var g=p.prototype=f.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var n;this._invoke=function(o,i){function a(){return new e((function(n,a){!function n(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var h=u.arg,f=h.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){h.value=t,a(h)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function b(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return l.prototype=g.constructor=p,p.constructor=l,l.displayName=c(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(w.prototype),w.prototype[i]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(g),c(g,a,"Generator"),g[o]=function(){return this},g.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=k,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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 e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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,h):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),h},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),E(r),h}},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;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}(a={exports:{}}),a.exports),u=process.env.IMGHOP_DEBUG_URL||"https://imghop.dev/api";function s(t){return function(e,n){return r(""+u+e,i({},n,{headers:i({},n.headers,{Authorization:t})}))}}function h(){return(h=o(c.mark((function t(e){var r,n,o,a;return c.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.apiKey){t.next=2;break}throw new Error("You need to provide an API-Key");case 2:if(e.image){t.next=4;break}throw new Error("You need to provide an Image");case 4:return r=s(e.apiKey),t.next=7,r("/upload",{body:e.image,method:"PUT",headers:i({},e.headers)});case 7:return n=t.sent,t.next=10,n.json();case 10:if(o=t.sent,!n.ok){t.next=15;break}return t.abrupt("return",o.url);case 15:if(!o){t.next=17;break}throw new Error(null!=(a=o.message)?a:o);case 17:throw new Error("Could not upload image");case 18:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(){return(f=o(c.mark((function t(e){var r,n,o,i,a;return c.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.secretKey){t.next=2;break}throw new Error("You need to provide a Secret-Key");case 2:return r=s(e.secretKey),n=e.fileNameOrUrl.replace("https://hop.imghop.dev",""),t.next=6,r(n,{method:"DELETE"});case 6:if((o=t.sent).ok){t.next=14;break}return t.next=10,o.json();case 10:if(!(i=t.sent)){t.next=13;break}throw new Error(null!=(a=i.message)?a:i);case 13:throw new Error("Could not delete image");case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}exports.deleteImage=function(t){return f.apply(this,arguments)},exports.queryHelper=function(t,r){if(!t.startsWith("https://hop.imghop.dev/"))return t;var n=t.split("?"),o=n[0],a=n[1],c=e.parse(r);a&&(c=i({},e.parse(a),c)),c.width&&(c.w=c.width,delete c.width),c.height&&(c.h=c.height,delete c.height),c.quality&&(c.q=c.quality,delete c.quality);var u=e.stringify(c);return u?o+"?"+u:o},exports.uploadImage=function(t){return h.apply(this,arguments)}; | ||
//# sourceMappingURL=core.cjs.production.min.js.map |
@@ -59,11 +59,3 @@ import qs from 'qs'; | ||
var CDN_NAME = 'https://hop.imghop.dev/'; | ||
var AVATAR_SIZES; | ||
(function (AVATAR_SIZES) { | ||
AVATAR_SIZES["sm"] = "sm"; | ||
AVATAR_SIZES["md"] = "md"; | ||
AVATAR_SIZES["lg"] = "lg"; | ||
AVATAR_SIZES["xl"] = "xl"; | ||
})(AVATAR_SIZES || (AVATAR_SIZES = {})); | ||
function queryHelper(url, options) { | ||
@@ -1004,3 +996,3 @@ if (!url.startsWith(CDN_NAME)) return url; | ||
export { AVATAR_SIZES, deleteImage, queryHelper, uploadImage }; | ||
export { deleteImage, queryHelper, uploadImage }; | ||
//# sourceMappingURL=core.esm.js.map |
export { queryHelper, QueryOptions } from './query'; | ||
export { uploadImage, deleteImage } from './fetch'; | ||
export { AVATAR_SIZES } from './constants'; | ||
export { uploadImage, deleteImage } from './fetch'; |
{ | ||
"version": "0.0.12-alpha.0", | ||
"version": "0.0.12-alpha.2", | ||
"license": "MIT", | ||
@@ -63,3 +63,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "ba1b09aeebb5bcceb772f3f8d61beee7f7198858" | ||
"gitHead": "75e52c61ddbb67a584bdd65ffdc8d52a9ecee65e" | ||
} |
export const CDN_NAME = 'https://hop.imghop.dev/'; | ||
export enum AVATAR_SIZES { | ||
sm = 'sm', | ||
md = 'md', | ||
lg = 'lg', | ||
xl = 'xl', | ||
} | ||
export type AVATAR_SIZES = 'sm' | 'md' | 'lg' | 'xl'; |
export { queryHelper, QueryOptions } from './query'; | ||
export { uploadImage, deleteImage } from './fetch'; | ||
export { AVATAR_SIZES } from './constants'; | ||
export { uploadImage, deleteImage } from './fetch'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
223014
1837