@launchdarkly/session-replay 0.4.12 → 0.5.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/CHANGELOG.md +7 -0
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @launchdarkly/session-replay
|
|
2
2
|
|
|
3
|
+
## [0.5.0](https://github.com/launchdarkly/observability-sdk/compare/session-replay-0.4.11...session-replay-0.5.0) (2025-12-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* publish umd for broser environments ([#334](https://github.com/launchdarkly/observability-sdk/issues/334)) ([3e90673](https://github.com/launchdarkly/observability-sdk/commit/3e90673e42335aeeef78cc807a07dfa21da19291))
|
|
9
|
+
|
|
3
10
|
## [0.4.11](https://github.com/launchdarkly/observability-sdk/compare/session-replay-0.4.10...session-replay-0.4.11) (2025-12-18)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(We,Ft){typeof exports=="object"&&typeof module<"u"?Ft(exports):typeof define=="function"&&define.amd?define(["exports"],Ft):(We=typeof globalThis<"u"?globalThis:We||self,Ft(We.
|
|
1
|
+
(function(We,Ft){typeof exports=="object"&&typeof module<"u"?Ft(exports):typeof define=="function"&&define.amd?define(["exports"],Ft):(We=typeof globalThis<"u"?globalThis:We||self,Ft(We.SessionReplay={}))})(this,function(We){"use strict";var Ft=Object.defineProperty,mu=(e,t,i)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Oe=(e,t,i)=>mu(e,typeof t!="symbol"?t+"":t,i),bu=(e,t,i)=>new Promise((n,s)=>{var r=a=>{try{o(i.next(a))}catch(c){s(c)}},l=a=>{try{o(i.throw(a))}catch(c){s(c)}},o=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,l);o((i=i.apply(e,t)).next())});const Dr=Object.create(null),Ge=(e,t,...i)=>{const n=`[@launchdarkly plugins]: (${e}): `;console[t].apply(console,[n,...i]),fu(n,...i)},it=(e,t,i,...n)=>{Dr[`${e}-${t}`]||(Dr[`${e}-${t}`]=!0,Ge(e,i,...n))},fu=(e,...t)=>bu(void 0,null,function*(){try{const{LDObserve:i}=yield Promise.resolve().then(()=>_g);i.recordLog(`${e}${t}`,"warn")}catch{}});class jr{constructor(t,i){Oe(this,"debug"),Oe(this,"name"),this.debug=t,this.name=i}log(...t){if(this.debug){let i=`[${Date.now()}]`;this.name&&(i+=` - ${this.name}`),console.log.apply(console,[i,...t])}}warn(...t){let i=`[${Date.now()}]`;this.name&&(i+=` - ${this.name}`),console.warn.apply(console,[i,...t])}}let Qn=class{constructor(){Oe(this,"_sdk"),Oe(this,"_isLoaded",!1),Oe(this,"_callBuffer",[]),Oe(this,"_capacity",1e5),Oe(this,"_droppedEvents",0),Oe(this,"_exceededCapacity",!1),Oe(this,"_logger",new jr)}_bufferCall(t,i){if(this._isLoaded)try{return this._sdk[t](...i)}catch(n){Ge(`Error executing buffered call to ${t}:`,"error",n)}else{this._enqueue({method:t,args:i});return}}_enqueue(t){this._callBuffer.length<this._capacity?(this._callBuffer.push(t),this._exceededCapacity=!1):(this._exceededCapacity||(this._exceededCapacity=!0,Ge("Exceeded event queue capacity. Increase capacity to avoid dropping events.","warn")),this._droppedEvents+=1)}load(t){this._sdk=t,this._isLoaded=!0;for(const{method:i,args:n}of this._callBuffer)try{this._sdk[i](...n)}catch(s){Ge(`Error executing buffered call to ${i}:`,"error",s)}this._callBuffer=[]}};var yu=Object.defineProperty,gu=Object.defineProperties,Zu=Object.getOwnPropertyDescriptors,Xi=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,An=(e,t,i)=>t in e?yu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,D=(e,t)=>{for(var i in t||(t={}))Qr.call(t,i)&&An(e,i,t[i]);if(Xi)for(var i of Xi(t))Ar.call(t,i)&&An(e,i,t[i]);return e},Ci=(e,t)=>gu(e,Zu(t)),Ut=(e,t)=>{var i={};for(var n in e)Qr.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&Xi)for(var n of Xi(e))t.indexOf(n)<0&&Ar.call(e,n)&&(i[n]=e[n]);return i},Kt=(e,t,i)=>An(e,typeof t!="symbol"?t+"":t,i),pt=(e,t,i)=>new Promise((n,s)=>{var r=a=>{try{o(i.next(a))}catch(c){s(c)}},l=a=>{try{o(i.throw(a))}catch(c){s(c)}},o=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,l);o((i=i.apply(e,t)).next())});function Iu(e,t){for(var i=0;i<t.length;i++){const n=t[i];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const r=Object.getOwnPropertyDescriptor(n,s);r&&Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Wi(e,t){throw new Error(t)}function Su(e){return typeof e=="object"&&e!==null}function Gu(e,t){throw new Error("Unexpected invariant triggered.")}const Vu=/\r\n|[\n\r]/g;function _n(e,t){let i=0,n=1;for(const s of e.body.matchAll(Vu)){if(typeof s.index=="number"||Gu(),s.index>=t)break;i=s.index+s[0].length,n+=1}return{line:n,column:t+1-i}}function Xu(e){return _r(e.source,_n(e.source,e.start))}function _r(e,t){const i=e.locationOffset.column-1,n="".padStart(i)+e.body,s=t.line-1,r=e.locationOffset.line-1,l=t.line+r,o=t.line===1?i:0,a=t.column+o,c=`${e.name}:${l}:${a}
|
|
2
2
|
`,u=n.split(/\r\n|[\n\r]/g),h=u[s];if(h.length>120){const p=Math.floor(a/80),m=a%80,b=[];for(let d=0;d<h.length;d+=80)b.push(h.slice(d,d+80));return c+$r([[`${l} |`,b[0]],...b.slice(1,p+1).map(d=>["|",d]),["|","^".padStart(m)],["|",b[p+1]]])}return c+$r([[`${l-1} |`,u[s-1]],[`${l} |`,h],["|","^".padStart(a)],[`${l+1} |`,u[s+1]]])}function $r(e){const t=e.filter(([n,s])=>s!==void 0),i=Math.max(...t.map(([n])=>n.length));return t.map(([n,s])=>n.padStart(i)+(s?" "+s:"")).join(`
|
|
3
3
|
`)}function Cu(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}let Wu=class lu extends Error{constructor(t,...i){var n,s,r;const{nodes:l,source:o,positions:a,path:c,originalError:u,extensions:h}=Cu(i);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=qr(Array.isArray(l)?l:l?[l]:void 0);const p=qr((n=this.nodes)===null||n===void 0?void 0:n.map(b=>b.loc).filter(b=>b!=null));this.source=o??(p==null||(s=p[0])===null||s===void 0?void 0:s.source),this.positions=a??p?.map(b=>b.start),this.locations=a&&o?a.map(b=>_n(o,b)):p?.map(b=>_n(b.source,b.start));const m=Su(u?.extensions)?u?.extensions:void 0;this.extensions=(r=h??m)!==null&&r!==void 0?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,lu):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const i of this.nodes)i.loc&&(t+=`
|
|
4
4
|
|