pubo-utils 1.0.142 → 1.0.144
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/dist/pubo-utils.js +1 -1
- package/es/loop/index.js +9 -5
- package/es/sleep/index.js +1 -4
- package/lib/loop/index.js +9 -5
- package/lib/sleep/index.js +1 -4
- package/package.json +2 -2
package/dist/pubo-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["pubo-utils"]=n():t["pubo-utils"]=n()}(this,(()=>(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{Base64Utils:()=>e,ContinuousTrigger:()=>_,Emitter:()=>y,HistoryStack:()=>N,Level:()=>C,RegExpList:()=>Y,SensorDataFilter:()=>tt,StringSplit:()=>nt,SyncQueue:()=>O,WatchDog:()=>U,callbackToPromise:()=>L,debounce:()=>r,degrees:()=>X,filterKeyPoints:()=>H,getAngle:()=>q,getBestPointIndex:()=>W,getCenter:()=>K,getDistance:()=>F,getPositionTheta:()=>V,getRotate:()=>Q,getVectorTheta:()=>J,hex2rgb:()=>i,loop:()=>P,lower2camel:()=>et,orderByDistance:()=>G,radians:()=>$,random:()=>o,randomRangeNum:()=>u,sleep:()=>b,superFactory:()=>m,throttle:()=>M,waitFor:()=>S});var e={};t.r(e),t.d(e,{EncoderMap:()=>E,toUnit8Array:()=>I});var r=function(t,n,e){if(void 0===e&&(e=!1),e){var r,i=!0;return function(){i&&(t.apply(void 0,arguments),i=!1),r&&clearTimeout(r),r=setTimeout((function(){return i=!0}),n)}}var o;return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];o&&clearTimeout(o),o=setTimeout((function(){return t.apply(void 0,r)}),n)}},i=function(t){var n=("string"==typeof t?function(t){return parseInt(t.replace("#",""),16)}(t):t).toString(2).padStart(24,"0");return[parseInt(n.slice(0,8),2),parseInt(n.slice(8,16),2),parseInt(n.slice(16,24),2)]},o=function(t){void 0===t&&(t=8);var n=function(t){return Math.random().toString(32).slice(2,2+t)};if(t<=8)return n(t);for(var e="",r=0;r<=t;r+=8)e+=n(t-r>8?8:t-r);return e},u=function(t){var n=Math.abs(t[1]-t[0]);return Math.random()*n+Math.min.apply(Math,t)};function a(){}function s(t){var n=t();if(n&&n.then)return n.then(a)}var c="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function f(t,n,e){if(!t.s){if(e instanceof h){if(!e.s)return void(e.o=f.bind(null,t,n));1&n&&(n=e.s),e=e.v}if(e&&e.then)return void e.then(f.bind(null,t,n),f.bind(null,t,2));t.s=n,t.v=e;var r=t.o;r&&r(t)}}var h=function(){function t(){}return t.prototype.then=function(n,e){var r=new t,i=this.s;if(i){var o=1&i?n:e;if(o){try{f(r,1,o(this.v))}catch(t){f(r,2,t)}return r}return this}return this.o=function(t){try{var i=t.v;1&t.s?f(r,1,n?n(i):i):e?f(r,1,e(i)):f(r,2,i)}catch(t){f(r,2,t)}},r},t}();function l(t){return t instanceof h&&1&t.s}function v(){return v=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},v.apply(this,arguments)}function p(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var y=function(){function t(){this.state={},this.ids={}}var n=t.prototype;return n.on=function(t,n){if(this.state[t]||(this.state[t]=[]),"function"!=typeof n)throw new Error("第二个参数必须为function!");var e=this.state[t].push(n)-1,r=o(40);return this.ids[r]={event:t,index:e},r},n.cancel=function(t){var n=this;if(t){var e=this.ids[t]||{},r=e.event,i=e.index;r&&Array.isArray(this.state[r])&&(this.state[r].splice(i,1),delete this.ids[t],Object.keys(this.ids).forEach((function(t){n.ids[t].event===r&&n.ids[t].index>i&&(n.ids[t].index=n.ids[t].index-1)})))}else this.clear()},n.clear=function(){this.state.length=0},n.emit=function(t,n){if(Array.isArray(this.state[t]))for(var e,r=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return p(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?p(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);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]);!(e=r()).done;){var i=e.value;"function"==typeof i&&i(n)}},n.emitSync=function(t,n){try{var e=this;return(r=s((function(){if(Array.isArray(e.state[t]))return function(t){if(t&&t.then)return t.then(a)}(function(t,n,e){if("function"==typeof t[c]){var r,i,o,u=t[c]();if(function t(a){try{for(;!((r=u.next()).done||e&&e());)if((a=n(r.value))&&a.then){if(!l(a))return void a.then(t,o||(o=f.bind(null,i=new h,2)));a=a.v}i?f(i,1,a):i=a}catch(t){f(i||(i=new h),2,t)}}(),u.return){var a=function(t){try{r.done||u.return()}catch(t){}return t};if(i&&i.then)return i.then(a,(function(t){throw a(t)}));a()}return i}if(!("length"in t))throw new TypeError("Object is not iterable");for(var s=[],v=0;v<t.length;v++)s.push(t[v]);return function(t,n,e){var r,i,o=-1;return function u(a){try{for(;++o<t.length&&(!e||!e());)if((a=n(o))&&a.then){if(!l(a))return void a.then(u,i||(i=f.bind(null,r=new h,2)));a=a.v}r?f(r,1,a):r=a}catch(t){f(r||(r=new h),2,t)}}(),r}(s,(function(t){return n(s[t])}),e)}(e.state[t],(function(t){return s((function(){if("function"==typeof t)return function(t,n){return t&&t.then?t.then(a):Promise.resolve()}(t(n))}))})))})))&&r.then||(r=Promise.resolve(r)),r}catch(t){return Promise.reject(t)}var r},n.clone=function(){return{state:v({},this.state),ids:v({},this.ids)}},n.restore=function(t){this.state=t.state,this.ids=t.ids},t}(),m=function(t){return function(n){for(var e={},r=0,i=Object.keys(n);r<i.length;r++){var o=i[r];e[o]=t(n[o],o)}return e}};function d(){}var g,b=(g=function(t){return(n=new Promise((function(n){return setTimeout((function(){n(),n=null}),t)})))&&n.then?n.then(d):Promise.resolve();var n},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(g.apply(this,t))}catch(t){return Promise.reject(t)}});function w(){}function j(t,n,e){if(e)return n?n(t()):t();try{var r=Promise.resolve(t());return n?r.then(n):r}catch(t){return Promise.reject(t)}}var P=function(t,n){var e=!0,r=function(){e=!1},i=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];try{return Promise.resolve(t.apply(this,n))}catch(t){return Promise.reject(t)}}}((function(){return u=function(){return u=function(){e?i():(i=null,t=null,r=null,e=null,n=null)},(o=b(n))&&o.then||(o=Promise.resolve(o)),u?o.then(u):o;var o,u},(o=function(n,e){try{var r=j(t,w,i)}catch(t){return e(t)}var i;return r&&r.then?r.then(void 0,e):r}(0,(function(t){console.log(t)})))&&o.then?o.then(u):u();var o,u}));return i(),r},S=function(t,n){var e=void 0===n?{}:n,r=e.checkTime,i=e.timeout;return new Promise((function(n,e){var o=P((function(){return j(t,(function(e){e&&(o(),o=null,t=null,n(e),n=null)}))}),r||100);i&&setTimeout((function(){o(),o=null,t=null,e("timeout"),e=null}),i)}))};function x(t,n,e){return e?n?n(t):t:(t&&t.then||(t=Promise.resolve(t)),n?t.then(n):t)}function A(){}function T(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(i=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.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 O=function(){function t(){this.cache=[],this.running=!1,this.len=0}var n,e,r=t.prototype;return r._run=function(t){var n,e,r=t.fn,i=t.promise;try{return x((n=function(t,n){try{var e=function(t,n,e){try{var r=Promise.resolve(t());return n?r.then(n):r}catch(t){return Promise.reject(t)}}(r,(function(t){i.resolve(t)}))}catch(t){return n(t)}return e&&e.then?e.then(void 0,n):e}(0,(function(t){i.reject(t)})),e=function(){r=null,i=null},n&&n.then?n.then(e):e()))}catch(t){return Promise.reject(t)}},r.run=function(){try{var t=this;if(t.cache.length<1)return t.running=!1,x();t.running=!0;var n=t.cache.shift();return t.len-=1,x((e=function(){t.run()},(r=function(){if("function"==typeof n.fn)return(e=t._run(n))&&e.then?e.then(A):Promise.resolve();var e}())&&r.then?r.then(e):e()))}catch(t){return Promise.reject(t)}var e,r},r.push=function(t){var n=this;return this.len+=1,new Promise((function(e,r){n.cache.push({fn:t,promise:{resolve:e,reject:r}}),n.running||n.run()}))},n=t,(e=[{key:"length",get:function(){return this.len}}])&&T(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}();function M(t,n){var e,r=!0;return function(){e||(e=setTimeout((function(){r=!0,e=null}),n)),r&&(r=!1,t.apply(void 0,arguments))}}function k(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(i=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.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 _=function(){function t(t){this.timeout=void 0,this._count=0,this.props=void 0,this.props=t}var n,e,r=t.prototype;return r.increment=function(){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.clear()}),this.props.resetTime),this._count=this._count+1,this._count>this.props.count&&this.props.cb()},r.clear=function(){this._count=0},n=t,(e=[{key:"count",get:function(){return this._count}}])&&k(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}(),E=function(){for(var t={},n=0;n<64;n++)t["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n)]=n;return t}();function I(t){for(var n=new Uint8Array(6*t.length/8),e=0,r=0,i=0,o=0;o<t.length&&i<n.length;o+=1)if(r=(r<<6)+E[t.charAt(o)],(e+=6)>=8){var u=r>>>(e-=8);n[i++]=255&u,r-=u<<=e}return n}function R(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(i=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.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 N=function(){function t(t){void 0===t&&(t=10),this.stack=[],this.len=10,this.point=0,this.len=t}var n,e,r=t.prototype;return r.clear=function(){this.stack.length=0,this.point=0},r.backup=function(t){this.point>0&&this.stack.length>0&&(this.stack.splice(0,this.point),this.point=0),this.stack.unshift(t),this.stack.length>this.len&&this.stack.pop()},r.undo=function(){return this.point<this.stack.length-1&&(this.point+=1),this.current},r.redo=function(){return this.point>0&&(this.point-=1),this.current},n=t,(e=[{key:"current",get:function(){if(this.point<this.stack.length&&this.point>-1)return this.stack[this.point]}}])&&R(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}(),U=function(){function t(t){var n=t.limit,e=void 0===n?10:n,r=t.onTimeout;this.limit=10,this.onTimeout=void 0,this.timeout=null,this.limit=e,this.onTimeout=r}var n=t.prototype;return n.feed=function(){this.init()},n.init=function(){var t=this;clearTimeout(this.timeout),delete this.timeout,this.timeout=setTimeout((function(){return t.onTimeout()}),1e3*this.limit)},n.stop=function(){this.timeout&&clearTimeout(this.timeout)},t}(),C=function(){function t(t){this.config=void 0,this.step=void 0,this.config=t,this.step=(this.config.max-this.config.min)/(this.config.count-2)}return t.prototype.get=function(t){if(t<=this.config.min)return 1;if(t>=this.config.max)return this.config.count;for(var n=2,e=this.config.min+this.step;e<this.config.max+this.step;e+=this.step,n+=1)if(t<e)return n;return this.config.count},t}(),L=function(t){return function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return new Promise((function(n,r){t.apply(void 0,e.concat([function(t){t&&r(t);for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];i.length<2?n(i[0]):n([].concat(i))}])),t=null}))}};function z(){return z=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},z.apply(this,arguments)}function D(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return B(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?B(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);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.")}function B(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var F=function(t,n){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))},X=function(t){return 180*t/Math.PI},$=function(t){return t*Math.PI/180},q=function(t){var n=t.w,e=t.h;return X(Math.atan2(e,n))};function H(t,n){return void 0===n&&(n=.5),t.length<3||n<=0?t:t.filter((function(r,i){return!(i>0&&F(e,r)<n||(e=t[i],0))}));var e}function K(t){for(var n,e=[0,0],r=D(t);!(n=r()).done;){var i=n.value;Array.isArray(i)?(e[0]+=i[0],e[1]+=i[1]):(e[0]+=i.x,e[1]+=i.y)}return{x:e[0]/t.length,y:e[1]/t.length}}function Q(t,n){return[Math.cos(n)*t[0]-Math.sin(n)*t[1],Math.sin(n)*t[0]+Math.cos(n)*t[1]]}var V=function(t,n){var e={x:n.x-t.x,y:n.y-t.y};return Math.atan2(e.y,e.x)},W=function(t,n){if(t.length<2)return 0;for(var e,r=[],i=1/0,o=0,u=D(t);!(e=u()).done;){var a=e.value,s=F(a,n),c=V(n,a)-n.theta;i>s&&(i=s),r.push(z({},a,{index:o,distance:s,theta:c})),o+=1}var f=r.filter((function(t){return t.distance-i<.1})).sort((function(t,n){return t.theta-n.theta}));return f[0].index},G=function(t,n){void 0===n&&(n={x:0,y:0,theta:0});for(var e=n,r=[],i=[].concat(t);i.length>0;){var o=W(i,e);r.push(i[o]),e=i[o],i.splice(o,1)}return r},J=function(t,n){return Math.atan2(n.y,n.x)-Math.atan2(t.y,t.x)},Y=function(){function t(t){this.list=void 0,this._RegExpList=null,this.list=t}var n=t.prototype;return n.getRegEXP=function(t){var n=t.replace("/","\\/").replace("*",".*");return new RegExp(n)},n.include=function(t){return this._RegExpList||(this._RegExpList=this.list.map(this.getRegEXP)),this._RegExpList.some((function(n){return n.test(t)}))},t}();function Z(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var tt=function(){function t(t){var n=void 0===t?{}:t,e=n.size,r=void 0===e?5:e,i=n.step,o=void 0===i?5:i,u=n.min,a=void 0===u?-1/0:u,s=n.max,c=void 0===s?1/0:s;this.tmp=[],this.size=void 0,this.step=void 0,this.min=void 0,this.max=void 0,this.count=0,this.value=NaN,this.old=void 0,this.size=r,this.step=o,this.min=a,this.max=c}var n=t.prototype;return n.filter=function(t){return t<this.min||t>this.max||(this.tmp.push(t),this.old=this.calc(t)),this.old},n.calc=function(t){if(this.tmp.length<1)return t;this.tmp.length>this.size&&this.tmp.shift();var n=this.getMostNumberOfTmp(),e=n.res,r=n.dic;return e!==t&&Math.abs(e-t)>this.step?(this.value!==t?this.count=1:this.count+=1,this.value=t,this.count>r[e]?(this.tmp.length=0,this.tmp.push(t),t):e):(this.count=0,this.value=NaN,t)},n.getMostNumberOfTmp=function(){for(var t,n,e={},r=0,i=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return Z(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Z(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);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.tmp);!(n=i()).done;){var o=n.value;e[o]?e[o]+=1:e[o]=1,e[o]>r&&(r=e[o],t=o)}return{res:t,dic:e}},t}(),nt=function(){function t(t){this._splitSymbol=void 0,this._cache="",this._splitSymbol=t}return t.prototype.split=function(t){var n=(this._cache+t).split(this._splitSymbol);return this._cache=n.splice(n.length-1,1)[0],n},t}(),et=function(t){return t.split("_").map((function(t,n){return n>0?t.slice(0,1).toUpperCase()+t.slice(1):t})).join("")};return n})()));
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["pubo-utils"]=n():t["pubo-utils"]=n()}(this,(()=>(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{Base64Utils:()=>e,ContinuousTrigger:()=>_,Emitter:()=>y,HistoryStack:()=>N,Level:()=>C,RegExpList:()=>Y,SensorDataFilter:()=>tt,StringSplit:()=>nt,SyncQueue:()=>O,WatchDog:()=>U,callbackToPromise:()=>L,debounce:()=>r,degrees:()=>X,filterKeyPoints:()=>H,getAngle:()=>q,getBestPointIndex:()=>W,getCenter:()=>K,getDistance:()=>F,getPositionTheta:()=>V,getRotate:()=>Q,getVectorTheta:()=>J,hex2rgb:()=>i,loop:()=>P,lower2camel:()=>et,orderByDistance:()=>G,radians:()=>$,random:()=>o,randomRangeNum:()=>u,sleep:()=>b,superFactory:()=>m,throttle:()=>M,waitFor:()=>S});var e={};t.r(e),t.d(e,{EncoderMap:()=>E,toUnit8Array:()=>I});var r=function(t,n,e){if(void 0===e&&(e=!1),e){var r,i=!0;return function(){i&&(t.apply(void 0,arguments),i=!1),r&&clearTimeout(r),r=setTimeout((function(){return i=!0}),n)}}var o;return function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];o&&clearTimeout(o),o=setTimeout((function(){return t.apply(void 0,r)}),n)}},i=function(t){var n=("string"==typeof t?function(t){return parseInt(t.replace("#",""),16)}(t):t).toString(2).padStart(24,"0");return[parseInt(n.slice(0,8),2),parseInt(n.slice(8,16),2),parseInt(n.slice(16,24),2)]},o=function(t){void 0===t&&(t=8);var n=function(t){return Math.random().toString(32).slice(2,2+t)};if(t<=8)return n(t);for(var e="",r=0;r<=t;r+=8)e+=n(t-r>8?8:t-r);return e},u=function(t){var n=Math.abs(t[1]-t[0]);return Math.random()*n+Math.min.apply(Math,t)};function a(){}function s(t){var n=t();if(n&&n.then)return n.then(a)}var c="undefined"!=typeof Symbol?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function f(t,n,e){if(!t.s){if(e instanceof h){if(!e.s)return void(e.o=f.bind(null,t,n));1&n&&(n=e.s),e=e.v}if(e&&e.then)return void e.then(f.bind(null,t,n),f.bind(null,t,2));t.s=n,t.v=e;var r=t.o;r&&r(t)}}var h=function(){function t(){}return t.prototype.then=function(n,e){var r=new t,i=this.s;if(i){var o=1&i?n:e;if(o){try{f(r,1,o(this.v))}catch(t){f(r,2,t)}return r}return this}return this.o=function(t){try{var i=t.v;1&t.s?f(r,1,n?n(i):i):e?f(r,1,e(i)):f(r,2,i)}catch(t){f(r,2,t)}},r},t}();function l(t){return t instanceof h&&1&t.s}function v(){return v=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},v.apply(this,arguments)}function p(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var y=function(){function t(){this.state={},this.ids={}}var n=t.prototype;return n.on=function(t,n){if(this.state[t]||(this.state[t]=[]),"function"!=typeof n)throw new Error("第二个参数必须为function!");var e=this.state[t].push(n)-1,r=o(40);return this.ids[r]={event:t,index:e},r},n.cancel=function(t){var n=this;if(t){var e=this.ids[t]||{},r=e.event,i=e.index;r&&Array.isArray(this.state[r])&&(this.state[r].splice(i,1),delete this.ids[t],Object.keys(this.ids).forEach((function(t){n.ids[t].event===r&&n.ids[t].index>i&&(n.ids[t].index=n.ids[t].index-1)})))}else this.clear()},n.clear=function(){this.state.length=0},n.emit=function(t,n){if(Array.isArray(this.state[t]))for(var e,r=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return p(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?p(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);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]);!(e=r()).done;){var i=e.value;"function"==typeof i&&i(n)}},n.emitSync=function(t,n){try{var e=this;return(r=s((function(){if(Array.isArray(e.state[t]))return function(t){if(t&&t.then)return t.then(a)}(function(t,n,e){if("function"==typeof t[c]){var r,i,o,u=t[c]();if(function t(a){try{for(;!((r=u.next()).done||e&&e());)if((a=n(r.value))&&a.then){if(!l(a))return void a.then(t,o||(o=f.bind(null,i=new h,2)));a=a.v}i?f(i,1,a):i=a}catch(t){f(i||(i=new h),2,t)}}(),u.return){var a=function(t){try{r.done||u.return()}catch(t){}return t};if(i&&i.then)return i.then(a,(function(t){throw a(t)}));a()}return i}if(!("length"in t))throw new TypeError("Object is not iterable");for(var s=[],v=0;v<t.length;v++)s.push(t[v]);return function(t,n,e){var r,i,o=-1;return function u(a){try{for(;++o<t.length&&(!e||!e());)if((a=n(o))&&a.then){if(!l(a))return void a.then(u,i||(i=f.bind(null,r=new h,2)));a=a.v}r?f(r,1,a):r=a}catch(t){f(r||(r=new h),2,t)}}(),r}(s,(function(t){return n(s[t])}),e)}(e.state[t],(function(t){return s((function(){if("function"==typeof t)return function(t,n){return t&&t.then?t.then(a):Promise.resolve()}(t(n))}))})))})))&&r.then||(r=Promise.resolve(r)),r}catch(t){return Promise.reject(t)}var r},n.clone=function(){return{state:v({},this.state),ids:v({},this.ids)}},n.restore=function(t){this.state=t.state,this.ids=t.ids},t}(),m=function(t){return function(n){for(var e={},r=0,i=Object.keys(n);r<i.length;r++){var o=i[r];e[o]=t(n[o],o)}return e}};function d(){}var g,b=(g=function(t){return(n=new Promise((function(n){return setTimeout(n,t)})))&&n.then?n.then(d):Promise.resolve();var n},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(g.apply(this,t))}catch(t){return Promise.reject(t)}});function w(){}function j(t,n,e){if(e)return n?n(t()):t();try{var r=Promise.resolve(t());return n?r.then(n):r}catch(t){return Promise.reject(t)}}var P=function(t,n){var e=!0,r=function(){e=!1},i=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];try{return Promise.resolve(t.apply(this,n))}catch(t){return Promise.reject(t)}}}((function(){return u=function(){return u=function(){e?i():(i=null,t=null,r=null,e=null,n=null)},(o=b(n))&&o.then||(o=Promise.resolve(o)),u?o.then(u):o;var o,u},(o=function(n,e){try{var r=j(t,w,i)}catch(t){return e(t)}var i;return r&&r.then?r.then(void 0,e):r}(0,(function(t){console.log(t)})))&&o.then?o.then(u):u();var o,u}));return i(),r},S=function(t,n){var e=void 0===n?{}:n,r=e.checkTime,i=e.timeout;return new Promise((function(n,e){var o=P((function(){return j(t,(function(e){e&&("function"==typeof o&&o(),n(e),o=null,t=null,n=null)}))}),r||100);i&&setTimeout((function(){"function"==typeof o&&o(),e("timeout"),e=null,o=null,t=null}),i)}))};function x(t,n,e){return e?n?n(t):t:(t&&t.then||(t=Promise.resolve(t)),n?t.then(n):t)}function A(){}function T(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(i=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.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 O=function(){function t(){this.cache=[],this.running=!1,this.len=0}var n,e,r=t.prototype;return r._run=function(t){var n,e,r=t.fn,i=t.promise;try{return x((n=function(t,n){try{var e=function(t,n,e){try{var r=Promise.resolve(t());return n?r.then(n):r}catch(t){return Promise.reject(t)}}(r,(function(t){i.resolve(t)}))}catch(t){return n(t)}return e&&e.then?e.then(void 0,n):e}(0,(function(t){i.reject(t)})),e=function(){r=null,i=null},n&&n.then?n.then(e):e()))}catch(t){return Promise.reject(t)}},r.run=function(){try{var t=this;if(t.cache.length<1)return t.running=!1,x();t.running=!0;var n=t.cache.shift();return t.len-=1,x((e=function(){t.run()},(r=function(){if("function"==typeof n.fn)return(e=t._run(n))&&e.then?e.then(A):Promise.resolve();var e}())&&r.then?r.then(e):e()))}catch(t){return Promise.reject(t)}var e,r},r.push=function(t){var n=this;return this.len+=1,new Promise((function(e,r){n.cache.push({fn:t,promise:{resolve:e,reject:r}}),n.running||n.run()}))},n=t,(e=[{key:"length",get:function(){return this.len}}])&&T(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}();function M(t,n){var e,r=!0;return function(){e||(e=setTimeout((function(){r=!0,e=null}),n)),r&&(r=!1,t.apply(void 0,arguments))}}function k(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(i=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.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 _=function(){function t(t){this.timeout=void 0,this._count=0,this.props=void 0,this.props=t}var n,e,r=t.prototype;return r.increment=function(){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.clear()}),this.props.resetTime),this._count=this._count+1,this._count>this.props.count&&this.props.cb()},r.clear=function(){this._count=0},n=t,(e=[{key:"count",get:function(){return this._count}}])&&k(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}(),E=function(){for(var t={},n=0;n<64;n++)t["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n)]=n;return t}();function I(t){for(var n=new Uint8Array(6*t.length/8),e=0,r=0,i=0,o=0;o<t.length&&i<n.length;o+=1)if(r=(r<<6)+E[t.charAt(o)],(e+=6)>=8){var u=r>>>(e-=8);n[i++]=255&u,r-=u<<=e}return n}function R(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,"symbol"==typeof(i=function(t,n){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.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 N=function(){function t(t){void 0===t&&(t=10),this.stack=[],this.len=10,this.point=0,this.len=t}var n,e,r=t.prototype;return r.clear=function(){this.stack.length=0,this.point=0},r.backup=function(t){this.point>0&&this.stack.length>0&&(this.stack.splice(0,this.point),this.point=0),this.stack.unshift(t),this.stack.length>this.len&&this.stack.pop()},r.undo=function(){return this.point<this.stack.length-1&&(this.point+=1),this.current},r.redo=function(){return this.point>0&&(this.point-=1),this.current},n=t,(e=[{key:"current",get:function(){if(this.point<this.stack.length&&this.point>-1)return this.stack[this.point]}}])&&R(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}(),U=function(){function t(t){var n=t.limit,e=void 0===n?10:n,r=t.onTimeout;this.limit=10,this.onTimeout=void 0,this.timeout=null,this.limit=e,this.onTimeout=r}var n=t.prototype;return n.feed=function(){this.init()},n.init=function(){var t=this;clearTimeout(this.timeout),delete this.timeout,this.timeout=setTimeout((function(){return t.onTimeout()}),1e3*this.limit)},n.stop=function(){this.timeout&&clearTimeout(this.timeout)},t}(),C=function(){function t(t){this.config=void 0,this.step=void 0,this.config=t,this.step=(this.config.max-this.config.min)/(this.config.count-2)}return t.prototype.get=function(t){if(t<=this.config.min)return 1;if(t>=this.config.max)return this.config.count;for(var n=2,e=this.config.min+this.step;e<this.config.max+this.step;e+=this.step,n+=1)if(t<e)return n;return this.config.count},t}(),L=function(t){return function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return new Promise((function(n,r){t.apply(void 0,e.concat([function(t){t&&r(t);for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];i.length<2?n(i[0]):n([].concat(i))}])),t=null}))}};function z(){return z=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},z.apply(this,arguments)}function D(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return B(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?B(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);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.")}function B(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var F=function(t,n){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))},X=function(t){return 180*t/Math.PI},$=function(t){return t*Math.PI/180},q=function(t){var n=t.w,e=t.h;return X(Math.atan2(e,n))};function H(t,n){return void 0===n&&(n=.5),t.length<3||n<=0?t:t.filter((function(r,i){return!(i>0&&F(e,r)<n||(e=t[i],0))}));var e}function K(t){for(var n,e=[0,0],r=D(t);!(n=r()).done;){var i=n.value;Array.isArray(i)?(e[0]+=i[0],e[1]+=i[1]):(e[0]+=i.x,e[1]+=i.y)}return{x:e[0]/t.length,y:e[1]/t.length}}function Q(t,n){return[Math.cos(n)*t[0]-Math.sin(n)*t[1],Math.sin(n)*t[0]+Math.cos(n)*t[1]]}var V=function(t,n){var e={x:n.x-t.x,y:n.y-t.y};return Math.atan2(e.y,e.x)},W=function(t,n){if(t.length<2)return 0;for(var e,r=[],i=1/0,o=0,u=D(t);!(e=u()).done;){var a=e.value,s=F(a,n),c=V(n,a)-n.theta;i>s&&(i=s),r.push(z({},a,{index:o,distance:s,theta:c})),o+=1}var f=r.filter((function(t){return t.distance-i<.1})).sort((function(t,n){return t.theta-n.theta}));return f[0].index},G=function(t,n){void 0===n&&(n={x:0,y:0,theta:0});for(var e=n,r=[],i=[].concat(t);i.length>0;){var o=W(i,e);r.push(i[o]),e=i[o],i.splice(o,1)}return r},J=function(t,n){return Math.atan2(n.y,n.x)-Math.atan2(t.y,t.x)},Y=function(){function t(t){this.list=void 0,this._RegExpList=null,this.list=t}var n=t.prototype;return n.getRegEXP=function(t){var n=t.replace("/","\\/").replace("*",".*");return new RegExp(n)},n.include=function(t){return this._RegExpList||(this._RegExpList=this.list.map(this.getRegEXP)),this._RegExpList.some((function(n){return n.test(t)}))},t}();function Z(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var tt=function(){function t(t){var n=void 0===t?{}:t,e=n.size,r=void 0===e?5:e,i=n.step,o=void 0===i?5:i,u=n.min,a=void 0===u?-1/0:u,s=n.max,c=void 0===s?1/0:s;this.tmp=[],this.size=void 0,this.step=void 0,this.min=void 0,this.max=void 0,this.count=0,this.value=NaN,this.old=void 0,this.size=r,this.step=o,this.min=a,this.max=c}var n=t.prototype;return n.filter=function(t){return t<this.min||t>this.max||(this.tmp.push(t),this.old=this.calc(t)),this.old},n.calc=function(t){if(this.tmp.length<1)return t;this.tmp.length>this.size&&this.tmp.shift();var n=this.getMostNumberOfTmp(),e=n.res,r=n.dic;return e!==t&&Math.abs(e-t)>this.step?(this.value!==t?this.count=1:this.count+=1,this.value=t,this.count>r[e]?(this.tmp.length=0,this.tmp.push(t),t):e):(this.count=0,this.value=NaN,t)},n.getMostNumberOfTmp=function(){for(var t,n,e={},r=0,i=function(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return Z(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Z(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);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.tmp);!(n=i()).done;){var o=n.value;e[o]?e[o]+=1:e[o]=1,e[o]>r&&(r=e[o],t=o)}return{res:t,dic:e}},t}(),nt=function(){function t(t){this._splitSymbol=void 0,this._cache="",this._splitSymbol=t}return t.prototype.split=function(t){var n=(this._cache+t).split(this._splitSymbol);return this._cache=n.splice(n.length-1,1)[0],n},t}(),et=function(t){return t.split("_").map((function(t,n){return n>0?t.slice(0,1).toUpperCase()+t.slice(1):t})).join("")};return n})()));
|
package/es/loop/index.js
CHANGED
|
@@ -101,21 +101,25 @@ export var waitFor = function waitFor(bool, _temp) {
|
|
|
101
101
|
var stop = loop(function () {
|
|
102
102
|
return _call(bool, function (res) {
|
|
103
103
|
if (res) {
|
|
104
|
-
stop
|
|
104
|
+
if (typeof stop === 'function') {
|
|
105
|
+
stop();
|
|
106
|
+
}
|
|
107
|
+
resolve(res);
|
|
105
108
|
stop = null;
|
|
106
109
|
bool = null;
|
|
107
|
-
resolve(res);
|
|
108
110
|
resolve = null;
|
|
109
111
|
}
|
|
110
112
|
});
|
|
111
113
|
}, checkTime || 100);
|
|
112
114
|
if (timeout) {
|
|
113
115
|
setTimeout(function () {
|
|
114
|
-
stop
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
if (typeof stop === 'function') {
|
|
117
|
+
stop();
|
|
118
|
+
}
|
|
117
119
|
reject('timeout');
|
|
118
120
|
reject = null;
|
|
121
|
+
stop = null;
|
|
122
|
+
bool = null;
|
|
119
123
|
}, timeout);
|
|
120
124
|
}
|
|
121
125
|
});
|
package/es/sleep/index.js
CHANGED
|
@@ -25,9 +25,6 @@ function _async(f) {
|
|
|
25
25
|
}
|
|
26
26
|
export var sleep = _async(function (time) {
|
|
27
27
|
return _awaitIgnored(new Promise(function (resolve) {
|
|
28
|
-
return setTimeout(
|
|
29
|
-
resolve();
|
|
30
|
-
resolve = null;
|
|
31
|
-
}, time);
|
|
28
|
+
return setTimeout(resolve, time);
|
|
32
29
|
}));
|
|
33
30
|
});
|
package/lib/loop/index.js
CHANGED
|
@@ -107,21 +107,25 @@ var waitFor = function waitFor(bool, _temp) {
|
|
|
107
107
|
var stop = (0, exports.loop)(function () {
|
|
108
108
|
return _call(bool, function (res) {
|
|
109
109
|
if (res) {
|
|
110
|
-
stop
|
|
110
|
+
if (typeof stop === 'function') {
|
|
111
|
+
stop();
|
|
112
|
+
}
|
|
113
|
+
resolve(res);
|
|
111
114
|
stop = null;
|
|
112
115
|
bool = null;
|
|
113
|
-
resolve(res);
|
|
114
116
|
resolve = null;
|
|
115
117
|
}
|
|
116
118
|
});
|
|
117
119
|
}, checkTime || 100);
|
|
118
120
|
if (timeout) {
|
|
119
121
|
setTimeout(function () {
|
|
120
|
-
stop
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
if (typeof stop === 'function') {
|
|
123
|
+
stop();
|
|
124
|
+
}
|
|
123
125
|
reject('timeout');
|
|
124
126
|
reject = null;
|
|
127
|
+
stop = null;
|
|
128
|
+
bool = null;
|
|
125
129
|
}, timeout);
|
|
126
130
|
}
|
|
127
131
|
});
|
package/lib/sleep/index.js
CHANGED
|
@@ -30,10 +30,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
30
30
|
exports.sleep = void 0;
|
|
31
31
|
var sleep = _async(function (time) {
|
|
32
32
|
return _awaitIgnored(new Promise(function (resolve) {
|
|
33
|
-
return setTimeout(
|
|
34
|
-
resolve();
|
|
35
|
-
resolve = null;
|
|
36
|
-
}, time);
|
|
33
|
+
return setTimeout(resolve, time);
|
|
37
34
|
}));
|
|
38
35
|
});
|
|
39
36
|
exports.sleep = sleep;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pubo-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.144",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=8.0.0"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "a5a36ff40de929527242a5b4ace66e2e5700fc52",
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@babel/cli": "^7.10.1",
|
|
24
24
|
"@babel/core": "^7.10.2",
|