From 6463efb447268a514c07e4197b86b22ee8bab084 Mon Sep 17 00:00:00 2001 From: dotnetCarpenter Date: Wed, 14 Nov 2018 12:55:30 +0100 Subject: [PATCH] cleanup --- .config/karma.conf.common.js | 3 +-- .config/karma.conf.saucelabs.js | 2 +- .config/{polyfills.js => polyfillList.js} | 0 .config/rollup.polyfills.js | 2 +- .gitignore | 1 + dist/polyfills.js | 1 + 6 files changed, 5 insertions(+), 4 deletions(-) rename .config/{polyfills.js => polyfillList.js} (100%) create mode 100644 dist/polyfills.js diff --git a/.config/karma.conf.common.js b/.config/karma.conf.common.js index f8ab473..56c249f 100644 --- a/.config/karma.conf.common.js +++ b/.config/karma.conf.common.js @@ -47,8 +47,7 @@ module.exports = function (config) { // level of logging // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - // logLevel: config.LOG_INFO, - logLevel: config.LOG_DEBUG, + logLevel: config.LOG_INFO, // enable / disable watching file and executing tests whenever any file changes autoWatch: false, diff --git a/.config/karma.conf.saucelabs.js b/.config/karma.conf.saucelabs.js index 827d5b8..922d749 100644 --- a/.config/karma.conf.saucelabs.js +++ b/.config/karma.conf.saucelabs.js @@ -107,7 +107,7 @@ module.exports = function(config) { 'karma-sauce-launcher', ], - logLevel: config.LOG_DEBUG, + // logLevel: config.LOG_DEBUG, // test results reporter to use // possible values: 'dots', 'progress' diff --git a/.config/polyfills.js b/.config/polyfillList.js similarity index 100% rename from .config/polyfills.js rename to .config/polyfillList.js diff --git a/.config/rollup.polyfills.js b/.config/rollup.polyfills.js index 94f0654..810db91 100644 --- a/.config/rollup.polyfills.js +++ b/.config/rollup.polyfills.js @@ -4,7 +4,7 @@ import commonjs from 'rollup-plugin-commonjs' export default [ { - input: './.config/polyfills.js', + input: './.config/polyfillList.js', output: { file: 'dist/polyfills.js', name: 'polyfills', diff --git a/.gitignore b/.gitignore index ebf7883..9fa0db9 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ node_modules/ .vscode/ coverage/ fonts/ +.env diff --git a/dist/polyfills.js b/dist/polyfills.js new file mode 100644 index 0000000..02eb202 --- /dev/null +++ b/dist/polyfills.js @@ -0,0 +1 @@ +!function(){"use strict";var g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=function(t){if(!g(t))throw TypeError(t+" is not an object!");return t},b=function(t){try{return!!t()}catch(t){return!0}},u=!b(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a});function t(t,n){return t(n={exports:{}},n.exports),n.exports}var _=t(function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)}),n=_.document,r=g(n)&&g(n.createElement),e=function(t){return r?n.createElement(t):{}},o=!u&&!b(function(){return 7!=Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a}),i=function(t,n){if(!g(t))return t;var r,e;if(n&&"function"==typeof(r=t.toString)&&!g(e=r.call(t)))return e;if("function"==typeof(r=t.valueOf)&&!g(e=r.call(t)))return e;if(!n&&"function"==typeof(r=t.toString)&&!g(e=r.call(t)))return e;throw TypeError("Can't convert object to primitive value")},c=Object.defineProperty,f={f:u?Object.defineProperty:function(t,n,r){if(v(t),n=i(n,!0),v(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},a=f.f,s=Function.prototype,l=/^\s*function ([^ (]*)/,p="name";p in s||u&&a(s,p,{configurable:!0,get:function(){try{return(""+this).match(l)[1]}catch(t){return""}}});var y=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},h=function(t){return Object(y(t))},d={}.hasOwnProperty,m=function(t,n){return d.call(t,n)},O={}.toString,w=function(t){return O.call(t).slice(8,-1)},S=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==w(t)?t.split(""):Object(t)},j=function(t){return S(y(t))},E=Math.ceil,P=Math.floor,k=function(t){return isNaN(t=+t)?0:(0o;)m(e,r=n[o++])&&(~z(i,r)||i.push(r));return i},U="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),B=Object.keys||function(t){return J(t,U)},Y=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},q=u?function(t,n,r){return f.f(t,n,Y(1,r))}:function(t,n,r){return t[n]=r,t},L=t(function(t){var i=D("src"),n="toString",r=Function[n],u=(""+r).split(n);I.inspectSource=function(t){return r.call(t)},(t.exports=function(t,n,r,e){var o="function"==typeof r;o&&(m(r,"name")||q(r,"name",n)),t[n]!==r&&(o&&(m(r,i)||q(r,i,t[n]?""+t[n]:u.join(String(n)))),t===_?t[n]=r:e?t[n]?t[n]=r:q(t,n,r):(delete t[n],q(t,n,r)))})(Function.prototype,n,function(){return"function"==typeof this&&this[i]||r.call(this)})}),Q=function(e,o,t){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(e),void 0===o)return e;switch(t){case 1:return function(t){return e.call(o,t)};case 2:return function(t,n){return e.call(o,t,n)};case 3:return function(t,n,r){return e.call(o,t,n,r)}}return function(){return e.apply(o,arguments)}},H="prototype",V=function(t,n,r){var e,o,i,u,c=t&V.F,f=t&V.G,a=t&V.S,s=t&V.P,l=t&V.B,p=f?_:a?_[n]||(_[n]={}):(_[n]||{})[H],y=f?I:I[n]||(I[n]={}),h=y[H]||(y[H]={});for(e in f&&(r=n),r)i=((o=!c&&p&&void 0!==p[e])?p:r)[e],u=l&&o?Q(i,_):s&&"function"==typeof i?Q(Function.call,i):i,p&&L(p,e,i,t&V.U),y[e]!=i&&q(y,e,u),s&&h[e]!=i&&(h[e]=i)};_.core=I,V.F=1,V.G=2,V.S=4,V.P=8,V.B=16,V.W=32,V.U=64,V.R=128;var X,Z,$,tt,nt=V;X="keys",Z=function(){return function(t){return B(h(t))}},$=(I.Object||{})[X]||Object[X],(tt={})[X]=Z($),nt(nt.S+nt.F*b(function(){$(1)}),"Object",tt);var rt,et,ot=t(function(t){var r=D("meta"),n=f.f,e=0,o=Object.isExtensible||function(){return!0},i=!b(function(){return o(Object.preventExtensions({}))}),u=function(t){n(t,r,{value:{i:"O"+ ++e,w:{}}})},c=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!g(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!m(t,r)){if(!o(t))return"F";if(!n)return"E";u(t)}return t[r].i},getWeak:function(t,n){if(!m(t,r)){if(!o(t))return!0;if(!n)return!1;u(t)}return t[r].w},onFreeze:function(t){return i&&c.NEED&&o(t)&&!m(t,r)&&u(t),t}}}),it=(ot.KEY,ot.NEED,ot.fastKey,ot.getWeak,ot.onFreeze,t(function(t){var n=M("wks"),r=_.Symbol,e="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=e&&r[t]||(e?r:D)("Symbol."+t))}).store=n})),ut=f.f,ct=it("toStringTag"),ft=function(t,n,r){t&&!m(t=r?t:t.prototype,ct)&&ut(t,ct,{configurable:!0,value:n})},at={f:it},st=f.f,lt={f:Object.getOwnPropertySymbols},pt={f:{}.propertyIsEnumerable},yt=Array.isArray||function(t){return"Array"==w(t)},ht=u?Object.defineProperties:function(t,n){v(t);for(var r,e=B(n),o=e.length,i=0;idocument.F=Object<\/script>"),t.close(),mt=t.F;r--;)delete mt[_t][U[r]];return mt()},Ot=Object.create||function(t,n){var r;return null!==t?(bt[_t]=v(t),r=new bt,bt[_t]=null,r[gt]=t):r=mt(),void 0===n?r:ht(r,n)},wt=U.concat("length","prototype"),St={f:Object.getOwnPropertyNames||function(t){return J(t,wt)}},jt=St.f,Et={}.toString,Pt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],kt={f:function(t){return Pt&&"[object Window]"==Et.call(t)?function(t){try{return jt(t)}catch(t){return Pt.slice()}}(t):jt(j(t))}},Ft=Object.getOwnPropertyDescriptor,xt={f:u?Ft:function(t,n){if(t=j(t),n=i(n,!0),o)try{return Ft(t,n)}catch(t){}if(m(t,n))return Y(!pt.f.call(t,n),t[n])}},Tt=ot.KEY,At=xt.f,Nt=f.f,It=kt.f,Mt=_.Symbol,Rt=_.JSON,Ct=Rt&&Rt.stringify,Dt="prototype",Kt=it("_hidden"),Wt=it("toPrimitive"),zt={}.propertyIsEnumerable,Gt=M("symbol-registry"),Jt=M("symbols"),Ut=M("op-symbols"),Bt=Object[Dt],Yt="function"==typeof Mt,qt=_.QObject,Lt=!qt||!qt[Dt]||!qt[Dt].findChild,Qt=u&&b(function(){return 7!=Ot(Nt({},"a",{get:function(){return Nt(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=At(Bt,n);e&&delete Bt[n],Nt(t,n,r),e&&t!==Bt&&Nt(Bt,n,e)}:Nt,Ht=function(t){var n=Jt[t]=Ot(Mt[Dt]);return n._k=t,n},Vt=Yt&&"symbol"==typeof Mt.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof Mt},Xt=function(t,n,r){return t===Bt&&Xt(Ut,n,r),v(t),n=i(n,!0),v(r),m(Jt,n)?(r.enumerable?(m(t,Kt)&&t[Kt][n]&&(t[Kt][n]=!1),r=Ot(r,{enumerable:Y(0,!1)})):(m(t,Kt)||Nt(t,Kt,Y(1,{})),t[Kt][n]=!0),Qt(t,n,r)):Nt(t,n,r)},Zt=function(t,n){v(t);for(var r,e=function(t){var n=B(t),r=lt.f;if(r)for(var e,o=r(t),i=pt.f,u=0;o.length>u;)i.call(t,e=o[u++])&&n.push(e);return n}(n=j(n)),o=0,i=e.length;oo;)m(Jt,n=r[o++])||n==Kt||n==Tt||e.push(n);return e},rn=function(t){for(var n,r=t===Bt,e=It(r?Ut:j(t)),o=[],i=0;e.length>i;)!m(Jt,n=e[i++])||r&&!m(Bt,n)||o.push(Jt[n]);return o};Yt||(L((Mt=function(){if(this instanceof Mt)throw TypeError("Symbol is not a constructor!");var n=D(0on;)it(en[on++]);for(var un=B(it.store),cn=0;un.length>cn;)rt=un[cn++],void 0,et=I.Symbol||(I.Symbol=_.Symbol||{}),"_"==rt.charAt(0)||rt in et||st(et,rt,{value:at.f(rt)});nt(nt.S+nt.F*!Yt,"Symbol",{for:function(t){return m(Gt,t+="")?Gt[t]:Gt[t]=Mt(t)},keyFor:function(t){if(!Vt(t))throw TypeError(t+" is not a symbol!");for(var n in Gt)if(Gt[n]===t)return n},useSetter:function(){Lt=!0},useSimple:function(){Lt=!1}}),nt(nt.S+nt.F*!Yt,"Object",{create:function(t,n){return void 0===n?Ot(t):Zt(Ot(t),n)},defineProperty:Xt,defineProperties:Zt,getOwnPropertyDescriptor:tn,getOwnPropertyNames:nn,getOwnPropertySymbols:rn}),Rt&&nt(nt.S+nt.F*(!Yt||b(function(){var t=Mt();return"[null]"!=Ct([t])||"{}"!=Ct({a:t})||"{}"!=Ct(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);if(r=n=e[1],(g(n)||void 0!==t)&&!Vt(t))return yt(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!Vt(n))return n}),e[1]=n,Ct.apply(Rt,e)}}),Mt[Dt][Wt]||q(Mt[Dt],Wt,Mt[Dt].valueOf),ft(Mt,"Symbol"),ft(Math,"Math",!0),ft(_.JSON,"JSON",!0);var fn=function(t,n,r){for(var e in n)L(t,e,n[e],r);return t},an=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t},sn=function(n,t,r,e){try{return e?t(v(r)[0],r[1]):t(r)}catch(t){var o=n.return;throw void 0!==o&&v(o.call(n)),t}},ln={},pn=it("iterator"),yn=Array.prototype,hn=it("toStringTag"),vn="Arguments"==w(function(){return arguments}()),dn=it("iterator"),gn=I.getIteratorMethod=function(t){if(null!=t)return t[dn]||t["@@iterator"]||ln[(n=t,void 0===n?"Undefined":null===n?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(r=Object(n),hn))?e:vn?w(r):"Object"==(o=w(r))&&"function"==typeof r.callee?"Arguments":o)];var n,r,e,o},bn=t(function(t){var y={},h={},n=t.exports=function(t,n,r,e,o){var i,u,c,f,a,s=o?function(){return t}:gn(t),l=Q(r,e,n?2:1),p=0;if("function"!=typeof s)throw TypeError(t+" is not iterable!");if(void 0===(a=s)||ln.Array!==a&&yn[pn]!==a){for(c=s.call(t);!(u=c.next()).done;)if((f=sn(c,l,u.value,n))===y||f===h)return f}else for(i=x(t.length);p=t.length?(this._t=void 0,Fn(1)):Fn(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values");ln.Arguments=ln.Array,Jn("keys"),Jn("values"),Jn("entries");var Qn,Hn=pt.f,Vn=(Qn=!0,function(t){for(var n,r=j(t),e=B(r),o=e.length,i=0,u=[];i