@twilio/mcs-client 0.6.1 → 0.6.3-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/builds/browser.js
CHANGED
package/builds/lib.js
CHANGED
|
@@ -45,4 +45,4 @@ this.Twilio=this.Twilio||{},this.Twilio.McsClient=function(t){"use strict";var e
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
*/
|
|
48
|
-
Object.defineProperty(ug,"__esModule",{value:!0});var jw=sb.exports,Tw=Rb.exports,Lw=hy.exports,_w=py.exports,Rw=vy.exports,Iw=gy.exports,Pw=by.exports;function Cw(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var Dw=Cw(my.exports),Mw=Cw(jw),Uw=Cw(Tw),Nw=Cw(Lw),Fw=Cw(_w),qw=Cw(Rw),Bw=Cw(Iw),$w=Cw(Pw),Gw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return{checks:e}};function Ww(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return zw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zw(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function zw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Vw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Gw((function(t){var r,n=!1,o=[],i=Ww(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;"string"!=typeof a?(n=n||t instanceof a,o.push("an instance of ".concat(a.name))):(n=n||Dw.default(t)===a,o.push("of type ".concat(a)))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))};function Hw(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Yw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yw(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Yw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jw(t){var e=function(){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}}();return function(){var r,n=$w.default(t);if(e){var o=$w.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Bw.default(this,r)}}function Kw(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Xw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xw(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Xw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zw=function(t,e){if(e.length>t.length)throw new Error("Expected at most ".concat(t.length," argument(s), but got ").concat(e.length));for(;e.length<t.length;)e.push(void 0);var r,n=Kw(e.entries());try{for(n.s();!(r=n.n()).done;){var o=Mw.default(r.value,2),i=o[0],a=o[1],u=rx(t[i],a),c=Mw.default(u,4),s=c[0],l=c[1],f=c[2],p=c[3];if(!s)throw new Error("Argument ".concat(i+1," is expected to be ").concat(f).concat(p," but got ").concat(l))}}catch(t){n.e(t)}finally{n.f()}},Qw=function(t){var e,r,n;(["undefined","boolean","number","bigint","string"].includes(Dw.default(t))&&(r="string"==typeof t?'"'.concat(t,'"'):"".concat(t)),"object"===Dw.default(t)&&"Object"!==(null==t||null===(e=t.constructor)||void 0===e?void 0:e.name))&&(r=null===t?"null":"instance of ".concat(null==t||null===(n=t.constructor)||void 0===n?void 0:n.name));return r||(r=Dw.default(t)),r},tx=function(t){var e,r=[],n=Kw(t);try{for(n.s();!(e=n.n()).done;){var o=e.value;r.push(ex(o))}}catch(t){n.e(t)}finally{n.f()}return r},ex=function(t){var e,r=[],n=Kw(Array.isArray(t)?t:[t]);try{for(n.s();!(e=n.n()).done;){var o=e.value;"string"!=typeof o&&"function"!=typeof o?r.push(o):r.push(Vw(o))}}catch(t){n.e(t)}finally{n.f()}return r},rx=function(t,e){var r,n,o=[],i=!1,a=Kw(t);try{for(a.s();!(n=a.n()).done;){var u,c=Kw(n.value.checks);try{for(c.s();!(u=c.n()).done;){var s=(0,u.value)(e),l=Mw.default(s,3),f=l[0],p=l[1],h=l[2];i=i||f,!r&&h&&(r=h),p&&(o=[].concat(Uw.default(o),"string"==typeof p?[p]:Uw.default(p)))}}catch(t){c.e(t)}finally{c.f()}}}catch(t){a.e(t)}finally{a.f()}if(i)return[!0];var d=r||Qw(e),v=o.length-1;return[!1,d,v>0?"".concat(o.slice(0,v).join(", ")," or ").concat(o[v]):o.join(", "),v>1?";":","]};function nx(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return ox(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ox(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function ox(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ix=Gw((function(t){return["string"==typeof t&&t.length>0,"a non-empty string"]})),ax=Gw((function(t){return["number"==typeof t&&Number.isInteger(t)&&t>=0,"a non-negative integer"]})),ux=Gw((function(t){return["object"===Dw.default(t)&&null!==t&&!Array.isArray(t),"a pure object (non-null and non-array)"]}));function cx(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return sx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sx(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function sx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}ug.array=function(t,e){return Gw((function(r){if(!Array.isArray(r))return[!1,"an array of ".concat(t)];var n,o=cx(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Mw.default(n.value,2),a=i[0],u=i[1],c=rx(ex(e),u),s=Mw.default(c,3),l=s[0],f=s[1],p=s[2];if(!l)return[!1,"a valid array of ".concat(t," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(t," (index ").concat(a," is ").concat(f,")")]}}catch(t){o.e(t)}finally{o.f()}return[!0]}))},ug.custom=Gw;var lx=ug.literal=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Gw((function(t){var r,n=!1,o=[],i=Hw(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;n=n||t===a,o.push("string"==typeof a?'"'.concat(a,'"'):"".concat(a))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))};ug.nonEmptyArray=function(t,e){return Gw((function(r){if(!Array.isArray(r)||r.length<1)return[!1,"a non-empty array of ".concat(t)];var n,o=nx(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Mw.default(n.value,2),a=i[0],u=i[1],c=rx(ex(e),u),s=Mw.default(c,3),l=s[0],f=s[1],p=s[2];if(!l)return[!1,"a valid non-empty array of ".concat(t," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(t," (index ").concat(a," is ").concat(f,")")]}}catch(t){o.e(t)}finally{o.f()}return[!0]}))};var fx=ug.nonEmptyString=ix;ug.nonNegativeInteger=ax,ug.objectSchema=function(t,e){return Gw((function(r){if("object"!==Dw.default(r)||null===r||Array.isArray(r))return[!1,"valid ".concat(t," (should be a pure object)")];for(var n=0,o=Object.entries(e);n<o.length;n++){var i=Mw.default(o[n],2),a=i[0],u=i[1],c=rx(ex(u),r[a]),s=Mw.default(c,3),l=s[0],f=s[1],p=s[2];if(!l)return[!1,"valid ".concat(t,' (key "').concat(a,'" should be ').concat(p,")"),"malformed ".concat(t,' (key "').concat(a,'" is ').concat(f,")")]}return[!0]}))};var px=ug.pureObject=ux;ug.runtimeTypeValidation=Zw,ug.stringifyReceivedType=Qw,ug.type=Vw;var hx,dx=ug.validateConstructorTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=tx(e);return function(t){return function(t){qw.default(r,t);var e=Jw(r);function r(){Fw.default(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return Zw(n,o),e.call.apply(e,[this].concat(o))}return Nw.default(r)}(t)}},vx=ug.validateTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=tx(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypes decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Zw(n,e),o.apply(this,e)}}},yx=ug.validateTypesAsync=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=tx(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypesAsync decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];try{Zw(n,e)}catch(t){return Promise.reject(t)}return o.apply(this,e)}}},gx=bl.scope("");return t.default=(hx=class{constructor(t,e,r){var n,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.options=i,this.options.logLevel=null!==(n=this.options.logLevel)&&void 0!==n?n:"silent",this.config=new ql(t,e,r,this.options),gx.setLevel(this.options.logLevel),this.options.transport=null!==(o=this.options.transport)&&void 0!==o?o:new Dp,this.transport=this.options.transport,this.network=new ag(this.config,this.transport)}updateToken(t){gx.info("updateToken"),this.config.updateToken(t)}get(t){var e=this;return new Wc(function(){var r=Vc(Js.mark((function r(n,o,i){var a,u;return Js.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.network.get("".concat(e.config.mediaUrl,"/").concat(t)),i((()=>a.cancel())),r.prev=2,r.next=5,a;case 5:u=r.sent,n(new Bl(e.config,e.network,u.body)),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(2),o(r.t0);case 12:case"end":return r.stop()}}),r,null,[[2,9]])})));return function(t,e,n){return r.apply(this,arguments)}}())}post(t,e,r,n){var o=this;return new Wc(function(){var i=Vc(Js.mark((function i(a,u,c){var s,l;return Js.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=o.network.post(o.config.mediaUrl,null!=r?r:"media",e,t,n),c((()=>s.cancel())),i.prev=2,i.next=5,s;case 5:l=i.sent,a(new Bl(o.config,o.network,l.body)),i.next=12;break;case 9:i.prev=9,i.t0=i.catch(2),u(i.t0);case 12:case"end":return i.stop()}}),i,null,[[2,9]])})));return function(t,e,r){return i.apply(this,arguments)}}())}postFormData(t,e){var r=this;return new Wc(function(){var n=Vc(Js.mark((function n(o,i,a){var u,c;return Js.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.network.post(r.config.mediaUrl,null!=e?e:"media",t),a((()=>u.cancel())),n.prev=2,n.next=5,u;case 5:c=n.sent,o(new Bl(r.config,r.network,c.body)),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),i(n.t0);case 12:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(t,e,r){return n.apply(this,arguments)}}())}mediaSetGet(t){var e=this;return new Wc(function(){var r=Vc(Js.mark((function r(n,o,i){var a,u,c,s;return Js.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={command:"get",list:t.map((t=>({media_sid:t})))},u=e.network.post("".concat(e.config.mediaSetUrl),null,a,"application/json"),i((()=>u.cancel())),r.prev=3,r.next=6,u;case 6:c=r.sent,s=c.body.map((t=>{if(200===t.code)return new Bl(e.config,e.network,t.media_record);o("Failed to obtain detailed information about Media items (failed SID ".concat(t.media_record.sid,")"))})),n(s),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(3),o(r.t0);case 14:case"end":return r.stop()}}),r,null,[[3,11]])})));return function(t,e,n){return r.apply(this,arguments)}}())}mediaSetGetContentUrls(t){var e=this;return new Wc(function(){var r=Vc(Js.mark((function r(n,o,i){var a,u,c,s;return Js.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={command:"get",list:t.map((t=>({media_sid:t})))},u=e.network.post("".concat(e.config.mediaSetUrl),null,a,"application/json"),i((()=>u.cancel())),r.prev=3,r.next=6,u;case 6:c=r.sent,s=new Map,c.body.forEach((t=>{200===t.code?s.set(t.media_record.sid,t.media_record.links.content_direct_temporary):o("Failed to obtain detailed information about Media items (failed SID ".concat(t.media_record.sid,")"))})),n(s),r.next=15;break;case 12:r.prev=12,r.t0=r.catch(3),o(r.t0);case 15:case"end":return r.stop()}}),r,null,[[3,12]])})));return function(t,e,n){return r.apply(this,arguments)}}())}},r(hx,"version","0.6.1"),hx),Ks([vx(fx),Xs("design:type",Function),Xs("design:paramtypes",[String]),Xs("design:returntype",void 0)],t.default.prototype,"updateToken",null),Ks([yx(fx),Xs("design:type",Function),Xs("design:paramtypes",[String]),Xs("design:returntype",Wc)],t.default.prototype,"get",null),t.default=Ks([dx(fx,fx,[fx,lx(null)],[px,"undefined"]),Xs("design:paramtypes",[String,String,Object,Object])],t.default),t.CancellablePromise=Wc,t.Client=t.default,t.McsClient=t.default,t.McsMedia=Bl,t.Media=Bl,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
48
|
+
Object.defineProperty(ug,"__esModule",{value:!0});var jw=sb.exports,Tw=Rb.exports,Lw=hy.exports,_w=py.exports,Rw=vy.exports,Iw=gy.exports,Pw=by.exports;function Cw(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var Dw=Cw(my.exports),Mw=Cw(jw),Uw=Cw(Tw),Nw=Cw(Lw),Fw=Cw(_w),qw=Cw(Rw),Bw=Cw(Iw),$w=Cw(Pw),Gw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return{checks:e}};function Ww(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return zw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zw(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function zw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Vw=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Gw((function(t){var r,n=!1,o=[],i=Ww(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;"string"!=typeof a?(n=n||t instanceof a,o.push("an instance of ".concat(a.name))):(n=n||Dw.default(t)===a,o.push("of type ".concat(a)))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))};function Hw(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Yw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yw(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Yw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jw(t){var e=function(){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}}();return function(){var r,n=$w.default(t);if(e){var o=$w.default(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Bw.default(this,r)}}function Kw(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return Xw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xw(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Xw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zw=function(t,e){if(e.length>t.length)throw new Error("Expected at most ".concat(t.length," argument(s), but got ").concat(e.length));for(;e.length<t.length;)e.push(void 0);var r,n=Kw(e.entries());try{for(n.s();!(r=n.n()).done;){var o=Mw.default(r.value,2),i=o[0],a=o[1],u=rx(t[i],a),c=Mw.default(u,4),s=c[0],l=c[1],f=c[2],p=c[3];if(!s)throw new Error("Argument ".concat(i+1," is expected to be ").concat(f).concat(p," but got ").concat(l))}}catch(t){n.e(t)}finally{n.f()}},Qw=function(t){var e,r,n;(["undefined","boolean","number","bigint","string"].includes(Dw.default(t))&&(r="string"==typeof t?'"'.concat(t,'"'):"".concat(t)),"object"===Dw.default(t)&&"Object"!==(null==t||null===(e=t.constructor)||void 0===e?void 0:e.name))&&(r=null===t?"null":"instance of ".concat(null==t||null===(n=t.constructor)||void 0===n?void 0:n.name));return r||(r=Dw.default(t)),r},tx=function(t){var e,r=[],n=Kw(t);try{for(n.s();!(e=n.n()).done;){var o=e.value;r.push(ex(o))}}catch(t){n.e(t)}finally{n.f()}return r},ex=function(t){var e,r=[],n=Kw(Array.isArray(t)?t:[t]);try{for(n.s();!(e=n.n()).done;){var o=e.value;"string"!=typeof o&&"function"!=typeof o?r.push(o):r.push(Vw(o))}}catch(t){n.e(t)}finally{n.f()}return r},rx=function(t,e){var r,n,o=[],i=!1,a=Kw(t);try{for(a.s();!(n=a.n()).done;){var u,c=Kw(n.value.checks);try{for(c.s();!(u=c.n()).done;){var s=(0,u.value)(e),l=Mw.default(s,3),f=l[0],p=l[1],h=l[2];i=i||f,!r&&h&&(r=h),p&&(o=[].concat(Uw.default(o),"string"==typeof p?[p]:Uw.default(p)))}}catch(t){c.e(t)}finally{c.f()}}}catch(t){a.e(t)}finally{a.f()}if(i)return[!0];var d=r||Qw(e),v=o.length-1;return[!1,d,v>0?"".concat(o.slice(0,v).join(", ")," or ").concat(o[v]):o.join(", "),v>1?";":","]};function nx(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return ox(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ox(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function ox(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ix=Gw((function(t){return["string"==typeof t&&t.length>0,"a non-empty string"]})),ax=Gw((function(t){return["number"==typeof t&&Number.isInteger(t)&&t>=0,"a non-negative integer"]})),ux=Gw((function(t){return["object"===Dw.default(t)&&null!==t&&!Array.isArray(t),"a pure object (non-null and non-array)"]}));function cx(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return sx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sx(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function sx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}ug.array=function(t,e){return Gw((function(r){if(!Array.isArray(r))return[!1,"an array of ".concat(t)];var n,o=cx(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Mw.default(n.value,2),a=i[0],u=i[1],c=rx(ex(e),u),s=Mw.default(c,3),l=s[0],f=s[1],p=s[2];if(!l)return[!1,"a valid array of ".concat(t," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(t," (index ").concat(a," is ").concat(f,")")]}}catch(t){o.e(t)}finally{o.f()}return[!0]}))},ug.custom=Gw;var lx=ug.literal=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Gw((function(t){var r,n=!1,o=[],i=Hw(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;n=n||t===a,o.push("string"==typeof a?'"'.concat(a,'"'):"".concat(a))}}catch(t){i.e(t)}finally{i.f()}return[n,o]}))};ug.nonEmptyArray=function(t,e){return Gw((function(r){if(!Array.isArray(r)||r.length<1)return[!1,"a non-empty array of ".concat(t)];var n,o=nx(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Mw.default(n.value,2),a=i[0],u=i[1],c=rx(ex(e),u),s=Mw.default(c,3),l=s[0],f=s[1],p=s[2];if(!l)return[!1,"a valid non-empty array of ".concat(t," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(t," (index ").concat(a," is ").concat(f,")")]}}catch(t){o.e(t)}finally{o.f()}return[!0]}))};var fx=ug.nonEmptyString=ix;ug.nonNegativeInteger=ax,ug.objectSchema=function(t,e){return Gw((function(r){if("object"!==Dw.default(r)||null===r||Array.isArray(r))return[!1,"valid ".concat(t," (should be a pure object)")];for(var n=0,o=Object.entries(e);n<o.length;n++){var i=Mw.default(o[n],2),a=i[0],u=i[1],c=rx(ex(u),r[a]),s=Mw.default(c,3),l=s[0],f=s[1],p=s[2];if(!l)return[!1,"valid ".concat(t,' (key "').concat(a,'" should be ').concat(p,")"),"malformed ".concat(t,' (key "').concat(a,'" is ').concat(f,")")]}return[!0]}))};var px=ug.pureObject=ux;ug.runtimeTypeValidation=Zw,ug.stringifyReceivedType=Qw,ug.type=Vw;var hx,dx=ug.validateConstructorTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=tx(e);return function(t){return function(t){qw.default(r,t);var e=Jw(r);function r(){Fw.default(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return Zw(n,o),e.call.apply(e,[this].concat(o))}return Nw.default(r)}(t)}},vx=ug.validateTypes=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=tx(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypes decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Zw(n,e),o.apply(this,e)}}},yx=ug.validateTypesAsync=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=tx(e);return function(t,e,r){if("function"!=typeof r.value)throw new Error("The validateTypesAsync decorator can only be applied to methods");var o=r.value;r.value=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];try{Zw(n,e)}catch(t){return Promise.reject(t)}return o.apply(this,e)}}},gx=bl.scope("");return t.default=(hx=class{constructor(t,e,r){var n,o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.options=i,this.options.logLevel=null!==(n=this.options.logLevel)&&void 0!==n?n:"silent",this.config=new ql(t,e,r,this.options),gx.setLevel(this.options.logLevel),this.options.transport=null!==(o=this.options.transport)&&void 0!==o?o:new Dp,this.transport=this.options.transport,this.network=new ag(this.config,this.transport)}updateToken(t){gx.info("updateToken"),this.config.updateToken(t)}get(t){var e=this;return new Wc(function(){var r=Vc(Js.mark((function r(n,o,i){var a,u;return Js.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e.network.get("".concat(e.config.mediaUrl,"/").concat(t)),i((()=>a.cancel())),r.prev=2,r.next=5,a;case 5:u=r.sent,n(new Bl(e.config,e.network,u.body)),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(2),o(r.t0);case 12:case"end":return r.stop()}}),r,null,[[2,9]])})));return function(t,e,n){return r.apply(this,arguments)}}())}post(t,e,r,n){var o=this;return new Wc(function(){var i=Vc(Js.mark((function i(a,u,c){var s,l;return Js.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=o.network.post(o.config.mediaUrl,null!=r?r:"media",e,t,n),c((()=>s.cancel())),i.prev=2,i.next=5,s;case 5:l=i.sent,a(new Bl(o.config,o.network,l.body)),i.next=12;break;case 9:i.prev=9,i.t0=i.catch(2),u(i.t0);case 12:case"end":return i.stop()}}),i,null,[[2,9]])})));return function(t,e,r){return i.apply(this,arguments)}}())}postFormData(t,e){var r=this;return new Wc(function(){var n=Vc(Js.mark((function n(o,i,a){var u,c;return Js.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=r.network.post(r.config.mediaUrl,null!=e?e:"media",t),a((()=>u.cancel())),n.prev=2,n.next=5,u;case 5:c=n.sent,o(new Bl(r.config,r.network,c.body)),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),i(n.t0);case 12:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(t,e,r){return n.apply(this,arguments)}}())}mediaSetGet(t){var e=this;return new Wc(function(){var r=Vc(Js.mark((function r(n,o,i){var a,u,c,s;return Js.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={command:"get",list:t.map((t=>({media_sid:t})))},u=e.network.post("".concat(e.config.mediaSetUrl),null,a,"application/json"),i((()=>u.cancel())),r.prev=3,r.next=6,u;case 6:c=r.sent,s=c.body.map((t=>{if(200===t.code)return new Bl(e.config,e.network,t.media_record);o("Failed to obtain detailed information about Media items (failed SID ".concat(t.media_record.sid,")"))})),n(s),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(3),o(r.t0);case 14:case"end":return r.stop()}}),r,null,[[3,11]])})));return function(t,e,n){return r.apply(this,arguments)}}())}mediaSetGetContentUrls(t){var e=this;return new Wc(function(){var r=Vc(Js.mark((function r(n,o,i){var a,u,c,s;return Js.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={command:"get",list:t.map((t=>({media_sid:t})))},u=e.network.post("".concat(e.config.mediaSetUrl),null,a,"application/json"),i((()=>u.cancel())),r.prev=3,r.next=6,u;case 6:c=r.sent,s=new Map,c.body.forEach((t=>{200===t.code?s.set(t.media_record.sid,t.media_record.links.content_direct_temporary):o("Failed to obtain detailed information about Media items (failed SID ".concat(t.media_record.sid,")"))})),n(s),r.next=15;break;case 12:r.prev=12,r.t0=r.catch(3),o(r.t0);case 15:case"end":return r.stop()}}),r,null,[[3,12]])})));return function(t,e,n){return r.apply(this,arguments)}}())}},r(hx,"version","0.6.3-rc.2"),hx),Ks([vx(fx),Xs("design:type",Function),Xs("design:paramtypes",[String]),Xs("design:returntype",void 0)],t.default.prototype,"updateToken",null),Ks([yx(fx),Xs("design:type",Function),Xs("design:paramtypes",[String]),Xs("design:returntype",Wc)],t.default.prototype,"get",null),t.default=Ks([dx(fx,fx,[fx,lx(null)],[px,"undefined"]),Xs("design:paramtypes",[String,String,Object,Object])],t.default),t.CancellablePromise=Wc,t.Client=t.default,t.McsClient=t.default,t.McsMedia=Bl,t.Media=Bl,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twilio/mcs-client",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3-rc.2",
|
|
4
4
|
"description": "Twilio Media Content Service client library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Twilio",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.17.0",
|
|
37
|
-
"@twilio/declarative-type-validator": "^0.2.
|
|
38
|
-
"@twilio/operation-retrier": "^4.0.
|
|
37
|
+
"@twilio/declarative-type-validator": "^0.2.3-rc.2",
|
|
38
|
+
"@twilio/operation-retrier": "^4.0.11-rc.2",
|
|
39
39
|
"core-js": "^3.17.3",
|
|
40
40
|
"loglevel": "^1.8.0",
|
|
41
41
|
"xmlhttprequest": "^1.8.0"
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@types/jest": "^26.0.23",
|
|
54
54
|
"@types/node": "^12.7.4",
|
|
55
55
|
"@types/qs": "6.9.4",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
57
|
-
"@typescript-eslint/parser": "^
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^5.51.0",
|
|
57
|
+
"@typescript-eslint/parser": "^5.51.0",
|
|
58
58
|
"async": "^3.1.0",
|
|
59
59
|
"async-test-tools": "^1.0.7",
|
|
60
60
|
"cheerio": "^1.0.0-rc.2",
|
package/CHANGELOG.md
DELETED
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
### [0.6.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.1-rc.1...@twilio/mcs-client@0.6.1) (2022-09-21)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### [0.6.1-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.5...@twilio/mcs-client@0.6.1-rc.1) (2022-09-21)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Bug Fixes
|
|
18
|
-
|
|
19
|
-
* Fix request error message ([9692911](https://github.com/twilio/rtd-sdk-monorepo-js/commit/96929111e9f83e6f09bce0bc8d8527f62ae051d9))
|
|
20
|
-
* Rollback twilsock type, update loglevel version ([d318c5c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/d318c5c0750096651ce1e01fef360aded070bb5c))
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## [0.6.0-rc.10](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.9...@twilio/mcs-client@0.6.0-rc.10) (2022-09-13)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### Bug Fixes
|
|
28
|
-
|
|
29
|
-
* Fix request error message ([7847cc3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/7847cc31a78fd8f099571a02dad8e2db1e412132))
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## [0.6.0-rc.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.8...@twilio/mcs-client@0.6.0-rc.9) (2022-08-23)
|
|
34
|
-
|
|
35
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## [0.6.0-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.7...@twilio/mcs-client@0.6.0-rc.8) (2022-07-25)
|
|
42
|
-
|
|
43
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## [0.6.0-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.6...@twilio/mcs-client@0.6.0-rc.7) (2022-07-20)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### Bug Fixes
|
|
53
|
-
|
|
54
|
-
* Rollback twilsock type, update loglevel version ([b8c4b2c](https://github.com/twilio/rtd-sdk-monorepo-js/commit/b8c4b2c174a8a2cf413b0ef6c719fd45e0cfce6d))
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
## [0.6.0-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.5...@twilio/mcs-client@0.6.0-rc.6) (2022-07-05)
|
|
59
|
-
|
|
60
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
## [0.6.0-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.4...@twilio/mcs-client@0.6.0-rc.5) (2022-05-18)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
### Reverts
|
|
70
|
-
|
|
71
|
-
* Revert "chore(release): Publish" ([03b27ca](https://github.com/twilio/rtd-sdk-monorepo-js/commit/03b27ca9830bc6aba2d37febebe6e53f7abddb2d))
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
## [0.6.0-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.3...@twilio/mcs-client@0.6.0-rc.4) (2022-05-04)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### Bug Fixes
|
|
79
|
-
|
|
80
|
-
* Add cancellable promise export from conversations ([04bd2fc](https://github.com/twilio/rtd-sdk-monorepo-js/commit/04bd2fc10ca1331fbcddf94a186eec351ea922f1))
|
|
81
|
-
* Fix onCancel storing in Cancellable promise ([2dfaccd](https://github.com/twilio/rtd-sdk-monorepo-js/commit/2dfaccd7a984cc3b608bada7cf649473a145fe8b))
|
|
82
|
-
* Fix promise cancelling retrier ([9b30ce2](https://github.com/twilio/rtd-sdk-monorepo-js/commit/9b30ce2750b7447f28e745513f7e1a29e2c48127))
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
## [0.6.0-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.2...@twilio/mcs-client@0.6.0-rc.3) (2022-05-02)
|
|
87
|
-
|
|
88
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
## [0.6.0-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.1...@twilio/mcs-client@0.6.0-rc.2) (2022-05-02)
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
### Bug Fixes
|
|
98
|
-
|
|
99
|
-
* Fix faulty type definitions by upgrading tooling ([b6d25ce](https://github.com/twilio/rtd-sdk-monorepo-js/commit/b6d25cecb08ab4e0d369430b90a786e1b275af91))
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
## [0.6.0-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.6.0-rc.0...@twilio/mcs-client@0.6.0-rc.1) (2022-03-16)
|
|
104
|
-
|
|
105
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
### [0.5.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.3-rc.0...@twilio/mcs-client@0.5.3) (2022-03-03)
|
|
112
|
-
|
|
113
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
### [0.5.3-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2...@twilio/mcs-client@0.5.3-rc.0) (2022-01-28)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
### Bug Fixes
|
|
123
|
-
|
|
124
|
-
* Fix media SID attachment ([e260ea7](https://github.com/twilio/rtd-sdk-monorepo-js/commit/e260ea7963328450043cbd4ade76cb9f230e1240))
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
### [0.5.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2-rc.4...@twilio/mcs-client@0.5.2) (2021-11-25)
|
|
129
|
-
|
|
130
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
### [0.5.2-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2-rc.3...@twilio/mcs-client@0.5.2-rc.4) (2021-11-12)
|
|
137
|
-
|
|
138
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
### [0.5.2-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2-rc.2...@twilio/mcs-client@0.5.2-rc.3) (2021-11-11)
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
### Bug Fixes
|
|
148
|
-
|
|
149
|
-
* Remove the post-install script in favour of the "react-native" option ([0fe352d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0fe352d45e50cec78e880affee589009055d5338))
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
### [0.5.2-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2-rc.1...@twilio/mcs-client@0.5.2-rc.2) (2021-11-10)
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
### Bug Fixes
|
|
157
|
-
|
|
158
|
-
* Fix the post-install script (yet again) ([c8cb1ee](https://github.com/twilio/rtd-sdk-monorepo-js/commit/c8cb1ee501d1c793497985592d2c1ae97162a219))
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
### [0.5.2-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.2-rc.0...@twilio/mcs-client@0.5.2-rc.1) (2021-11-09)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
### Bug Fixes
|
|
166
|
-
|
|
167
|
-
* Fix the post-install script to be runnable cross-platform ([a16eede](https://github.com/twilio/rtd-sdk-monorepo-js/commit/a16eede598dd3dbdda1997fbd2033fa2254f113f))
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
### [0.5.2-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1...@twilio/mcs-client@0.5.2-rc.0) (2021-10-26)
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
### Bug Fixes
|
|
175
|
-
|
|
176
|
-
* Bump Node required version to current LTS (14) ([ee272b3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ee272b350f4556a454a18a8aa192c37b54aaaeeb))
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
### [0.5.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.12...@twilio/mcs-client@0.5.1) (2021-10-19)
|
|
181
|
-
|
|
182
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### [0.5.1-rc.12](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.11...@twilio/mcs-client@0.5.1-rc.12) (2021-09-23)
|
|
189
|
-
|
|
190
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
### [0.5.1-rc.11](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.10...@twilio/mcs-client@0.5.1-rc.11) (2021-09-12)
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
### Bug Fixes
|
|
200
|
-
|
|
201
|
-
* Fix the removal of node-js libs from React Native bundles ([317a19a](https://github.com/twilio/rtd-sdk-monorepo-js/commit/317a19a013e3fe51b67864efab75459dafb312a8))
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
### [0.5.1-rc.10](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.9...@twilio/mcs-client@0.5.1-rc.10) (2021-09-12)
|
|
206
|
-
|
|
207
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
### [0.5.1-rc.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.8...@twilio/mcs-client@0.5.1-rc.9) (2021-09-12)
|
|
214
|
-
|
|
215
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
### [0.5.1-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.7...@twilio/mcs-client@0.5.1-rc.8) (2021-09-12)
|
|
222
|
-
|
|
223
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
### [0.5.1-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.6...@twilio/mcs-client@0.5.1-rc.7) (2021-09-12)
|
|
230
|
-
|
|
231
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
### [0.5.1-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.4...@twilio/mcs-client@0.5.1-rc.6) (2021-09-12)
|
|
238
|
-
|
|
239
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
### [0.5.1-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.4...@twilio/mcs-client@0.5.1-rc.5) (2021-09-12)
|
|
246
|
-
|
|
247
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
### [0.5.1-rc.4](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.3...@twilio/mcs-client@0.5.1-rc.4) (2021-09-10)
|
|
254
|
-
|
|
255
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
### [0.5.1-rc.3](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.2...@twilio/mcs-client@0.5.1-rc.3) (2021-09-10)
|
|
262
|
-
|
|
263
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
### [0.5.1-rc.2](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.1...@twilio/mcs-client@0.5.1-rc.2) (2021-09-09)
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
### Bug Fixes
|
|
273
|
-
|
|
274
|
-
* Remove require('xmlhttprequest') from browser bundles ([0399152](https://github.com/twilio/rtd-sdk-monorepo-js/commit/03991522ec0abc8b2e456673aa4256a96af0f6b7))
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
### [0.5.1-rc.1](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.1-rc.0...@twilio/mcs-client@0.5.1-rc.1) (2021-09-09)
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
### Bug Fixes
|
|
282
|
-
|
|
283
|
-
* Add a browser shim for Node's global ([0de6b0e](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0de6b0e5bab1270f894ba2c5cd00476f61dab498))
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### [0.5.1-rc.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.0...@twilio/mcs-client@0.5.1-rc.0) (2021-09-07)
|
|
288
|
-
|
|
289
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
## [0.5.0](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/mcs-client@0.5.0-rc.1...@twilio/mcs-client@0.5.0) (2021-08-04)
|
|
296
|
-
|
|
297
|
-
**Note:** Version bump only for package @twilio/mcs-client
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
## 0.5.0-rc.1 (2021-08-03)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
### Bug Fixes
|
|
307
|
-
|
|
308
|
-
* Fix rollup config paths ([ec3f6f3](https://github.com/twilio/rtd-sdk-monorepo-js/commit/ec3f6f362d85eedb94d2ad8330ce66d14175d8e4))
|
|
309
|
-
* Update packages versions ([812ec45](https://github.com/twilio/rtd-sdk-monorepo-js/commit/812ec45459d680ca1d0bdccdbae0bfaf4b6639cc))
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
## 0.5.0-rc.0 (2021-07-30)
|
|
314
|
-
|
|
315
|
-
**Note:** Version bump only for package @twilio/mcs-client
|