@sentry/replay 11.12.0 → 11.13.0
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/build/npm/cjs/index.js +6384 -8131
- package/build/npm/cjs/index.js.map +1 -1
- package/build/npm/cjs/worker-bundler.js +1 -1
- package/build/npm/esm/index.js +6377 -8123
- package/build/npm/esm/index.js.map +1 -1
- package/build/npm/esm/package.json +1 -1
- package/build/npm/esm/worker-bundler.js +1 -1
- package/package.json +12 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"11.
|
|
1
|
+
{"type":"module","version":"11.13.0","sideEffects":false}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=Uint8Array,r=Uint16Array,n=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new r(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new n(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return {b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new r(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1;}var d=function(t,n,e){for(var i=t.length,s=0,a=new r(n);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new r(n);for(s=1;s<n;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new r(1<<n);var f=15-n;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=n-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l;}else for(o=new r(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return (t+7)/8|0},b=function(r,n,e){return (null==e||e>r.length)&&(e=r.length),new t(r.subarray(n,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,r,n){var e=new Error(r||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!n)throw e;return e},z=function(t,r,n){n<<=7&r;var e=r/8|0;t[e]|=n,t[e+1]|=n>>8;},_=function(t,r,n){n<<=7&r;var e=r/8|0;t[e]|=n,t[e+1]|=n>>8,t[e+2]|=n>>16;},x=function(n,e){for(var i=[],s=0;s<n.length;++s)n[s]&&i.push({s:s,f:n[s]});var a=i.length,o=i.slice();if(!a)return {t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,r){return t.f-r.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new r(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,r){return p[r.s]-p[t.s]||t.f-r.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e;}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s;}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w);}g=e;}return {t:new t(p),l:g}},A=function(t,r,n){return -1==t.s?Math.max(A(t.l,r,n+1),A(t.r,r,n+1)):r[t.s]=n},D=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,s=t[0],a=1,o=function(t){e[i++]=t;},h=1;h<=n;++h)if(t[h]==s&&h!=n)++a;else {if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0);}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0);}for(;a--;)o(s);a=1,s=t[h];}return {c:e.subarray(0,i),n:n}},T=function(t,r){for(var n=0,e=0;e<r.length;++e)n+=t[e]*r[e];return n},k=function(t,r,n){var e=n.length,i=m(r+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=n[s];return 8*(i+4+e)},U=function(t,n,a,o,h,f,l,u,c,v,m){z(n,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new r(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(n,m,t.subarray(c,c+v));if(z(n,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(n,m,S-257),z(n,m+5,j-1),z(n,m+10,K-4),m+=14;for(B=0;B<K;++B)z(n,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var rt=31&tt[B];z(n,m,Y[rt]),m+=H[rt],rt>15&&(z(n,m,tt[B]>>5&127),m+=tt[B]>>12);}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var nt=o[B];if(nt>255){_(n,m,N[(rt=nt>>18&31)+257]),m+=P[rt+257],rt>7&&(z(n,m,nt>>23&31),m+=e[rt]);var et=31&nt;_(n,m,Q[et]),m+=R[et],et>3&&(_(n,m,nt>>5&8191),m+=i[et]);}else _(n,m,N[nt]),m+=P[nt];}return _(n,m,N[256]),m+P[256]},C=new n([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),r=0;r<256;++r){for(var n=r,e=9;--e;)n=(1&n&&-306674912)^n>>>1;t[r]=n;}return t}(),S=function(){var t=1,r=0;return {p:function(n){for(var e=t,i=r,s=0|n.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=n[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16);}t=e,r=i;},d:function(){return (255&(t%=65521))<<24|(65280&t)<<8|(255&(r%=65521))<<8|r>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length;}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new r(32768),x=c.h||new r(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return (s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new n(25e3),I=new r(288),S=new r(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0;}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),rt=0;for(P=0;P<tt;++P){var nt=j-W+P&32767,et=nt-_[nt]&32767;et>rt&&(rt=et,K=nt);}}}W+=(J=K)-(K=_[J])&32767;}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L;}else F[q++]=s[j],++I[s[j]];}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B);}else {for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at));}c.i=v;}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,r,n){for(;n;++r)t[r]=n,n>>>=8;},j=function(){function r(r,n){if("function"==typeof r&&(n=r,r={}),this.ondata=n,this.o=r||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length;}}return r.prototype.p=function(t,r){this.ondata(L(t,this.o,0,0,this.s),r);},r.prototype.push=function(r,n){this.ondata||E(5),this.s.l&&E(4);var e=r.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i;}var s=this.b.length-this.s.z;this.b.set(r.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(r.subarray(s),32768),this.s.z=r.length-s+32768,this.s.i=32766,this.s.w=32768;}else this.b.set(r,this.s.z),this.s.z+=r.length;this.s.l=1&n,(this.s.z>this.s.w+8191||n)&&(this.p(this.b,n||!1),this.s.w=this.s.i,this.s.i-=2),n&&(this.s=this.o={},this.b=F);},r.prototype.flush=function(r){if(this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,r){var n=new t(6);n[0]=this.s.r>>3;var e=k(n,this.s.r,F);this.s.r=0,this.ondata(n.subarray(0,e>>3),!1);}},r}();function q(t,r){r||(r={});var n=function(){var t=-1;return {p:function(r){for(var n=t,e=0;e<r.length;++e)n=I[255&n^r[e]]^n>>>8;t=n;},d:function(){return ~t}}}(),e=t.length;n.p(t);var i,s=L(t,r,10+((i=r).filename?i.filename.length+1:0),8),a=s.length;return function(t,r){var n=r.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=r.level<2?4:9==r.level?2:0,t[9]=3,0!=r.mtime&&O(t,4,Math.floor(new Date(r.mtime||Date.now())/1e3)),n){t[3]=8;for(var e=0;e<=n.length;++e)t[e+10]=n.charCodeAt(e);}}(s,r),O(s,a-8,n.d()),O(s,a-4,e),s}var B=function(){function t(t,r){this.c=S(),this.v=1,j.call(this,t,r);}return t.prototype.push=function(t,r){this.c.p(t),j.prototype.push.call(this,t,r);},t.prototype.p=function(t,r){var n=L(t,this.o,this.v&&(this.o.dictionary?6:2),r&&4,this.s);this.v&&(function(t,r){var n=r.level,e=0==n?0:n<6?1:9==n?3:2;if(t[0]=120,t[1]=e<<6|(r.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,r.dictionary){var i=S();i.p(r.dictionary),O(t,2,i.d());}}(n,this.o),this.v=0),r&&O(n,n.length-4,this.c.d()),this.ondata(n,r);},t.prototype.flush=function(t){j.prototype.flush.call(this,t);},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0});}catch(t){}var J=function(){function t(t){this.ondata=t;}return t.prototype.push=function(t,r){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=r||!1);},t}();function K(r,n){if(G)return G.encode(r);for(var e=r.length,i=new t(r.length+(r.length>>1)),s=0,a=function(t){i[s++]=t;},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h;}var f=r.charCodeAt(o);f<128||n?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&r.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f));}return b(i,0,s)}const N=new class{constructor(){this._init();}clear(){this._init();}addEvent(t){if(!t)throw new Error("Adding invalid event");const r=this._hasEvents?",":"";this.stream.push(r+t),this._hasEvents=!0;}finish(){this.stream.push("]",!0);const t=function(t){let r=0;for(const n of t)r+=n.length;const n=new Uint8Array(r);for(let r=0,e=0,i=t.length;r<i;r++){const i=t[r];n.set(i,e),e+=i.length;}return n}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,r)=>{this._deflatedData.push(t);},this.stream=new J((t,r)=>{this.deflate.push(t,r);}),this.stream.push("[");}},P={clear:()=>{N.clear();},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const r=t.data.method,n=t.data.id,e=t.data.arg;if(r in P&&"function"==typeof P[r])try{const t=P[r](e);postMessage({id:n,method:r,success:!0,response:t});}catch(t){postMessage({id:n,method:r,success:!1,response:t.message}),console.error(t);}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
|
|
1
|
+
var e=Uint8Array,t=Uint16Array,n=Int32Array,r=new e([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new e([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new e([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(e,r){for(var i=new t(31),a=0;a<31;++a)i[a]=r+=1<<e[a-1];for(var o=new n(i[30]),a=1;a<30;++a)for(var s=i[a];s<i[a+1];++s)o[s]=s-i[a]<<5|a;return{b:i,r:o}},s=o(r,2),c=s.b,l=s.r;c[28]=258,l[258]=28;for(var u=o(i,0).r,d=new t(32768),f=0;f<32768;++f){var p=(f&43690)>>1|(f&21845)<<1;p=(p&52428)>>2|(p&13107)<<2,p=(p&61680)>>4|(p&3855)<<4,d[f]=((p&65280)>>8|(p&255)<<8)>>1}for(var m=(function(e,n,r){for(var i=e.length,a=0,o=new t(n);a<i;++a)e[a]&&++o[e[a]-1];var s=new t(n);for(a=1;a<n;++a)s[a]=s[a-1]+o[a-1]<<1;var c;if(r){c=new t(1<<n);var l=15-n;for(a=0;a<i;++a)if(e[a])for(var u=a<<4|e[a],f=n-e[a],p=s[e[a]-1]++<<f,m=p|(1<<f)-1;p<=m;++p)c[d[p]>>l]=u}else for(c=new t(i),a=0;a<i;++a)e[a]&&(c[a]=d[s[e[a]-1]++]>>15-e[a]);return c}),h=new e(288),f=0;f<144;++f)h[f]=8;for(var f=144;f<256;++f)h[f]=9;for(var f=256;f<280;++f)h[f]=7;for(var f=280;f<288;++f)h[f]=8;for(var g=new e(32),f=0;f<32;++f)g[f]=5;var _=/*#__PURE__*/ m(h,9,0),v=/*#__PURE__*/ m(g,5,0),y=function(e){return(e+7)/8|0},b=function(t,n,r){return(n==null||n<0)&&(n=0),(r==null||r>t.length)&&(r=t.length),new e(t.subarray(n,r))},x=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],S=function(e,t,n){var r=Error(t||x[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,S),!n)throw r;return r},C=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},w=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},T=function(n,r){for(var i=[],a=0;a<n.length;++a)n[a]&&i.push({s:a,f:n[a]});var o=i.length,s=i.slice();if(!o)return{t:k,l:0};if(o==1){var c=new e(i[0].s+1);return c[i[0].s]=1,{t:c,l:1}}i.sort(function(e,t){return e.f-t.f}),i.push({s:-1,f:25001});var l=i[0],u=i[1],d=0,f=1,p=2;for(i[0]={s:-1,f:l.f+u.f,l,r:u};f!=o-1;)l=i[i[d].f<i[p].f?d++:p++],u=i[d!=f&&i[d].f<i[p].f?d++:p++],i[f++]={s:-1,f:l.f+u.f,l,r:u};for(var m=s[0].s,a=1;a<o;++a)s[a].s>m&&(m=s[a].s);var h=new t(m+1),g=E(i[f-1],h,0);if(g>r){var a=0,_=0,v=g-r,y=1<<v;for(s.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});a<o;++a){var b=s[a].s;if(h[b]>r)_+=y-(1<<g-h[b]),h[b]=r;else break}for(_>>=v;_>0;){var x=s[a].s;h[x]<r?_-=1<<r-h[x]++-1:++a}for(;a>=0&&_;--a){var S=s[a].s;h[S]==r&&(--h[S],++_)}g=r}return{t:new e(h),l:g}},E=function(e,t,n){return e.s==-1?Math.max(E(e.l,t,n+1),E(e.r,t,n+1)):t[e.s]=n},ee=function(e){for(var n=e.length;n&&!e[--n];);for(var r=new t(++n),i=0,a=e[0],o=1,s=function(e){r[i++]=e},c=1;c<=n;++c)if(e[c]==a&&c!=n)++o;else{if(!a&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(a),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(a);o=1,a=e[c]}return{c:r.subarray(0,i),n}},D=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},te=function(e,t,n){var r=n.length,i=y(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=n[a];return(i+4+r)*8},O=function(e,n,o,s,c,l,u,d,f,p,y){C(n,y++,o),++c[256];for(var b=T(c,15),x=b.t,S=b.l,E=T(l,15),O=E.t,ne=E.l,k=ee(x),A=k.c,j=k.n,M=ee(O),N=M.c,P=M.n,F=new t(19),I=0;I<A.length;++I)++F[A[I]&31];for(var I=0;I<N.length;++I)++F[N[I]&31];for(var L=T(F,7),R=L.t,z=L.l,B=19;B>4&&!R[a[B-1]];--B);var V=p+5<<3,H=D(c,h)+D(l,g)+u,U=D(c,x)+D(l,O)+u+14+3*B+D(F,R)+2*F[16]+3*F[17]+7*F[18];if(f>=0&&V<=H&&V<=U)return te(n,y,e.subarray(f,f+p));var W,G,K,q;if(C(n,y,1+(U<H)),y+=2,U<H){W=m(x,S,0),G=x,K=m(O,ne,0),q=O;var re=m(R,z,0);C(n,y,j-257),C(n,y+5,P-1),C(n,y+10,B-4),y+=14;for(var I=0;I<B;++I)C(n,y+3*I,R[a[I]]);y+=3*B;for(var J=[A,N],Y=0;Y<2;++Y)for(var X=J[Y],I=0;I<X.length;++I){var Z=X[I]&31;C(n,y,re[Z]),y+=R[Z],Z>15&&(C(n,y,X[I]>>5&127),y+=X[I]>>12)}}else W=_,G=h,K=v,q=g;for(var I=0;I<d;++I){var Q=s[I];if(Q>255){var Z=Q>>18&31;w(n,y,W[Z+257]),y+=G[Z+257],Z>7&&(C(n,y,Q>>23&31),y+=r[Z]);var $=Q&31;w(n,y,K[$]),y+=q[$],$>3&&(w(n,y,Q>>5&8191),y+=i[$])}else w(n,y,W[Q]),y+=G[Q]}return w(n,y,W[256]),y+G[256]},ne=/*#__PURE__*/ new n([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),k=/*#__PURE__*/ new e(0),A=function(a,o,s,c,d,f){var p=f.z||a.length,m=new e(c+p+5*(1+Math.ceil(p/7e3))+d),h=m.subarray(c,m.length-d),g=f.l,_=(f.r||0)&7;if(o){_&&(h[0]=f.r>>3);for(var v=ne[o-1],x=v>>13,S=v&8191,C=(1<<s)-1,w=f.p||new t(32768),T=f.h||new t(C+1),E=Math.ceil(s/3),ee=2*E,D=function(e){return(a[e]^a[e+1]<<E^a[e+2]<<ee)&C},k=new n(25e3),A=new t(288),j=new t(32),M=0,N=0,P=f.i||0,F=0,I=f.w||0,L=0;P+2<p;++P){var R=D(P),z=P&32767,B=T[R];if(w[z]=B,T[R]=z,I<=P){var V=p-P;if((M>7e3||F>24576)&&(V>423||!g)){_=O(a,h,0,k,A,j,N,F,L,P-L,_),F=M=N=0,L=P;for(var H=0;H<286;++H)A[H]=0;for(var H=0;H<30;++H)j[H]=0}var U=2,W=0,G=S,K=z-B&32767;if(V>2&&R==D(P-K))for(var q=Math.min(x,V)-1,re=Math.min(32767,P),J=Math.min(258,V);K<=re&&--G&&z!=B;){if(a[P+U]==a[P+U-K]){for(var Y=0;Y<J&&a[P+Y]==a[P+Y-K];++Y);if(Y>U){if(U=Y,W=K,Y>q)break;for(var X=Math.min(K,Y-2),Z=0,H=0;H<X;++H){var Q=P-K+H&32767,$=Q-w[Q]&32767;$>Z&&(Z=$,B=Q)}}}z=B,B=w[z],K+=z-B&32767}if(W){k[F++]=268435456|l[U]<<18|u[W];var ie=l[U]&31,ae=u[W]&31;N+=r[ie]+i[ae],++A[257+ie],++j[ae],I=P+U,++M}else k[F++]=a[P],++A[a[P]]}}for(P=Math.max(P,I);P<p;++P)k[F++]=a[P],++A[a[P]];_=O(a,h,g,k,A,j,N,F,L,P-L,_),g||(f.r=_&7|h[_/8|0]<<3,_-=7,f.h=T,f.p=w,f.i=P,f.w=I)}else{for(var P=f.w||0;P<p+g;P+=65535){var oe=P+65535;oe>=p&&(h[_/8|0]=g,oe=p),_=te(h,_+1,a.subarray(P,oe))}f.i=p}return b(m,0,c+y(_)+d)},j=/*#__PURE__*/ (function(){for(var e=/* @__PURE__ */ new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(n&1&&-306674912)^n>>>1;e[t]=n}return e})(),M=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=j[n&255^t[r]]^n>>>8;e=n},d:function(){return~e}}},N=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},P=function(t,n,r,i,a){if(!a&&(a={l:1},n.dictionary)){var o=n.dictionary.subarray(-32768),s=new e(o.length+t.length);s.set(o),s.set(t,o.length),t=s,a.w=o.length}return A(t,n.level==null?6:n.level,n.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,r,i,a)},F=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},I=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&F(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},L=function(e){return 10+(e.filename?e.filename.length+1:0)},R=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=N();i.p(t.dictionary),F(e,2,i.d())}},z=/* @__PURE__ */ function(){function t(t,n){if(typeof t==`function`&&(n=t,t={}),this.ondata=n,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new e(98304),this.o.dictionary){var r=this.o.dictionary.subarray(-32768);this.b.set(r,32768-r.length),this.s.i=32768-r.length}}return t.prototype.p=function(e,t){this.ondata(P(e,this.o,0,0,this.s),t)},t.prototype.push=function(t,n){this.ondata||S(5),this.s.l&&S(4);var r=t.length+this.s.z;if(r>this.b.length){if(r>2*this.b.length-32768){var i=new e(r&-32768);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;this.b.set(t.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(a),32768),this.s.z=t.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=n&1,(this.s.z>this.s.w+8191||n)&&(this.p(this.b,n||!1),this.s.w=this.s.i,this.s.i-=2),n&&(this.s=this.o={},this.b=k)},t.prototype.flush=function(t){if(this.ondata||S(5),this.s.l&&S(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,t){var n=new e(6);n[0]=this.s.r>>3;var r=te(n,this.s.r,k);this.s.r=0,this.ondata(n.subarray(0,r>>3),!1)}},t}();function B(e,t){t||(t={});var n=M(),r=e.length;n.p(e);var i=P(e,t,L(t),8),a=i.length;return I(i,t),F(i,a-8,n.d()),F(i,a-4,r),i}var V=/* @__PURE__ */ function(){function e(e,t){this.c=N(),this.v=1,z.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),z.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var n=P(e,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(R(n,this.o),this.v=0),t&&F(n,n.length-4,this.c.d()),this.ondata(n,t)},e.prototype.flush=function(e){z.prototype.flush.call(this,e)},e}(),H=typeof TextEncoder<`u`&&/*#__PURE__*/ new TextEncoder,U=typeof TextDecoder<`u`&&/*#__PURE__*/ new TextDecoder;try{U.decode(k,{stream:!0})}catch{}var W=/* @__PURE__ */ function(){function e(e){this.ondata=e}return e.prototype.push=function(e,t){this.ondata||S(5),this.d&&S(4),this.ondata(G(e),this.d=t||!1)},e}();function G(t,n){if(n){for(var r=new e(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}if(H)return H.encode(t);for(var a=t.length,o=new e(t.length+(t.length>>1)),s=0,c=function(e){o[s++]=e},i=0;i<a;++i){if(s+5>o.length){var l=new e(s+8+(a-i<<1));l.set(o),o=l}var u=t.charCodeAt(i);u<128||n?c(u):u<2048?(c(192|u>>6),c(128|u&63)):u>55295&&u<57344?(u=65536+(u&1047552)|t.charCodeAt(++i)&1023,c(240|u>>18),c(128|u>>12&63),c(128|u>>6&63),c(128|u&63)):(c(224|u>>12),c(128|u>>6&63),c(128|u&63))}return b(o,0,s)}var K=class{constructor(){this._init()}clear(){this._init()}addEvent(e){if(!e)throw Error(`Adding invalid event`);let t=this._hasEvents?`,`:``;this.stream.push(t+e),this._hasEvents=!0}finish(){this.stream.push(`]`,!0);let e=re(this._deflatedData);return this._init(),e}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new V,this.deflate.ondata=(e,t)=>{this._deflatedData.push(e)},this.stream=new W((e,t)=>{this.deflate.push(e,t)}),this.stream.push(`[`)}};function q(e){return B(G(e))}function re(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}const J=new K,Y={clear:()=>{J.clear()},addEvent:e=>J.addEvent(e),finish:()=>J.finish(),compress:e=>q(e)};function X(e){let t=e.data.method,n=e.data.id,r=e.data.arg;if(t in Y&&typeof Y[t]==`function`)try{let e=Y[t](r);postMessage({id:n,method:t,success:!0,response:e})}catch(e){postMessage({id:n,method:t,success:!1,response:e.message}),console.error(e)}}addEventListener(`message`,X),postMessage({id:void 0,method:`init`,success:!0,response:void 0});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/replay",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.13.0",
|
|
4
4
|
"description": "User replays for Sentry",
|
|
5
5
|
"main": "build/npm/cjs/index.js",
|
|
6
6
|
"module": "build/npm/esm/index.js",
|
|
@@ -48,42 +48,37 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://docs.sentry.io/platforms/javascript/session-replay/",
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@sentry-internal/replay-worker": "11.
|
|
52
|
-
"@sentry-internal/rollup-utils": "11.
|
|
53
|
-
"@sentry/conventions": "^0.
|
|
51
|
+
"@sentry-internal/replay-worker": "11.13.0",
|
|
52
|
+
"@sentry-internal/rollup-utils": "11.13.0",
|
|
53
|
+
"@sentry/conventions": "^0.33.0",
|
|
54
54
|
"@sentry/rrweb": "2.46.0",
|
|
55
55
|
"@sentry/rrweb-snapshot": "2.46.0",
|
|
56
56
|
"fflate": "0.8.3",
|
|
57
57
|
"jsdom-worker": "^0.3.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@sentry/browser-utils": "11.
|
|
61
|
-
"@sentry/core": "11.
|
|
60
|
+
"@sentry/browser-utils": "11.13.0",
|
|
61
|
+
"@sentry/core": "11.13.0"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
|
-
"build": "run
|
|
68
|
-
"build:transpile": "
|
|
69
|
-
"build:bundle": "
|
|
70
|
-
"build:dev": "run
|
|
67
|
+
"build": "pnpm run \"/^build:(transpile|types|bundle)$/\"",
|
|
68
|
+
"build:transpile": "rolldown -c rollup.npm.config.mjs",
|
|
69
|
+
"build:bundle": "rolldown -c rollup.bundle.config.mjs",
|
|
70
|
+
"build:dev": "pnpm run \"/^build:(transpile|types)$/\"",
|
|
71
71
|
"build:types": "tsc -p tsconfig.types.json",
|
|
72
|
-
"build:watch": "run-p build:transpile:watch build:bundle:watch",
|
|
73
|
-
"build:dev:watch": "run-p build:transpile:watch",
|
|
74
|
-
"build:transpile:watch": "pnpm run build:transpile --watch",
|
|
75
|
-
"build:bundle:watch": "pnpm run build:bundle --watch",
|
|
76
72
|
"build:tarball": "pnpm pack",
|
|
77
|
-
"circularDepCheck": "madge --circular src/index.ts",
|
|
78
73
|
"clean": "node ../../scripts/rm.mjs build sentry-replay-*.tgz",
|
|
79
74
|
"format": "oxfmt \"src/**/*.ts\" \"test/**/*.ts\" --write",
|
|
80
75
|
"format:check": "oxfmt \"src/**/*.ts\" \"test/**/*.ts\" --check",
|
|
81
76
|
"lint": "oxlint . --type-aware",
|
|
82
77
|
"lint:types": "oxlint src --type-aware --type-check",
|
|
83
78
|
"lint:fix": "oxlint . --fix --type-aware",
|
|
84
|
-
"lint:es-compatibility": "
|
|
79
|
+
"lint:es-compatibility": "node ../../scripts/es-check.mjs es2020",
|
|
85
80
|
"test": "vitest run",
|
|
86
81
|
"test:watch": "vitest --watch",
|
|
87
|
-
"yalc:publish": "yalc publish --push --sig"
|
|
82
|
+
"yalc:publish": "pnpm dlx yalc publish --push --sig"
|
|
88
83
|
}
|
|
89
84
|
}
|