Comparing version 1.2.121 to 1.2.122
@@ -9,2 +9,27 @@ 'use strict'; | ||
function asyncGeneratorStep(n, t, e, r, o, a, c) { | ||
try { | ||
var i = n[a](c), | ||
u = i.value; | ||
} catch (n) { | ||
return void e(n); | ||
} | ||
i.done ? t(u) : Promise.resolve(u).then(r, o); | ||
} | ||
function _asyncToGenerator(n) { | ||
return function () { | ||
var t = this, | ||
e = arguments; | ||
return new Promise(function (r, o) { | ||
var a = n.apply(t, e); | ||
function _next(n) { | ||
asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | ||
} | ||
function _throw(n) { | ||
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | ||
} | ||
_next(void 0); | ||
}); | ||
}; | ||
} | ||
function _regeneratorRuntime() { | ||
@@ -311,32 +336,2 @@ _regeneratorRuntime = function () { | ||
} | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
try { | ||
var info = gen[key](arg); | ||
var value = info.value; | ||
} catch (error) { | ||
reject(error); | ||
return; | ||
} | ||
if (info.done) { | ||
resolve(value); | ||
} else { | ||
Promise.resolve(value).then(_next, _throw); | ||
} | ||
} | ||
function _asyncToGenerator(fn) { | ||
return function () { | ||
var self = this, | ||
args = arguments; | ||
return new Promise(function (resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
} | ||
_next(undefined); | ||
}); | ||
}; | ||
} | ||
@@ -343,0 +338,0 @@ var SendimTransportInterface = |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,r=(t=require("pino"))&&"object"==typeof t&&"default"in t?t.default:t;function e(){e=function(){return r};var t,r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function h(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=Object.create((r&&r.prototype instanceof g?r:g).prototype),a=new _(n||[]);return i(o,"_invoke",{value:S(t,e,a)}),o}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=l;var p="suspendedStart",v="executing",d="completed",y={};function g(){}function m(){}function w(){}var b={};h(b,s,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(I([])));E&&E!==n&&o.call(E,s)&&(b=E);var L=w.prototype=g.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(r){h(t,r,(function(t){return this._invoke(r,t)}))}))}function N(t,r){function e(n,i,a,s){var c=f(t[n],t,i);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){e("next",t,a,s)}),(function(t){e("throw",t,a,s)})):r.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return e("throw",t,a,s)}))}s(c.arg)}var n;i(this,"_invoke",{value:function(t,o){function i(){return new r((function(r,n){e(t,o,r,n)}))}return n=n?n.then(i,i):i()}})}function S(r,e,n){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var u=f(r,e,n);if("normal"===u.type){if(o=n.done?d:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=d,n.method="throw",n.arg=u.arg)}}}function j(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,j(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,y;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,y):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function I(r){if(r||""===r){var e=r[s];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var n=-1,i=function e(){for(;++n<r.length;)if(o.call(r,n))return e.value=r[n],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(typeof r+" is not iterable")}return m.prototype=w,i(L,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:m,configurable:!0}),m.displayName=h(w,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},r.awrap=function(t){return{__await:t}},k(N.prototype),h(N.prototype,c,(function(){return this})),r.AsyncIterator=N,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new N(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(L),h(L,u,"Generator"),h(L,s,(function(){return this})),h(L,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=I,_.prototype={constructor:_,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!r)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function n(n,o){return s.type="throw",s.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,r){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&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),T(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;T(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:I(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}function n(t,r,e,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?r(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var r=this,e=arguments;return new Promise((function(o,i){var a=t.apply(r,e);function s(t){n(a,o,i,s,c,"next",t)}function c(t){n(a,o,i,s,c,"throw",t)}s(void 0)}))}}exports.Sendim=function(){function t(t){this.transports={},this.logger=r({level:t||"info"})}var n=t.prototype;return n.addTransport=function(){var t=o(e().mark((function t(r,n,o){var i;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=new r(n),t.next=3,i.isHealthy();case 3:if(t.sent){t.next=6;break}throw this.logger.error("[SENDIM] Transport "+i.providerName+" is not healthy !"),"Transport is not healthy !";case 6:if(!this.transports[o||i.providerName]){t.next=9;break}throw this.logger.error("[SAVIM] Provider "+(o||i.providerName)+" is not healthy !"),"Provider already exist !";case 9:this.transports[i.providerName]=i;case 10:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),n.removeTransport=function(){var t=o(e().mark((function t(r){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.transports[r]&&delete this.transports[r];case 1:case"end":return t.stop()}}),t,this)})));return function(r){return t.apply(this,arguments)}}(),n.sendRawMail=function(){var t=o(e().mark((function t(r,n){var o,i;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=Object.keys(this.transports),n&&this.transports[n]&&(i=this.transports[n]),!i&&(null==o?void 0:o.length)>0&&(i=this.transports[o[0]]),i){t.next=8;break}this.logger.debug("[SENDIM] Send raw email"),this.logger.debug(r),t.next=12;break;case 8:return this.logger.debug("[SENDIM] Send raw email (Transport: "+i.providerName+") "),this.logger.debug(r),t.next=12,i.sendRawMail(r);case 12:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),n.sendTransactionalMail=function(){var t=o(e().mark((function t(r,n){var o,i;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=Object.keys(this.transports),n&&this.transports[n]&&(i=this.transports[n]),!i&&(null==o?void 0:o.length)>0&&(i=this.transports[o[0]]),i){t.next=8;break}this.logger.debug("[SENDIM] Send transactional email (Template: "+r.templateId+")"),this.logger.debug(r),t.next=12;break;case 8:return this.logger.debug("[SENDIM] Send transactional email (Template: "+r.templateId+" / Transport: "+i.providerName+") "),this.logger.debug(r),t.next=12,i.sendTransactionalMail(r);case 12:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),t}(),exports.SendimTransportInterface=function(t){}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,r=(t=require("pino"))&&"object"==typeof t&&"default"in t?t.default:t;function e(t,r,e,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?r(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function s(t){e(a,o,i,s,c,"next",t)}function c(t){e(a,o,i,s,c,"throw",t)}s(void 0)}))}}function o(){o=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function h(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=Object.create((r&&r.prototype instanceof g?r:g).prototype),a=new _(n||[]);return i(o,"_invoke",{value:S(t,e,a)}),o}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=l;var p="suspendedStart",v="executing",d="completed",y={};function g(){}function m(){}function w(){}var b={};h(b,s,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(I([])));E&&E!==e&&n.call(E,s)&&(b=E);var L=w.prototype=g.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(r){h(t,r,(function(t){return this._invoke(r,t)}))}))}function N(t,r){function e(o,i,a,s){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&n.call(h,"__await")?r.resolve(h.__await).then((function(t){e("next",t,a,s)}),(function(t){e("throw",t,a,s)})):r.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return e("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}})}function S(r,e,n){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var u=f(r,e,n);if("normal"===u.type){if(o=n.done?d:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=d,n.method="throw",n.arg=u.arg)}}}function j(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,j(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,y;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,y):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function I(r){if(r||""===r){var e=r[s];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(typeof r+" is not iterable")}return m.prototype=w,i(L,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:m,configurable:!0}),m.displayName=h(w,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},r.awrap=function(t){return{__await:t}},k(N.prototype),h(N.prototype,c,(function(){return this})),r.AsyncIterator=N,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new N(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(L),h(L,u,"Generator"),h(L,s,(function(){return this})),h(L,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=I,_.prototype={constructor:_,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return s.type="throw",s.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){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(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,r){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&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),T(e),y}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;T(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:I(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}exports.Sendim=function(){function t(t){this.transports={},this.logger=r({level:t||"info"})}var e=t.prototype;return e.addTransport=function(){var t=n(o().mark((function t(r,e,n){var i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=new r(e),t.next=3,i.isHealthy();case 3:if(t.sent){t.next=6;break}throw this.logger.error("[SENDIM] Transport "+i.providerName+" is not healthy !"),"Transport is not healthy !";case 6:if(!this.transports[n||i.providerName]){t.next=9;break}throw this.logger.error("[SAVIM] Provider "+(n||i.providerName)+" is not healthy !"),"Provider already exist !";case 9:this.transports[i.providerName]=i;case 10:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.removeTransport=function(){var t=n(o().mark((function t(r){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.transports[r]&&delete this.transports[r];case 1:case"end":return t.stop()}}),t,this)})));return function(r){return t.apply(this,arguments)}}(),e.sendRawMail=function(){var t=n(o().mark((function t(r,e){var n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Object.keys(this.transports),e&&this.transports[e]&&(i=this.transports[e]),!i&&(null==n?void 0:n.length)>0&&(i=this.transports[n[0]]),i){t.next=8;break}this.logger.debug("[SENDIM] Send raw email"),this.logger.debug(r),t.next=12;break;case 8:return this.logger.debug("[SENDIM] Send raw email (Transport: "+i.providerName+") "),this.logger.debug(r),t.next=12,i.sendRawMail(r);case 12:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.sendTransactionalMail=function(){var t=n(o().mark((function t(r,e){var n,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Object.keys(this.transports),e&&this.transports[e]&&(i=this.transports[e]),!i&&(null==n?void 0:n.length)>0&&(i=this.transports[n[0]]),i){t.next=8;break}this.logger.debug("[SENDIM] Send transactional email (Template: "+r.templateId+")"),this.logger.debug(r),t.next=12;break;case 8:return this.logger.debug("[SENDIM] Send transactional email (Template: "+r.templateId+" / Transport: "+i.providerName+") "),this.logger.debug(r),t.next=12,i.sendTransactionalMail(r);case 12:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),t}(),exports.SendimTransportInterface=function(t){}; | ||
//# sourceMappingURL=sendim.cjs.production.min.js.map |
import Pino from 'pino'; | ||
function asyncGeneratorStep(n, t, e, r, o, a, c) { | ||
try { | ||
var i = n[a](c), | ||
u = i.value; | ||
} catch (n) { | ||
return void e(n); | ||
} | ||
i.done ? t(u) : Promise.resolve(u).then(r, o); | ||
} | ||
function _asyncToGenerator(n) { | ||
return function () { | ||
var t = this, | ||
e = arguments; | ||
return new Promise(function (r, o) { | ||
var a = n.apply(t, e); | ||
function _next(n) { | ||
asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | ||
} | ||
function _throw(n) { | ||
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | ||
} | ||
_next(void 0); | ||
}); | ||
}; | ||
} | ||
function _regeneratorRuntime() { | ||
@@ -304,32 +329,2 @@ _regeneratorRuntime = function () { | ||
} | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
try { | ||
var info = gen[key](arg); | ||
var value = info.value; | ||
} catch (error) { | ||
reject(error); | ||
return; | ||
} | ||
if (info.done) { | ||
resolve(value); | ||
} else { | ||
Promise.resolve(value).then(_next, _throw); | ||
} | ||
} | ||
function _asyncToGenerator(fn) { | ||
return function () { | ||
var self = this, | ||
args = arguments; | ||
return new Promise(function (resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
} | ||
_next(undefined); | ||
}); | ||
}; | ||
} | ||
@@ -336,0 +331,0 @@ var SendimTransportInterface = |
{ | ||
"version": "1.2.121", | ||
"version": "1.2.122", | ||
"license": "MIT", | ||
@@ -67,4 +67,4 @@ "main": "dist/index.js", | ||
"@types/jest": "^29.5.0", | ||
"@typescript-eslint/eslint-plugin": "7.10.0", | ||
"@typescript-eslint/parser": "7.10.0", | ||
"@typescript-eslint/eslint-plugin": "7.11.0", | ||
"@typescript-eslint/parser": "7.11.0", | ||
"eslint": "8.57.0", | ||
@@ -71,0 +71,0 @@ "eslint-config-prettier": "9.1.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80407
1167