UNPKG

@termii/node

Version:

Nodejs SDK wrapper for Termii API written with Typescript support

3 lines (2 loc) 20.4 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e=(t=require("axios"))&&"object"==typeof t&&"default"in t?t.default:t;function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.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 p(t,e,r,n){var o=Object.create((e&&e.prototype instanceof l?e:l).prototype),i=new E(n||[]);return a(o,"_invoke",{value:k(t,r,i)}),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var f={};function l(){}function d(){}function v(){}var y={};c(y,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(T([])));b&&b!==e&&n.call(b,i)&&(y=b);var g=v.prototype=l.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var r;a(this,"_invoke",{value:function(a,o){function i(){return new e((function(r,i){!function r(a,o,i,u){var s=h(t[a],t,o);if("throw"!==s.type){var c=s.arg,p=c.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):e.resolve(p).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,u)}))}u(s.arg)}(a,o,r,i)}))}return r=r?r.then(i,i):i()}})}function k(t,e,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return{value:void 0,done:!0}}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var u=I(i,r);if(u){if(u===f)continue;return u}}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 s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function I(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var a=h(n,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,f;var o=a.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,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function P(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=v,a(g,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:d,configurable:!0}),d.displayName=c(v,s,"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,v):(t.__proto__=v,c(t,s,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(x.prototype),c(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new x(p(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(g),c(g,s,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=T,E.prototype={constructor:E,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(O),!t)for(var e in this)"t"===e.charAt(0)&&n.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 r(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},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),f},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),O(r),f}},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 a=n.arg;O(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function n(t,e,r,n,a,o,i){try{var u=t[o](i),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,a)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(a,o){var i=t.apply(e,r);function u(t){n(i,a,o,u,s,"next",t)}function s(t){n(i,a,o,u,s,"throw",t)}u(void 0)}))}}function o(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,"symbol"==typeof(a=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key))?a:String(a),n)}var a}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(){return(u=Object.assign?Object.assign.bind():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)}function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,p(t,e)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t,e,r){return(f=h()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var a=new(Function.bind.apply(t,n));return r&&p(a,r.prototype),a}).apply(null,arguments)}function l(t){var e="function"==typeof Map?new Map:void 0;return(l=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return f(t,arguments,c(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,t)})(t)}var d=function(t){function e(e){var r;return void 0===e&&(e={}),r=t.call(this)||this,Error.captureStackTrace(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r),r.constructor),r.name=r.constructor.name,r.message=e.message,r}return s(e,t),e}(l(Error)),v=function(t){var e;return null==t||null==(e=t.response)?void 0:e.data},y=function(){function t(t){this.apiKey=t,this.apiKey=t,this.request=e.create({baseURL:"https://api.ng.termii.com/api",headers:{Accept:"application/json","Content-Type":"application/json"}})}return t.prototype.useRequest=function(){var t=a(r().mark((function t(e){var n,a,o,i,s;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,a=e.url,o=e.data,i=e.page,"GET"!==(n=e.method)&&"DELETE"!==n){t.next=8;break}return s={api_key:this.apiKey},"GET"===n&&void 0!==i&&(s.page=i),t.abrupt("return",this.request({method:n,url:a,params:s}));case 8:if("POST"!==n&&"PATCH"!==n){t.next=12;break}return t.abrupt("return",this.request({method:n,url:a,data:u({},o,{api_key:this.apiKey})}));case 12:throw new d({message:"Invalid HTTP method"});case 13:t.next=18;break;case 15:throw t.prev=15,t.t0=t.catch(0),new d({message:v(t.t0)});case 18:case"end":return t.stop()}}),t,this,[[0,15]])})));return function(e){return t.apply(this,arguments)}}(),t}(),m=function(t){function e(e){return t.call(this,e)||this}s(e,t);var n=e.prototype;return n.sendMessage=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"POST",url:"/sms/send",data:e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),n.sendBulkMessage=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"POST",url:"/sms/send/bulk",data:e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),e}(y),b=function(t){function e(e){return t.call(this,e)||this}s(e,t);var n=e.prototype;return n.fetchSenderIDs=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"GET",url:"/sender-id",page:e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),n.requestSenderID=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"POST",url:"/sender-id/request",data:e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),e}(y),g=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.sendMessageWithNumber=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"POST",url:"/sms/number/send",data:e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),e}(y),w=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.sendMessageWithTemplate=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"POST",url:"/send/template",data:e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),e}(y),x=function(t){function e(e){return t.call(this,e)||this}s(e,t);var n=e.prototype;return n.fetchPhonebooks=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"GET",url:"/phonebooks",page:e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),n.createPhonebook=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"POST",url:"/phonebooks",data:e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),n.updatePhonebook=function(){var t=a(r().mark((function t(e,n){var a,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a={method:"PATCH",url:"/phonebooks/"+e,data:n},t.next=4,this.useRequest(a);case 4:return t.abrupt("return",null==(o=t.sent)?void 0:o.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e,r){return t.apply(this,arguments)}}(),n.deletePhonebook=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"DELETE",url:"/phonebooks/"+e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),e}(y),k=function(t){function e(e){return t.call(this,e)||this}s(e,t);var n=e.prototype;return n.fetchContacts=function(){var t=a(r().mark((function t(e,n){var a,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a={method:"GET",url:"/phonebooks/"+e+"/contacts",page:n},t.next=4,this.useRequest(a);case 4:return t.abrupt("return",null==(o=t.sent)?void 0:o.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e,r){return t.apply(this,arguments)}}(),n.createContact=function(){var t=a(r().mark((function t(e,n){var a,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a={method:"POST",url:"/phonebooks/"+e+"/contacts",data:n},t.next=4,this.useRequest(a);case 4:return t.abrupt("return",null==(o=t.sent)?void 0:o.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e,r){return t.apply(this,arguments)}}(),n.deleteContact=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"DELETE",url:"/phonebook/contact/"+e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),e}(y),I=function(t){function e(e){return t.call(this,e)||this}s(e,t);var n=e.prototype;return n.fetchCampaigns=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"GET",url:"sms/campaigns",page:e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),n.fetchCampaignHistory=function(){var t=a(r().mark((function t(e,n){var a,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a={method:"GET",url:"sms/campaigns/"+e,page:n},t.next=4,this.useRequest(a);case 4:return t.abrupt("return",null==(o=t.sent)?void 0:o.data);case 8:return t.prev=8,t.t0=t.catch(0),console.error(t.t0),t.abrupt("return",v(t.t0));case 12:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e,r){return t.apply(this,arguments)}}(),n.sendCampaign=function(){var t=a(r().mark((function t(e){var n,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={method:"POST",url:"/sms/campaigns/send",data:e},t.next=4,this.useRequest(n);case 4:return t.abrupt("return",null==(a=t.sent)?void 0:a.data);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",v(t.t0));case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),e}(y),P=function(){function t(t){this.messageInstance=new m(t),this.senderIdInstance=new b(t),this.numberInstance=new g(t),this.templateInstance=new w(t),this.phonebookInstance=new x(t),this.contactInstance=new k(t),this.campaignInstance=new I(t)}return i(t,[{key:"message",get:function(){return{sendMessage:this.messageInstance.sendMessage.bind(this.messageInstance),sendBulkMessage:this.messageInstance.sendBulkMessage.bind(this.messageInstance),fetchSenderIDs:this.senderIdInstance.fetchSenderIDs.bind(this.senderIdInstance),requestSenderID:this.senderIdInstance.requestSenderID.bind(this.senderIdInstance),sendMessageWithNumber:this.numberInstance.sendMessageWithNumber.bind(this.numberInstance),sendMessageWithTemplate:this.templateInstance.sendMessageWithTemplate.bind(this.templateInstance),fetchPhonebooks:this.phonebookInstance.fetchPhonebooks.bind(this.phonebookInstance),createPhonebook:this.phonebookInstance.createPhonebook.bind(this.phonebookInstance),updatePhonebook:this.phonebookInstance.updatePhonebook.bind(this.phonebookInstance),deletePhonebook:this.phonebookInstance.deletePhonebook.bind(this.phonebookInstance),fetchContacts:this.contactInstance.fetchContacts.bind(this.contactInstance),createContact:this.contactInstance.createContact.bind(this.contactInstance),deleteContact:this.contactInstance.deleteContact.bind(this.contactInstance),fetchCampaigns:this.campaignInstance.fetchCampaigns.bind(this.campaignInstance),fetchCampaignHistory:this.campaignInstance.fetchCampaignHistory.bind(this.campaignInstance),sendCampaign:this.campaignInstance.sendCampaign.bind(this.campaignInstance)}}}]),t}();exports.Termii=function(){function t(t){this.apiKey=t,this.messageInstance=new P(t)}return i(t,[{key:"message",get:function(){return this.messageInstance.message}}]),t}(); //# sourceMappingURL=node.cjs.production.min.js.map