diff --git a/.gitignore b/.gitignore index e0c5b5a..c378830 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ tmp.js # Compiled build -dist # Logs logs diff --git a/dist/redux-bluetooth.webapp.js b/dist/redux-bluetooth.webapp.js new file mode 100644 index 0000000..d6bb94d --- /dev/null +++ b/dist/redux-bluetooth.webapp.js @@ -0,0 +1 @@ +!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=12)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BLUETOOTH_CONNECTING="@@bluetooth/CONNECTING",t.BLUETOOTH_CONNECTED="@@bluetooth/CONNECTED",t.BLUETOOTH_ERROR="@@bluetooth/ERROR",t.BLUETOOTH_READ="@@bluetooth/READ",t.BLUETOOTH_SYNC="@@bluetooth/SYNC",t.BLUETOOTH_SEND="@@bluetooth/SEND",t.BLUETOOTH_CONNECT_REQUEST="@@bluetooth/CONNECT_REQUEST",t.BLUETOOTH_SEND_REQUEST="@@bluetooth/SEND_REQUEST",t.BLUETOOTH_SYNC_REQUEST="@@bluetooth/SYNC_REQUEST"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.INIT="INIT",t.DISCONNECTED="DISCONNECTED",t.DISCONNECTING="DISCONNECTING",t.CONNECTING="CONNECTING",t.CONNECTED="CONNECTED",t.ERROR="ERROR"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(13),u=r(o),i=n(0),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),f=n(17),a=r(f);t.default=(0,a.default)(u.default,c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),u=function(e){return e&&e.__esModule?e:{default:e}}(o),i=n(0),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),f=u.default.sendAction,a=c.BLUETOOTH_CONNECT_REQUEST,l=c.BLUETOOTH_SEND_REQUEST,d=c.BLUETOOTH_SYNC_REQUEST,s=[a,l,d];t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return function(t){return function(n){return function(o){if("object"!==(void 0===o?"undefined":r(o)))return n(o);var u=o.type;return s.includes(u)&&o.request(t.dispatch),e.includes(u)&&t.dispatch(f(o)),n(o)}}}}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),u=r(o),i=n(1),c=r(i),f=n(18),a=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default,n=arguments[1],r=n.type,o=n.payload;switch(r){case u.BLUETOOTH_CONNECTING:return Object.assign({},t,{status:c.CONNECTING});case u.BLUETOOTH_CONNECTED:return Object.assign({},t,{status:c.CONNECTED});case u.BLUETOOTH_SYNC:return e?Object.assign({},t,{store:o}):t;default:return t}}}},function(e,t,n){"use strict";function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(e){if(d===setTimeout)return setTimeout(e,0);if((d===r||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function i(e){if(s===clearTimeout)return clearTimeout(e);if((s===o||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}function c(){b&&p&&(b=!1,p.length?v=p.concat(v):_=-1,v.length&&f())}function f(){if(!b){var e=u(c);b=!0;for(var t=v.length;t;){for(p=v,v=[];++_1)for(var n=1;n0?"Unexpected "+(i.length>1?"keys":"key")+' "'+i.join('", "')+'" found in '+u+'. Expected to find one of the known reducer keys instead: "'+o.join('", "')+'". Unexpected keys will be ignored.':void 0}function i(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:f.ActionTypes.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+f.ActionTypes.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function c(t){for(var n=Object.keys(t),r={},c=0;c0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1];if(d)throw d;if("production"!==e.env.NODE_ENV){var i=u(t,r,n,l);i&&(0,s.default)(i)}for(var c=!1,f={},y=0;y