diff --git a/dist/vue-socket.io-ext.esm.js b/dist/vue-socket.io-ext.esm.js index 66d3cf26..385a9fd1 100644 --- a/dist/vue-socket.io-ext.esm.js +++ b/dist/vue-socket.io-ext.esm.js @@ -1 +1 @@ -function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(n){for(var r=1;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e){return function(e){if(Array.isArray(e))return e}(e)||i(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?t-1:0),r=1;r0?u.set(t,n):u.delete(t)},_listeners:u=new Map(a)},v=function(e){return Object.keys(e._mutations)},h=function(e){return Object.keys(e._actions)},g=function(e){return e.split("/").pop()},m=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);var n;return 0===(e=Array.isArray(e)?e.map(function(e){return e.trim()}).filter(function(e){return e.length}).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=function(e){for(var t=!1,n=!1,r=!1,o=0;o1&&void 0!==arguments[1]?arguments[1]:{},i=t.store,a=r(t,["store"]),u=n({},j,{},a),s=p(u.eventToActionTransformer,b(u.actionPrefix)),f=p(u.eventToMutationTransformer,b(u.mutationPrefix));function m(e,t){if(i){var n=f(e),r=s(e),o=v(i),c=h(i),a=l(t);o.filter(function(e){return g(e)===n}).forEach(function(e){return i.commit(e,a)}),c.filter(function(e){return g(e)===r}).forEach(function(e){return i.dispatch(e,a)})}}function O(){y(e,"onevent",function(e){var t=o(e.data),n=t[0],r=t.slice(1);d.emit.apply(d,[n].concat(c(r))),m(n,r)}),k.forEach(function(t){e.on(t,function(){for(var e=arguments.length,n=new Array(e),r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e){return function(e){if(Array.isArray(e))return e}(e)||i(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?t-1:0),r=1;r0?u.set(t,n):u.delete(t)},_listeners:u=new Map(a)},m=function(e){return Object.keys(e._mutations)},O=function(e){return Object.keys(e._actions)},w=function(e){return e.split("/").pop()},j=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);var n;return 0===(e=Array.isArray(e)?e.map(function(e){return e.trim()}).filter(function(e){return e.length}).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=function(e){for(var t=!1,n=!1,r=!1,o=0;o1&&void 0!==arguments[1]?arguments[1]:{},i=t.store,a=r(t,["store"]),u=n({},A,{},a),s=b(u.eventToActionTransformer,y(u.actionPrefix)),f=b(u.eventToMutationTransformer,y(u.mutationPrefix));function l(e,t){if(i){var n=f(e),r=s(e),o=m(i),c=O(i),a=p(t);o.filter(function(e){return w(e)===n}).forEach(function(e){return i.commit(e,a)}),c.filter(function(e){return w(e)===r}).forEach(function(e){return i.dispatch(e,a)})}}function h(){d(e,"onevent",function(e){var t=o(e.data),n=t[0],r=t.slice(1);g.emit.apply(g,[n].concat(c(r))),l(n,r)}),P.forEach(function(t){e.on(t,function(){for(var e=arguments.length,n=new Array(e),r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e){return function(e){if(Array.isArray(e))return e}(e)||a(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?t-1:0),r=1;r0?s.set(t,n):s.delete(t)},_listeners:s=new Map(u)},h=function(e){return Object.keys(e._mutations)},m=function(e){return Object.keys(e._actions)},g=function(e){return e.split("/").pop()},O=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);var n;return 0===(e=Array.isArray(e)?e.map(function(e){return e.trim()}).filter(function(e){return e.length}).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=function(e){for(var t=!1,n=!1,r=!1,o=0;o1&&void 0!==arguments[1]?arguments[1]:{},n=t.store,a=o(t,["store"]),u=r({},k,{},a),s=b(u.eventToActionTransformer,d(u.actionPrefix)),f=b(u.eventToMutationTransformer,d(u.mutationPrefix));function l(e,t){if(n){var r=f(e),o=s(e),c=h(n),i=m(n),a=p(t);c.filter(function(e){return g(e)===r}).forEach(function(e){return n.commit(e,a)}),i.filter(function(e){return g(e)===o}).forEach(function(e){return n.dispatch(e,a)})}}function O(){y(e,"onevent",function(e){var t=c(e.data),n=t[0],r=t.slice(1);v.emit.apply(v,[n].concat(i(r))),l(n,r)}),_.forEach(function(t){e.on(t,function(){for(var e=arguments.length,n=new Array(e),r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e){return function(e){if(Array.isArray(e))return e}(e)||u(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?t-1:0),r=1;r0?s.set(t,n):s.delete(t)},_listeners:s=new Map(a)},g=function(e){return Object.keys(e._mutations)},O=function(e){return Object.keys(e._actions)},w=function(e){return e.split("/").pop()},j=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);var n;return 0===(e=Array.isArray(e)?e.map(function(e){return e.trim()}).filter(function(e){return e.length}).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=function(e){for(var t=!1,n=!1,r=!1,o=0;o1&&void 0!==arguments[1]?arguments[1]:{},n=t.store,u=o(t,["store"]),a=r({},A,{},u),s=d(a.eventToActionTransformer,y(a.actionPrefix)),f=d(a.eventToMutationTransformer,y(a.mutationPrefix));function l(e,t){if(n){var r=f(e),o=s(e),c=g(n),i=O(n),u=b(t);c.filter(function(e){return w(e)===r}).forEach(function(e){return n.commit(e,u)}),i.filter(function(e){return w(e)===o}).forEach(function(e){return n.dispatch(e,u)})}}function p(){h(e,"onevent",function(e){var t=c(e.data),n=t[0],r=t.slice(1);m.emit.apply(m,[n].concat(i(r))),l(n,r)}),P.forEach(function(t){e.on(t,function(){for(var e=arguments.length,n=new Array(e),r=0;r