pubo-web 1.0.146 → 1.0.149

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.
Files changed (2) hide show
  1. package/dist/pubo-web.js +1 -1
  2. package/package.json +3 -3
package/dist/pubo-web.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["pubo-web"]=e():t["pubo-web"]=e()}(this,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.r(e),t.d(e,{DragMethod:()=>M,IndexedStorage:()=>B,WebStorage:()=>f,WebsocketClient:()=>S,blob2base64:()=>o,blob2file:()=>s,blob2text:()=>i,downloadFile:()=>u,getCookie:()=>$,getCookieValue:()=>R,loadScript:()=>r,pickFiles:()=>j,setCookieItem:()=>J});var r=function(t,e){return void 0===e&&(e={}),new Promise((function(r){var i=function(){for(var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(document.getElementsByTagName("script"));!(e=r()).done;){var i=e.value;if(i.src===t)return i}return null}(),o=i;if(i){if("complete"===i._state)return r(t)}else o=document.createElement("script");for(var s=0,u=Object.keys(e);s<u.length;s++){var a=u[s];o[a]=e[a]}return o.src=t,o.addEventListener("load",(function e(){r(t),o.removeEventListener("load",e),o._state="complete"})),document.body.appendChild(o),"success"}))},i=function(t){return new Promise((function(e){var n=new FileReader;n.onload=function(t){return e(t.target.result)},n.readAsText(t)}))},o=function(t){return new Promise((function(e,n){var r=new FileReader;t?(r.onload=function(t){return e(t.target.result)},r.onabort=function(){return n()},r.readAsDataURL(t)):n("文件爲空!")}))},s=function(t,e,n){return new File(t,e,{type:n})},u=function(t,e){var n=document.createElement("a");n.href=t,e&&(n.download=e),n.style.position="fixed",n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n)};function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a.apply(this,arguments)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?i:String(i)),r)}var i}var f=function(){function t(t){this._key=void 0,this.storage=void 0,this.zip=void 0;var e=t.type,n=void 0===e?"sessionStorage":e,r=t.key;this._key=r,this.storage=window[n],this.zip=t.zip}var e,n,r=t.prototype;return r.merge=function(t){var e=this.state;this.state=a({},e,t)},r.clear=function(){this.storage.removeItem(this._key)},e=t,(n=[{key:"state",get:function(){var t=this.storage.getItem(this._key);return this.zip&&t&&(t=this.zip.inflate(t)),t?JSON.parse(t):null},set:function(t){var e=JSON.stringify(t);this.zip&&(e=this.zip.deflate(e)),this.storage.setItem(this._key,e)}},{key:"key",get:function(){return this._key}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function h(){}function l(t){var e=t();if(e&&e.then)return e.then(h)}var v="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function d(t,e,n){if(!t.s){if(n instanceof p){if(!n.s)return void(n.o=d.bind(null,t,e));1&e&&(e=n.s),n=n.v}if(n&&n.then)return void n.then(d.bind(null,t,e),d.bind(null,t,2));t.s=e,t.v=n;var r=t.o;r&&r(t)}}var p=function(){function t(){}return t.prototype.then=function(e,n){var r=new t,i=this.s;if(i){var o=1&i?e:n;if(o){try{d(r,1,o(this.v))}catch(t){d(r,2,t)}return r}return this}return this.o=function(t){try{var i=t.v;1&t.s?d(r,1,e?e(i):i):n?d(r,1,n(i)):d(r,2,i)}catch(t){d(r,2,t)}},r},t}();function y(t){return t instanceof p&&1&t.s}function b(){return b=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b.apply(this,arguments)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var g=function(){function t(){this.state={},this.ids={}}var e=t.prototype;return e.on=function(t,e){if(this.state[t]||(this.state[t]=[]),"function"!=typeof e)throw new Error("第二个参数必须为function!");var n=this.state[t].push(e)-1,r=function(t){void 0===t&&(t=8);var e=function(t){return Math.random().toString(32).slice(2,2+t)};if(t<=8)return e(t);for(var n="",r=0;r<=t;r+=8)n+=e(t-r>8?8:t-r);return n}(40);return this.ids[r]={event:t,index:n},r},e.cancel=function(t){var e=this;if(t){var n=this.ids[t]||{},r=n.event,i=n.index;r&&Array.isArray(this.state[r])&&(this.state[r].splice(i,1),delete this.ids[t],Object.keys(this.ids).forEach((function(t){e.ids[t].event===r&&e.ids[t].index>i&&(e.ids[t].index=e.ids[t].index-1)})))}else this.clear()},e.clear=function(){this.state.length=0},e.emit=function(t,e){if(Array.isArray(this.state[t]))for(var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.state[t]);!(n=r()).done;){var i=n.value;"function"==typeof i&&i(e)}},e.emitSync=function(t,e){try{var n=this;return(r=l((function(){if(Array.isArray(n.state[t]))return function(t){if(t&&t.then)return t.then(h)}(function(t,e,n){if("function"==typeof t[v]){var r,i,o,s=t[v]();if(function t(u){try{for(;!((r=s.next()).done||n&&n());)if((u=e(r.value))&&u.then){if(!y(u))return void u.then(t,o||(o=d.bind(null,i=new p,2)));u=u.v}i?d(i,1,u):i=u}catch(t){d(i||(i=new p),2,t)}}(),s.return){var u=function(t){try{r.done||s.return()}catch(t){}return t};if(i&&i.then)return i.then(u,(function(t){throw u(t)}));u()}return i}if(!("length"in t))throw new TypeError("Object is not iterable");for(var a=[],c=0;c<t.length;c++)a.push(t[c]);return function(t,e,n){var r,i,o=-1;return function s(u){try{for(;++o<t.length&&(!n||!n());)if((u=e(o))&&u.then){if(!y(u))return void u.then(s,i||(i=d.bind(null,r=new p,2)));u=u.v}r?d(r,1,u):r=u}catch(t){d(r||(r=new p),2,t)}}(),r}(a,(function(t){return e(a[t])}),n)}(n.state[t],(function(t){return l((function(){if("function"==typeof t)return function(t,e){return t&&t.then?t.then(h):Promise.resolve()}(t(e))}))})))})))&&r.then||(r=Promise.resolve(r)),r}catch(t){return Promise.reject(t)}var r},e.clone=function(){return{state:b({},this.state),ids:b({},this.ids)}},e.restore=function(t){this.state=t.state,this.ids=t.ids},t}();function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?i:String(i)),r)}var i}var S=function(){function t(t){var e=t.url;this.client=null,this._status=0,this.url=void 0,this.emitter=new g,this.url=e}var e,n,r=t.prototype;return r.reconnect=function(){var t=this;this.client&&this.client.close(),this.client=null,3===this._status&&setTimeout((function(){return t.connect()}),1e3)},r.onClose=function(){2!==this._status&&(this._status=3),this.reconnect()},r.onMessage=function(t){this.emitter.emit("message",t.data)},r.connect=function(){var t=this;this.client||(this.client=new WebSocket(this.url),this.client.onclose=this.onClose.bind(this),this.client.onmessage=this.onMessage.bind(this),this.client.onopen=function(){t.emitter.emit("connect"),t._status=1})},r.close=function(){this._status=2,this.client&&this.client.close(),this.client=null},r.send=function(t,e){var n;void 0===e&&(e=!1);var r=t;e&&(r=JSON.stringify(t)),null==(n=this.client)||n.send(r)},e=t,(n=[{key:"status",get:function(){return this._status}}])&&w(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),M=function(){function t(t){var e=void 0===t?{}:t,n=e.key,r=void 0===n?"":n,i=e.onMove,o=e.onMoveEnd;this.key="",this.cache={pageX:0,pageY:0,dragging:!1},this.onMouseMove=void 0,this.onMouseUp=void 0,this.onMouseDown=void 0,this.onTouchStart=void 0,this.onMove=void 0,this.onMoveEnd=void 0,this.key=r,this.onMouseDown=this._onMouseDown.bind(this),this.onTouchStart=this._onMouseDown.bind(this),this.onMouseMove=this._onMouseMove.bind(this),this.onMouseUp=this._onMouseUp.bind(this),this.onMove=i,this.onMoveEnd=o}var e=t.prototype;return e._onMouseMove=function(t){var e,n,r,i;if("function"==typeof this.onMove){t.preventDefault?t.preventDefault():t.returnValue=!1;var o=null!=(e=t.pageX)?e:null==(n=t.touches[0])?void 0:n.pageX,s=null!=(r=t.pageY)?r:null==(i=t.touches[0])?void 0:i.pageY;this.onMove({offsetX:o-this.cache.pageX,offsetY:s-this.cache.pageY,pageX:o,pageY:s,startX:this.cache.pageX,startY:this.cache.pageY,key:this.key}),this.cache.pageX=o,this.cache.pageY=s}},e.clearListener=function(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("touchend",this.onMouseUp)},e._onMouseUp=function(){this.clearListener(),this.cache.dragging=!1,"function"==typeof this.onMoveEnd&&this.onMoveEnd()},e._onMouseDown=function(t){var e,n,r,i;if(t.preventDefault&&t.pageX?t.preventDefault():t.returnValue=!1,"function"==typeof this.onMove&&!this.cache.dragging){this.clearListener();var o=null!=(e=t.pageX)?e:null==(n=t.touches[0])?void 0:n.pageX,s=null!=(r=t.pageY)?r:null==(i=t.touches[0])?void 0:i.pageY;this.cache.dragging=!0,this.cache.pageX=o,this.cache.pageY=s,window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onMouseMove,{passive:!1}),window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("touchend",this.onMouseUp,{passive:!1})}},t}(),j=function(){return new Promise((function(t,e){var n=document.createElement("input"),r=!1;n.type="file",n.style.visibility="hidden",n.style.position="fixed",n.style.top="0px",n.style.zIndex="-1",window.addEventListener("focus",(function t(){document.body.removeChild(n),window.removeEventListener("focus",t),setTimeout((function(){r||e("no files picked")}),1e3)})),n.onchange=function(e){r=e.target.files.length>0,t(e.target.files)},document.body.appendChild(n),n.click()}))};function P(){}var k,O=(k=function(t){return(e=new Promise((function(e){return setTimeout(e,t)})))&&e.then?e.then(P):Promise.resolve();var e},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return Promise.resolve(k.apply(this,t))}catch(t){return Promise.reject(t)}});function E(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}function _(){}var A="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function x(t,e,n){if(!t.s){if(n instanceof T){if(!n.s)return void(n.o=x.bind(null,t,e));1&e&&(e=n.s),n=n.v}if(n&&n.then)return void n.then(x.bind(null,t,e),x.bind(null,t,2));t.s=e,t.v=n;var r=t.o;r&&r(t)}}var T=function(){function t(){}return t.prototype.then=function(e,n){var r=new t,i=this.s;if(i){var o=1&i?e:n;if(o){try{x(r,1,o(this.v))}catch(t){x(r,2,t)}return r}return this}return this.o=function(t){try{var i=t.v;1&t.s?x(r,1,e?e(i):i):n?x(r,1,n(i)):x(r,2,i)}catch(t){x(r,2,t)}},r},t}();function I(t){return t instanceof T&&1&t.s}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var C=function(){function t(t,e,n){this.name=void 0,this.version=void 0,this.indexedDB=self.indexedDB,this.tables=void 0,this.db=void 0,this.transaction=void 0,this.get=this.createTransaction((function(t,e){return t.get(e)})),this.getAll=this.createTransaction((function(t){return t.getAll()})),this.delete=this.createTransaction((function(t,e){return t.delete(e)})),this.put=this.createTransaction((function(t,e){return t.put(e)})),this.name=t,this.version=e,this.tables=n}var e=t.prototype;return e.open=function(){var t=this;return new Promise((function(e,n){var r,i=null==(r=t.indexedDB)?void 0:r.open(t.name,t.version);i.onupgradeneeded=E((function(e){var n,r=e.target.result;t.transaction=e.target.transaction,t.transaction.oncomplete=E((function(){return t.transaction=null,function(t){if(t&&t.then)return t.then(_)}(function(t,e,n){if("function"==typeof t[A]){var r,i,o,s=t[A]();if(function t(u){try{for(;!((r=s.next()).done||n&&n());)if((u=e(r.value))&&u.then){if(!I(u))return void u.then(t,o||(o=x.bind(null,i=new T,2)));u=u.v}i?x(i,1,u):i=u}catch(t){x(i||(i=new T),2,t)}}(),s.return){var u=function(t){try{r.done||s.return()}catch(t){}return t};if(i&&i.then)return i.then(u,(function(t){throw u(t)}));u()}return i}if(!("length"in t))throw new TypeError("Object is not iterable");for(var a=[],c=0;c<t.length;c++)a.push(t[c]);return function(t,e,n){var r,i,o=-1;return function s(u){try{for(;++o<t.length&&(!n||!n());)if((u=e(o))&&u.then){if(!I(u))return void u.then(s,i||(i=x.bind(null,r=new T,2)));u=u.v}r?x(r,1,u):r=u}catch(t){x(r||(r=new T),2,t)}}(),r}(a,(function(t){return e(a[t])}),n)}(t.tables,(function(e){return function(n){var r=function(){if(e.default)return function(t,e){if(!void 0)return t&&t.then?t.then(_):Promise.resolve()}(t.put(e.name,e.default))}();if(r&&r.then)return r.then(_)}()})))}));for(var i,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.tables);!(i=o()).done;){var s=i.value;r.objectStoreNames.contains(s.name)||r.createObjectStore(s.name,s.options||{keyPath:"_id",autoIncrement:!0})}return t.db=r,n&&n.then||(n=Promise.resolve(n)),n})),i.onsuccess=function(){t.db||(t.db=i.result),e("success")},i.onerror=function(t){console.error("indexed db connect error: ",t),n(t)}}))},e.createTransaction=function(t){var e=this;return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return new Promise((function(r,o){if(e.db){var s=e.db.transaction([n],"readwrite").objectStore(n),u=t.apply(void 0,[s].concat(i));u.onerror=function(t){o(t)},u.onsuccess=function(){r(u.result)}}else o("not connect")}))}},t}();function D(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}function X(){}function U(t,e,n){if(!t.s){if(n instanceof Y){if(!n.s)return void(n.o=U.bind(null,t,e));1&e&&(e=n.s),n=n.v}if(n&&n.then)return void n.then(U.bind(null,t,e),U.bind(null,t,2));t.s=e,t.v=n;var r=t.o;r&&r(t)}}var Y=function(){function t(){}return t.prototype.then=function(e,n){var r=new t,i=this.s;if(i){var o=1&i?e:n;if(o){try{U(r,1,o(this.v))}catch(t){U(r,2,t)}return r}return this}return this.o=function(t){try{var i=t.v;1&t.s?U(r,1,e?e(i):i):n?U(r,1,n(i)):U(r,2,i)}catch(t){U(r,2,t)}},r},t}();function z(t){return t instanceof Y&&1&t.s}function F(){return F=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F.apply(this,arguments)}var N=function(){function t(t,e){this.utils=void 0,this.store=void 0,this.utils=t,this.store=e}var e=t.prototype;return e.getState=function(){try{return D(this.utils.get(this.store,1))}catch(t){return Promise.reject(t)}},e.setState=function(t){this.utils.put(this.store,F({},t,{_id:1}))},e.merge=function(t){try{var e=this;return D(e.getState(),(function(n){e.setState=F({},n,t,{_id:1})}))}catch(t){return Promise.reject(t)}},t}(),B=function(){function t(t){var e=t.name,n=t.version,r=t.tables;this.name=void 0,this.version=void 0,this.utils=void 0,this._cache={},this.tables=[],this.connected=!1,this.connecting=!1,this.name=e,this.version=n,this.tables=null!=r?r:[]}var e=t.prototype;return e.register=function(t){var e;(e=this.tables).push.apply(e,t)},e.connect=function(){try{var t=!1,e=this;return e.connected?D():D((n=function(){if(e.connecting)return n=function(t,e,n){for(var r;;){var i=t();if(z(i)&&(i=i.v),!i)return o;if(i.then){r=0;break}var o=n();if(o&&o.then){if(!z(o)){r=1;break}o=o.s}if(e){var s=e();if(s&&s.then&&!z(s)){r=2;break}}}var u=new Y,a=U.bind(null,u,2);return(0===r?i.then(f):1===r?o.then(c):s.then(h)).then(void 0,a),u;function c(r){o=r;do{if(e&&(s=e())&&s.then&&!z(s))return void s.then(h).then(void 0,a);if(!(i=t())||z(i)&&!i.v)return void U(u,1,o);if(i.then)return void i.then(f).then(void 0,a);z(o=n())&&(o=o.v)}while(!o||!o.then);o.then(c).then(void 0,a)}function f(t){t?(o=n())&&o.then?o.then(c).then(void 0,a):c(o):U(u,1,o)}function h(){(i=t())?i.then?i.then(f).then(void 0,a):f(i):U(u,1,o)}}((function(){return!e.connecting}),void 0,(function(){return function(t,e){return t&&t.then?t.then(X):Promise.resolve()}(O(100))})),r=function(){t=!0},n&&n.then?n.then(r):r();var n,r},r=function(n){return t?n:(e.connecting=!0,e.utils=new C(e.name,e.version,e.tables),D(e.utils.open(),(function(){e.connected=!0,e.connecting=!1})))},(i=n())&&i.then?i.then(r):r(i)))}catch(t){return Promise.reject(t)}var n,r,i},e.get=function(t){return!this._cache[t]&&this.utils&&(this._cache[t]=new N(this.utils,t)),this._cache[t]},t}(),R=function(t){var e=new RegExp("(^| )"+t+"=([^;]*)(;|$)").exec(document.cookie);return e?e[2]:""},$=function(){var t={};return document.cookie?(document.cookie.split(";").forEach((function(e){var n=e.split("="),r=n[0],i=n[1];t[r]=i})),t):t},J=function(t,e){document.cookie=t+"="+e};return e})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["pubo-web"]=e():t["pubo-web"]=e()}(this,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.r(e),t.d(e,{DragMethod:()=>M,IndexedStorage:()=>B,WebStorage:()=>f,WebsocketClient:()=>S,blob2base64:()=>o,blob2file:()=>s,blob2text:()=>i,downloadFile:()=>u,getCookie:()=>$,getCookieValue:()=>R,loadScript:()=>r,pickFiles:()=>j,setCookieItem:()=>J});var r=function(t,e){return void 0===e&&(e={}),new Promise((function(r){var i=function(){for(var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(document.getElementsByTagName("script"));!(e=r()).done;){var i=e.value;if(i.src===t)return i}return null}(),o=i;if(i){if("complete"===i._state)return r(t)}else o=document.createElement("script");for(var s=0,u=Object.keys(e);s<u.length;s++){var a=u[s];o[a]=e[a]}return o.src=t,o.addEventListener("load",(function e(){r(t),o.removeEventListener("load",e),o._state="complete"})),document.body.appendChild(o),"success"}))},i=function(t){return new Promise((function(e){var n=new FileReader;n.onload=function(t){return e(t.target.result)},n.readAsText(t)}))},o=function(t){return new Promise((function(e,n){var r=new FileReader;t?(r.onload=function(t){return e(t.target.result)},r.onabort=function(){return n()},r.readAsDataURL(t)):n("文件爲空!")}))},s=function(t,e,n){return new File(t,e,{type:n})},u=function(t,e){var n=document.createElement("a");n.href=t,e&&(n.download=e),n.style.position="fixed",n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n)};function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a.apply(this,arguments)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?i:String(i)),r)}var i}var f=function(){function t(t){this._key=void 0,this.storage=void 0,this.zip=void 0;var e=t.type,n=void 0===e?"sessionStorage":e,r=t.key;this._key=r,this.storage=window[n],this.zip=t.zip}var e,n,r=t.prototype;return r.merge=function(t){var e=this.state;this.state=a({},e,t)},r.clear=function(){this.storage.removeItem(this._key)},e=t,(n=[{key:"state",get:function(){var t=this.storage.getItem(this._key);return this.zip&&t&&(t=this.zip.inflate(t)),t?JSON.parse(t):null},set:function(t){var e=JSON.stringify(t);this.zip&&(e=this.zip.deflate(e)),this.storage.setItem(this._key,e)}},{key:"key",get:function(){return this._key}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function h(){}function l(t){var e=t();if(e&&e.then)return e.then(h)}var v="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function d(t,e,n){if(!t.s){if(n instanceof p){if(!n.s)return void(n.o=d.bind(null,t,e));1&e&&(e=n.s),n=n.v}if(n&&n.then)return void n.then(d.bind(null,t,e),d.bind(null,t,2));t.s=e,t.v=n;var r=t.o;r&&r(t)}}var p=function(){function t(){}return t.prototype.then=function(e,n){var r=new t,i=this.s;if(i){var o=1&i?e:n;if(o){try{d(r,1,o(this.v))}catch(t){d(r,2,t)}return r}return this}return this.o=function(t){try{var i=t.v;1&t.s?d(r,1,e?e(i):i):n?d(r,1,n(i)):d(r,2,i)}catch(t){d(r,2,t)}},r},t}();function y(t){return t instanceof p&&1&t.s}function b(){return b=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b.apply(this,arguments)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var g=function(){function t(){this.state={},this.ids={}}var e=t.prototype;return e.on=function(t,e){if(this.state[t]||(this.state[t]=[]),"function"!=typeof e)throw new Error("第二个参数必须为function!");var n=this.state[t].push(e)-1,r=function(t){void 0===t&&(t=8);var e=function(t){return Math.random().toString(32).slice(2,2+t)};if(t<=8)return e(t);for(var n="",r=0;r<=t;r+=8)n+=e(t-r>8?8:t-r);return n}(40);return this.ids[r]={event:t,index:n},r},e.cancel=function(t){var e=this;if(t){var n=this.ids[t]||{},r=n.event,i=n.index;r&&Array.isArray(this.state[r])&&(this.state[r].splice(i,1),delete this.ids[t],Object.keys(this.ids).forEach((function(t){e.ids[t].event===r&&e.ids[t].index>i&&(e.ids[t].index=e.ids[t].index-1)})))}else this.clear()},e.clear=function(){this.state.length=0},e.emit=function(t,e){if(Array.isArray(this.state[t]))for(var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.state[t]);!(n=r()).done;){var i=n.value;"function"==typeof i&&i(e)}},e.emitSync=function(t,e){try{var n=this;return(r=l((function(){if(Array.isArray(n.state[t]))return function(t){if(t&&t.then)return t.then(h)}(function(t,e,n){if("function"==typeof t[v]){var r,i,o,s=t[v]();if(function t(u){try{for(;!((r=s.next()).done||n&&n());)if((u=e(r.value))&&u.then){if(!y(u))return void u.then(t,o||(o=d.bind(null,i=new p,2)));u=u.v}i?d(i,1,u):i=u}catch(t){d(i||(i=new p),2,t)}}(),s.return){var u=function(t){try{r.done||s.return()}catch(t){}return t};if(i&&i.then)return i.then(u,(function(t){throw u(t)}));u()}return i}if(!("length"in t))throw new TypeError("Object is not iterable");for(var a=[],c=0;c<t.length;c++)a.push(t[c]);return function(t,e,n){var r,i,o=-1;return function s(u){try{for(;++o<t.length&&(!n||!n());)if((u=e(o))&&u.then){if(!y(u))return void u.then(s,i||(i=d.bind(null,r=new p,2)));u=u.v}r?d(r,1,u):r=u}catch(t){d(r||(r=new p),2,t)}}(),r}(a,(function(t){return e(a[t])}),n)}(n.state[t],(function(t){return l((function(){if("function"==typeof t)return function(t,e){return t&&t.then?t.then(h):Promise.resolve()}(t(e))}))})))})))&&r.then||(r=Promise.resolve(r)),r}catch(t){return Promise.reject(t)}var r},e.clone=function(){return{state:b({},this.state),ids:b({},this.ids)}},e.restore=function(t){this.state=t.state,this.ids=t.ids},t}();function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key))?i:String(i)),r)}var i}var S=function(){function t(t){var e=t.url;this.client=null,this._status=0,this.url=void 0,this.emitter=new g,this.url=e}var e,n,r=t.prototype;return r.reconnect=function(){var t=this;this.client&&this.client.close(),this.client=null,3===this._status&&setTimeout((function(){return t.connect()}),1e3)},r.onClose=function(){2!==this._status&&(this._status=3),this.reconnect()},r.onMessage=function(t){this.emitter.emit("message",t.data)},r.connect=function(){var t=this;this.client||(this.client=new WebSocket(this.url),this.client.onclose=this.onClose.bind(this),this.client.onmessage=this.onMessage.bind(this),this.client.onopen=function(){t.emitter.emit("connect"),t._status=1})},r.close=function(){this._status=2,this.client&&this.client.close(),this.client=null},r.send=function(t,e){var n;void 0===e&&(e=!1);var r=t;e&&(r=JSON.stringify(t)),null==(n=this.client)||n.send(r)},e=t,(n=[{key:"status",get:function(){return this._status}}])&&w(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),M=function(){function t(t){var e=void 0===t?{}:t,n=e.key,r=void 0===n?"":n,i=e.onMove,o=e.onMoveEnd;this.key="",this.cache={pageX:0,pageY:0,dragging:!1},this.onMouseMove=void 0,this.onMouseUp=void 0,this.onMouseDown=void 0,this.onTouchStart=void 0,this.onMove=void 0,this.onMoveEnd=void 0,this.key=r,this.onMouseDown=this._onMouseDown.bind(this),this.onTouchStart=this._onMouseDown.bind(this),this.onMouseMove=this._onMouseMove.bind(this),this.onMouseUp=this._onMouseUp.bind(this),this.onMove=i,this.onMoveEnd=o}var e=t.prototype;return e._onMouseMove=function(t){var e,n,r,i;if("function"==typeof this.onMove){t.preventDefault?t.preventDefault():t.returnValue=!1;var o=null!=(e=t.pageX)?e:null==(n=t.touches[0])?void 0:n.pageX,s=null!=(r=t.pageY)?r:null==(i=t.touches[0])?void 0:i.pageY;this.onMove({offsetX:o-this.cache.pageX,offsetY:s-this.cache.pageY,pageX:o,pageY:s,startX:this.cache.pageX,startY:this.cache.pageY,key:this.key}),this.cache.pageX=o,this.cache.pageY=s}},e.clearListener=function(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("touchend",this.onMouseUp)},e._onMouseUp=function(){this.clearListener(),this.cache.dragging=!1,"function"==typeof this.onMoveEnd&&this.onMoveEnd()},e._onMouseDown=function(t){var e,n,r,i;if(t.preventDefault&&t.pageX?t.preventDefault():t.returnValue=!1,"function"==typeof this.onMove&&!this.cache.dragging){this.clearListener();var o=null!=(e=t.pageX)?e:null==(n=t.touches[0])?void 0:n.pageX,s=null!=(r=t.pageY)?r:null==(i=t.touches[0])?void 0:i.pageY;this.cache.dragging=!0,this.cache.pageX=o,this.cache.pageY=s,window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onMouseMove,{passive:!1}),window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("touchend",this.onMouseUp,{passive:!1})}},t}(),j=function(){return new Promise((function(t,e){var n=document.createElement("input"),r=!1;n.type="file",n.style.visibility="hidden",n.style.position="fixed",n.style.top="0px",n.style.zIndex="-1",window.addEventListener("focus",(function t(){document.body.removeChild(n),window.removeEventListener("focus",t),setTimeout((function(){r||e("no files picked")}),1e3)})),n.onchange=function(e){r=e.target.files.length>0,t(e.target.files)},document.body.appendChild(n),n.click()}))};function P(){}var k,O=(k=function(t){return(e=new Promise((function(e){var n=setTimeout((function(){e(),clearTimeout(n),n=null}),t)})))&&e.then?e.then(P):Promise.resolve();var e},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return Promise.resolve(k.apply(this,t))}catch(t){return Promise.reject(t)}});function E(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}function _(){}var A="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function x(t,e,n){if(!t.s){if(n instanceof T){if(!n.s)return void(n.o=x.bind(null,t,e));1&e&&(e=n.s),n=n.v}if(n&&n.then)return void n.then(x.bind(null,t,e),x.bind(null,t,2));t.s=e,t.v=n;var r=t.o;r&&r(t)}}var T=function(){function t(){}return t.prototype.then=function(e,n){var r=new t,i=this.s;if(i){var o=1&i?e:n;if(o){try{x(r,1,o(this.v))}catch(t){x(r,2,t)}return r}return this}return this.o=function(t){try{var i=t.v;1&t.s?x(r,1,e?e(i):i):n?x(r,1,n(i)):x(r,2,i)}catch(t){x(r,2,t)}},r},t}();function I(t){return t instanceof T&&1&t.s}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var C=function(){function t(t,e,n){this.name=void 0,this.version=void 0,this.indexedDB=self.indexedDB,this.tables=void 0,this.db=void 0,this.transaction=void 0,this.get=this.createTransaction((function(t,e){return t.get(e)})),this.getAll=this.createTransaction((function(t){return t.getAll()})),this.delete=this.createTransaction((function(t,e){return t.delete(e)})),this.put=this.createTransaction((function(t,e){return t.put(e)})),this.name=t,this.version=e,this.tables=n}var e=t.prototype;return e.open=function(){var t=this;return new Promise((function(e,n){var r,i=null==(r=t.indexedDB)?void 0:r.open(t.name,t.version);i.onupgradeneeded=E((function(e){var n,r=e.target.result;t.transaction=e.target.transaction,t.transaction.oncomplete=E((function(){return t.transaction=null,function(t){if(t&&t.then)return t.then(_)}(function(t,e,n){if("function"==typeof t[A]){var r,i,o,s=t[A]();if(function t(u){try{for(;!((r=s.next()).done||n&&n());)if((u=e(r.value))&&u.then){if(!I(u))return void u.then(t,o||(o=x.bind(null,i=new T,2)));u=u.v}i?x(i,1,u):i=u}catch(t){x(i||(i=new T),2,t)}}(),s.return){var u=function(t){try{r.done||s.return()}catch(t){}return t};if(i&&i.then)return i.then(u,(function(t){throw u(t)}));u()}return i}if(!("length"in t))throw new TypeError("Object is not iterable");for(var a=[],c=0;c<t.length;c++)a.push(t[c]);return function(t,e,n){var r,i,o=-1;return function s(u){try{for(;++o<t.length&&(!n||!n());)if((u=e(o))&&u.then){if(!I(u))return void u.then(s,i||(i=x.bind(null,r=new T,2)));u=u.v}r?x(r,1,u):r=u}catch(t){x(r||(r=new T),2,t)}}(),r}(a,(function(t){return e(a[t])}),n)}(t.tables,(function(e){return function(n){var r=function(){if(e.default)return function(t,e){if(!void 0)return t&&t.then?t.then(_):Promise.resolve()}(t.put(e.name,e.default))}();if(r&&r.then)return r.then(_)}()})))}));for(var i,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.tables);!(i=o()).done;){var s=i.value;r.objectStoreNames.contains(s.name)||r.createObjectStore(s.name,s.options||{keyPath:"_id",autoIncrement:!0})}return t.db=r,n&&n.then||(n=Promise.resolve(n)),n})),i.onsuccess=function(){t.db||(t.db=i.result),e("success")},i.onerror=function(t){console.error("indexed db connect error: ",t),n(t)}}))},e.createTransaction=function(t){var e=this;return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return new Promise((function(r,o){if(e.db){var s=e.db.transaction([n],"readwrite").objectStore(n),u=t.apply(void 0,[s].concat(i));u.onerror=function(t){o(t)},u.onsuccess=function(){r(u.result)}}else o("not connect")}))}},t}();function D(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}function X(){}function U(t,e,n){if(!t.s){if(n instanceof Y){if(!n.s)return void(n.o=U.bind(null,t,e));1&e&&(e=n.s),n=n.v}if(n&&n.then)return void n.then(U.bind(null,t,e),U.bind(null,t,2));t.s=e,t.v=n;var r=t.o;r&&r(t)}}var Y=function(){function t(){}return t.prototype.then=function(e,n){var r=new t,i=this.s;if(i){var o=1&i?e:n;if(o){try{U(r,1,o(this.v))}catch(t){U(r,2,t)}return r}return this}return this.o=function(t){try{var i=t.v;1&t.s?U(r,1,e?e(i):i):n?U(r,1,n(i)):U(r,2,i)}catch(t){U(r,2,t)}},r},t}();function z(t){return t instanceof Y&&1&t.s}function F(){return F=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F.apply(this,arguments)}var N=function(){function t(t,e){this.utils=void 0,this.store=void 0,this.utils=t,this.store=e}var e=t.prototype;return e.getState=function(){try{return D(this.utils.get(this.store,1))}catch(t){return Promise.reject(t)}},e.setState=function(t){this.utils.put(this.store,F({},t,{_id:1}))},e.merge=function(t){try{var e=this;return D(e.getState(),(function(n){e.setState=F({},n,t,{_id:1})}))}catch(t){return Promise.reject(t)}},t}(),B=function(){function t(t){var e=t.name,n=t.version,r=t.tables;this.name=void 0,this.version=void 0,this.utils=void 0,this._cache={},this.tables=[],this.connected=!1,this.connecting=!1,this.name=e,this.version=n,this.tables=null!=r?r:[]}var e=t.prototype;return e.register=function(t){var e;(e=this.tables).push.apply(e,t)},e.connect=function(){try{var t=!1,e=this;return e.connected?D():D((n=function(){if(e.connecting)return n=function(t,e,n){for(var r;;){var i=t();if(z(i)&&(i=i.v),!i)return o;if(i.then){r=0;break}var o=n();if(o&&o.then){if(!z(o)){r=1;break}o=o.s}if(e){var s=e();if(s&&s.then&&!z(s)){r=2;break}}}var u=new Y,a=U.bind(null,u,2);return(0===r?i.then(f):1===r?o.then(c):s.then(h)).then(void 0,a),u;function c(r){o=r;do{if(e&&(s=e())&&s.then&&!z(s))return void s.then(h).then(void 0,a);if(!(i=t())||z(i)&&!i.v)return void U(u,1,o);if(i.then)return void i.then(f).then(void 0,a);z(o=n())&&(o=o.v)}while(!o||!o.then);o.then(c).then(void 0,a)}function f(t){t?(o=n())&&o.then?o.then(c).then(void 0,a):c(o):U(u,1,o)}function h(){(i=t())?i.then?i.then(f).then(void 0,a):f(i):U(u,1,o)}}((function(){return!e.connecting}),void 0,(function(){return function(t,e){return t&&t.then?t.then(X):Promise.resolve()}(O(100))})),r=function(){t=!0},n&&n.then?n.then(r):r();var n,r},r=function(n){return t?n:(e.connecting=!0,e.utils=new C(e.name,e.version,e.tables),D(e.utils.open(),(function(){e.connected=!0,e.connecting=!1})))},(i=n())&&i.then?i.then(r):r(i)))}catch(t){return Promise.reject(t)}var n,r,i},e.get=function(t){return!this._cache[t]&&this.utils&&(this._cache[t]=new N(this.utils,t)),this._cache[t]},t}(),R=function(t){var e=new RegExp("(^| )"+t+"=([^;]*)(;|$)").exec(document.cookie);return e?e[2]:""},$=function(){var t={};return document.cookie?(document.cookie.split(";").forEach((function(e){var n=e.split("="),r=n[0],i=n[1];t[r]=i})),t):t},J=function(t,e){document.cookie=t+"="+e};return e})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pubo-web",
3
- "version": "1.0.146",
3
+ "version": "1.0.149",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "node": ">=8.0.0"
20
20
  },
21
21
  "dependencies": {
22
- "pubo-utils": "^1.0.146"
22
+ "pubo-utils": "^1.0.149"
23
23
  },
24
- "gitHead": "e41427561e50d47571d03166beb989a0e89a47da",
24
+ "gitHead": "2fb3948cc5dc5030739ce34928e4ec8195b55c1b",
25
25
  "devDependencies": {
26
26
  "@babel/cli": "^7.10.1",
27
27
  "@babel/core": "^7.10.2",