diff --git a/packages/babel-helpers/src/helpers-generated.ts b/packages/babel-helpers/src/helpers-generated.ts index bba0216bd53f..3ae254999972 100644 --- a/packages/babel-helpers/src/helpers-generated.ts +++ b/packages/babel-helpers/src/helpers-generated.ts @@ -48,10 +48,10 @@ export default Object.freeze({ "7.21.0", 'import checkInRHS from"checkInRHS";import setFunctionName from"setFunctionName";import toPropertyKey from"toPropertyKey";export default function applyDecs2305(e,t,r,n,o,a){function i(e,t,r){return function(n,o){return r&&r(n),e[t].call(n,o)}}function c(e,t){for(var r=0;r=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}', ), - // size: 2777, gzip size: 1412 + // size: 2786, gzip size: 1415 applyDecs2311: helper( "7.23.0", - 'import checkInRHS from"checkInRHS";import setFunctionName from"setFunctionName";import toPropertyKey from"toPropertyKey";export default function applyDecs2311(e,t,n,r,o,i){var a,c,u=Symbol.metadata||Symbol.for("Symbol.metadata"),s=Object.defineProperty,l=n.length;function f(e,t,n,r){for(var o=0;o=0;k-=n?2:1){var E=g[k],F=n?g[k-1]:void 0,N={},O={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");p(t,"An initializer","be",!0),i.push(t)}.bind(null,N)};if(w)c=E.call(F,P,O),N.v=1,p(c,"class decorators","return")&&(P=c);else{var z,H;O.static=l,O.private=d,d?2===o?z=function(e){return y(e),j.value}:(o<4&&(z=S("get",y)),3!==o&&(H=S("set",y))):(z=function(e){return e[r]},(o<2||4===o)&&(H=function(e,t){e[r]=t}));var K=O.access={has:d?v.bind():function(e){return r in e}};if(z&&(K.get=z),H&&(K.set=H),P=E.call(F,h?{get:j.get,set:j.set}:j[I],O),N.v=1,h){if("object"==typeof P&&P)(c=p(P.get,"accessor.get"))&&(j.get=c),(c=p(P.set,"accessor.set"))&&(j.set=c),(c=p(P.init,"accessor.init"))&&D.unshift(c);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else p(P,(m?"field":"method")+" decorators","return")&&(m?D.unshift(P):j[I]=P)}}return(m||h)&&u.push(f.bind(null,D,1),f.bind(null,i,0)),m||w||(d?h?u.splice(-1,0,S("get"),S("set")):u.push(2===o?j[I]:f.call.bind(j[I])):s(e,r,j)),P}function d(e){return s(e,u,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[u]),a=Object.create(null==a?null:a),c=function(){var n,r,i=[];function a(e){e&&i.push(f.bind(null,e,0))}for(var c=0;c=0;k-=n?2:1){var E=g[k],F=n?g[k-1]:void 0,N={},O={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");p(t,"An initializer","be",!0),i.push(t)}.bind(null,N)};if(w)c=E.call(F,P,O),N.v=1,p(c,"class decorators","return")&&(P=c);else{var z,H;O.static=l,O.private=d,d?2===o?z=function(e){return y(e),j.value}:(o<4&&(z=S("get",y)),3!==o&&(H=S("set",y))):(4!==o&&(z=function(e){return e[r]}),(o<2||4===o)&&(H=function(e,t){e[r]=t}));var K=O.access={has:d?v.bind():function(e){return r in e}};if(z&&(K.get=z),H&&(K.set=H),P=E.call(F,h?{get:j.get,set:j.set}:j[I],O),N.v=1,h){if("object"==typeof P&&P)(c=p(P.get,"accessor.get"))&&(j.get=c),(c=p(P.set,"accessor.set"))&&(j.set=c),(c=p(P.init,"accessor.init"))&&D.unshift(c);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else p(P,(m?"field":"method")+" decorators","return")&&(m?D.unshift(P):j[I]=P)}}return(m||h)&&u.push(f.bind(null,D,1),f.bind(null,i,0)),m||w||(d?h?u.splice(-1,0,S("get"),S("set")):u.push(2===o?j[I]:f.call.bind(j[I])):s(e,r,j)),P}function d(e){return s(e,u,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[u]),a=Object.create(null==a?null:a),c=function(){var n,r,i=[];function a(e){e&&i.push(f.bind(null,e,0))}for(var c=0;c