OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
bump: sdks
Carl-Gerhard Lindesvärd4d7eb201f90a
diff --git a/apps/public/public/op1.js b/apps/public/public/op1.jsindex 1dcab2882..3f0a77dab 100644--- a/apps/public/public/op1.js+++ b/apps/public/public/op1.js@@ -1 +1 @@-"use strict";(()=>{var g=Object.create;var h=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var b=(a,e)=>()=>(e||a((e={exports:{}}).exports,e),e.exports);var I=(a,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of v(e))!k.call(a,s)&&s!==t&&h(a,s,{get:()=>e[s],enumerable:!(r=P(e,s))||r.enumerable});return a};var w=(a,e,t)=>(t=a!=null?g(m(a)):{},I(e||!a||!a.__esModule?h(t,"default",{value:a,enumerable:!0}):t,a));var f=b((A,y)=>{"use strict";y.exports={}});var d=class{constructor(e){this.baseUrl=e.baseUrl,this.headers={"Content-Type":"application/json",...e.defaultHeaders},this.maxRetries=e.maxRetries??3,this.initialRetryDelay=e.initialRetryDelay??500}async resolveHeaders(){let e={};for(let[t,r]of Object.entries(this.headers)){let s=await r;s!==null&&(e[t]=s)}return e}addHeader(e,t){this.headers[e]=t}async post(e,t,r,s){try{let n=await fetch(e,{method:"POST",headers:await this.resolveHeaders(),body:t?JSON.stringify(t??{}):void 0,keepalive:!0,...r});if(n.status===401)return null;if(n.status!==200&&n.status!==202)throw new Error(`HTTP error! status: ${n.status}`);let i=await n.text();return i?JSON.parse(i):null}catch(n){if(s<this.maxRetries){let i=this.initialRetryDelay*2**s;return await new Promise(o=>setTimeout(o,i)),this.post(e,t,r,s+1)}return console.error("Max retries reached:",n),null}}async fetch(e,t,r={}){let s=`${this.baseUrl}${e}`;return this.post(s,t,r,0)}};var l=class{constructor(e){this.groups=[];this.queue=[];this.options=e;let t={"openpanel-client-id":e.clientId};e.clientSecret&&(t["openpanel-client-secret"]=e.clientSecret),t["openpanel-sdk-name"]=e.sdk||"node",t["openpanel-sdk-version"]=e.sdkVersion||process.env.SDK_VERSION,this.api=new d({baseUrl:e.apiUrl||"https://api.openpanel.dev",defaultHeaders:t})}init(){}ready(){this.options.disabled=!1,this.options.waitForProfile=!1,this.flush()}shouldQueue(e){return!!(this.options.disabled||this.options.waitForProfile&&!this.profileId||e.type==="replay"&&!this.sessionId)}addQueue(e){e.type==="track"&&(e.payload.properties={...e.payload.properties??{},__timestamp:new Date().toISOString()}),this.queue.push(e)}async send(e){if(this.options.filter&&!this.options.filter(e))return Promise.resolve();if(this.shouldQueue(e))return this.addQueue(e),Promise.resolve();let t=await this.api.fetch("/track",e,{keepalive:e.type!=="replay"});this.deviceId=t?.deviceId;let r=!!this.sessionId;return this.sessionId=t?.sessionId,!r&&this.sessionId&&this.flush(),t}setGlobalProperties(e){this.global={...this.global,...e}}track(e,t){this.log("track event",e,t);let{groups:r,profileId:s,...n}=t??{},i=[...new Set([...this.groups,...r??[]])];return this.send({type:"track",payload:{name:e,profileId:s??this.profileId,groups:i.length>0?i:void 0,properties:{...this.global??{},...n}}})}identify(e){if(this.log("identify user",e),e.profileId&&(this.profileId=e.profileId,this.flush()),e.profileId&&Object.keys(e).length>1)return this.send({type:"identify",payload:{...e,properties:{...this.global,...e.properties}}})}upsertGroup(e){return this.log("upsert group",e),this.send({type:"group",payload:e})}setGroup(e){return this.log("set group",e),this.groups.includes(e)||(this.groups=[...this.groups,e]),this.send({type:"assign_group",payload:{groupIds:[e],profileId:this.profileId}})}setGroups(e){return this.log("set groups",e),this.groups=[...new Set([...this.groups,...e])],this.send({type:"assign_group",payload:{groupIds:e,profileId:this.profileId}})}alias(e){}increment(e){return this.send({type:"increment",payload:e})}decrement(e){return this.send({type:"decrement",payload:e})}revenue(e,t){let r=t?.deviceId;return delete t?.deviceId,this.track("revenue",{...t??{},...r?{__deviceId:r}:{},__revenue:e})}getDeviceId(){return this.deviceId??""}getSessionId(){return this.sessionId??""}fetchDeviceId(){return Promise.resolve(this.deviceId??"")}clear(){this.profileId=void 0,this.groups=[],this.deviceId=void 0,this.sessionId=void 0}buildFlushPayload(e){if(e.type==="replay")return e.payload;if(e.type==="track"){let t="groups"in e.payload?e.payload.groups??[]:[],r=[...new Set([...this.groups,...t])];return{...e.payload,profileId:e.payload.profileId??this.profileId,groups:r.length>0?r:void 0}}return e.type==="identify"||e.type==="increment"||e.type==="decrement"?{...e.payload,profileId:e.payload.profileId??this.profileId}:e.type==="assign_group"?{...e.payload,profileId:e.payload.profileId??this.profileId}:e.payload}flush(){let e=[];for(let t of this.queue){if(this.shouldQueue(t)){e.push(t);continue}let r=this.buildFlushPayload(t);this.send({...t,payload:r})}this.queue=e}log(...e){this.options.debug&&console.log("[OpenPanel.dev]",...e)}};var R=typeof document<"u"?document.currentScript:null;function S(a){return a.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace("-","").replace("_",""))}var c=class extends l{constructor(t){super({sdk:"web",sdkVersion:"1.4.0",...t});this.options=t;this.lastPath="";this.pendingRevenues=[];if(!this.isServer()){try{let r=sessionStorage.getItem("openpanel-pending-revenues");if(r){let s=JSON.parse(r);Array.isArray(s)&&(this.pendingRevenues=s)}}catch{this.pendingRevenues=[]}if(this.setGlobalProperties({__referrer:document.referrer}),this.options.trackScreenViews&&(this.trackScreenViews(),setTimeout(()=>this.screenView(),0)),this.options.trackOutgoingLinks&&this.trackOutgoingLinks(),this.options.trackAttributes&&this.trackAttributes(),this.options.sessionReplay?.enabled){let r=this.options.sessionReplay.sampleRate??1;Math.random()<r&&this.loadReplayModule().then(n=>{n&&n.startReplayRecorder(this.options.sessionReplay,i=>{this.send({type:"replay",payload:{...i}})})})}}}async loadReplayModule(){try{{let t=R,r=this.options.sessionReplay?.scriptUrl||t?.src?.replace(".js","-replay.js")||"https://openpanel.dev/op1-replay.js";return window.__openpanel_replay?window.__openpanel_replay:new Promise(s=>{let n=document.createElement("script");n.src=r,n.onload=()=>{s(window.__openpanel_replay??null)},n.onerror=()=>{console.warn("[OpenPanel] Failed to load replay script from",r),s(null)},document.head.appendChild(n)})}return await Promise.resolve().then(()=>w(f(),1))}catch(t){return console.warn("[OpenPanel] Failed to load replay module",t),null}}debounce(t,r){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(t,r)}isServer(){return typeof document>"u"}trackOutgoingLinks(){this.isServer()||document.addEventListener("click",t=>{let r=t.target,s=r.closest("a");if(s&&r){let n=s.getAttribute("href");if(n?.startsWith("http"))try{let i=new URL(n),o=window.location.hostname;i.hostname!==o&&super.track("link_out",{href:n,text:s.innerText||s.getAttribute("title")||r.getAttribute("alt")||r.getAttribute("title")})}catch{}}})}trackScreenViews(){if(this.isServer())return;let t=history.pushState;history.pushState=function(...i){let o=t.apply(this,i);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),o};let r=history.replaceState;history.replaceState=function(...i){let o=r.apply(this,i);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),o},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))});let s=()=>this.debounce(()=>this.screenView(),50);this.options.trackHashChanges?window.addEventListener("hashchange",s):window.addEventListener("locationchange",s)}trackAttributes(){this.isServer()||document.addEventListener("click",t=>{let r=t.target,s=r.closest("button"),n=r.closest("a"),i=s?.getAttribute("data-track")?s:n?.getAttribute("data-track")?n:null;if(i){let o={};for(let p of i.attributes)p.name.startsWith("data-")&&p.name!=="data-track"&&(o[S(p.name.replace(/^data-/,""))]=p.value);let u=i.getAttribute("data-track");u&&super.track(u,o)}})}track(t,r){return super.track(t,{...r,__path:this.lastPath})}screenView(t,r){if(this.isServer())return;let s,n;typeof t=="string"?(s=t,n=r):(s=window.location.href,n=t),this.lastPath!==s&&(this.lastPath=s,super.track("screen_view",{...n??{},__path:s,__title:document.title}))}async flushRevenue(){let t=this.pendingRevenues.map(r=>super.revenue(r.amount,r.properties));await Promise.all(t),this.clearRevenue()}clearRevenue(){if(this.pendingRevenues=[],!this.isServer())try{sessionStorage.removeItem("openpanel-pending-revenues")}catch{}}pendingRevenue(t,r){if(this.pendingRevenues.push({amount:t,properties:r}),!this.isServer())try{sessionStorage.setItem("openpanel-pending-revenues",JSON.stringify(this.pendingRevenues))}catch{}}};(a=>{if(a.op){let e=a.op.q||[],t=new c(e.shift()[1]);e.forEach(s=>{s[0]in t&&t[s[0]](...s.slice(1))});let r=new Proxy((s,...n)=>{let i=t[s]?t[s].bind(t):void 0;typeof i=="function"?i(...n):console.warn(`OpenPanel: ${s} is not a function`)},{get(s,n){if(n==="q")return;let i=t[n];return typeof i=="function"?i.bind(t):i}});a.op=r,a.openpanel=t}})(window);})();+"use strict";(()=>{var y=Object.create;var c=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var w=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var b=(e,s,t,i)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of v(s))!k.call(e,n)&&n!==t&&c(e,n,{get:()=>s[n],enumerable:!(i=g(s,n))||i.enumerable});return e};var I=(e,s,t)=>(t=e!=null?y(m(e)):{},b(s||!e||!e.__esModule?c(t,"default",{value:e,enumerable:!0}):t,e));var f=w((x,h)=>{"use strict";h.exports={}});var P=class{constructor(e){this.baseUrl=e.baseUrl,this.headers={"Content-Type":"application/json",...e.defaultHeaders},this.maxRetries=e.maxRetries??3,this.initialRetryDelay=e.initialRetryDelay??500}async resolveHeaders(){let e={};for(let[s,t]of Object.entries(this.headers)){let i=await t;i!==null&&(e[s]=i)}return e}addHeader(e,s){this.headers[e]=s}async post(e,s,t,i){try{let n=await fetch(e,{method:"POST",headers:await this.resolveHeaders(),body:s?JSON.stringify(s??{}):void 0,keepalive:!0,...t});if(n.status===401)return null;if(n.status!==200&&n.status!==202)throw new Error(`HTTP error! status: ${n.status}`);let r=await n.text();return r?JSON.parse(r):null}catch(n){if(i<this.maxRetries){let r=this.initialRetryDelay*2**i;return await new Promise(o=>setTimeout(o,r)),this.post(e,s,t,i+1)}return console.error("Max retries reached:",n),null}}async fetch(e,s,t={}){let i=`${this.baseUrl}${e}`;return this.post(i,s,t,0)}},d=class{constructor(e){this.groups=[],this.queue=[],this.options=e;let s={"openpanel-client-id":e.clientId};e.clientSecret&&(s["openpanel-client-secret"]=e.clientSecret),s["openpanel-sdk-name"]=e.sdk||"node",s["openpanel-sdk-version"]=e.sdkVersion||"1.3.1",this.api=new P({baseUrl:e.apiUrl||"https://api.openpanel.dev",defaultHeaders:s})}init(){}ready(){this.options.disabled=!1,this.options.waitForProfile=!1,this.flush()}shouldQueue(e){return!!(this.options.disabled||this.options.waitForProfile&&!this.profileId||e.type==="replay"&&!this.sessionId)}addQueue(e){e.type==="track"&&(e.payload.properties={...e.payload.properties??{},__timestamp:new Date().toISOString()}),this.queue.push(e)}async send(e){if(this.options.filter&&!this.options.filter(e))return Promise.resolve();if(this.shouldQueue(e))return this.addQueue(e),Promise.resolve();let s=await this.api.fetch("/track",e,{keepalive:e.type!=="replay"});this.deviceId=s?.deviceId;let t=!!this.sessionId;return this.sessionId=s?.sessionId,!t&&this.sessionId&&this.flush(),s}setGlobalProperties(e){this.global={...this.global,...e}}track(e,s){this.log("track event",e,s);let{groups:t,profileId:i,...n}=s??{},r=[...new Set([...this.groups,...t??[]])];return this.send({type:"track",payload:{name:e,profileId:i??this.profileId,groups:r.length>0?r:void 0,properties:{...this.global??{},...n}}})}identify(e){if(this.log("identify user",e),e.profileId&&(this.profileId=e.profileId,this.flush()),e.profileId&&Object.keys(e).length>1)return this.send({type:"identify",payload:{...e,properties:{...this.global,...e.properties}}})}upsertGroup(e){return this.log("upsert group",e),this.send({type:"group",payload:e})}setGroup(e){return this.log("set group",e),this.groups.includes(e)||(this.groups=[...this.groups,e]),this.send({type:"assign_group",payload:{groupIds:[e],profileId:this.profileId}})}setGroups(e){return this.log("set groups",e),this.groups=[...new Set([...this.groups,...e])],this.send({type:"assign_group",payload:{groupIds:e,profileId:this.profileId}})}alias(e){}increment(e){return this.send({type:"increment",payload:e})}decrement(e){return this.send({type:"decrement",payload:e})}revenue(e,s){let t=s?.deviceId;return delete s?.deviceId,this.track("revenue",{...s??{},...t?{__deviceId:t}:{},__revenue:e})}getDeviceId(){return this.deviceId??""}getSessionId(){return this.sessionId??""}fetchDeviceId(){return Promise.resolve(this.deviceId??"")}clear(){this.profileId=void 0,this.groups=[],this.deviceId=void 0,this.sessionId=void 0}buildFlushPayload(e){if(e.type==="replay")return e.payload;if(e.type==="track"){let s="groups"in e.payload?e.payload.groups??[]:[],t=[...new Set([...this.groups,...s])];return{...e.payload,profileId:e.payload.profileId??this.profileId,groups:t.length>0?t:void 0}}return e.type==="identify"||e.type==="increment"||e.type==="decrement"?{...e.payload,profileId:e.payload.profileId??this.profileId}:e.type==="assign_group"?{...e.payload,profileId:e.payload.profileId??this.profileId}:e.payload}flush(){let e=[];for(let s of this.queue){if(this.shouldQueue(s)){e.push(s);continue}let t=this.buildFlushPayload(s);this.send({...s,payload:t})}this.queue=e}log(...e){this.options.debug&&console.log("[OpenPanel.dev]",...e)}};var S=typeof document<"u"?document.currentScript:null;function R(e){return e.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace("-","").replace("_",""))}var l=class extends d{constructor(t){super({sdk:"web",sdkVersion:"1.4.1",...t});this.options=t;this.lastPath="";this.pendingRevenues=[];if(!this.isServer()){try{let i=sessionStorage.getItem("openpanel-pending-revenues");if(i){let n=JSON.parse(i);Array.isArray(n)&&(this.pendingRevenues=n)}}catch{this.pendingRevenues=[]}if(this.setGlobalProperties({__referrer:document.referrer}),this.options.trackScreenViews&&(this.trackScreenViews(),setTimeout(()=>this.screenView(),0)),this.options.trackOutgoingLinks&&this.trackOutgoingLinks(),this.options.trackAttributes&&this.trackAttributes(),this.options.sessionReplay?.enabled){let i=this.options.sessionReplay.sampleRate??1;Math.random()<i&&this.loadReplayModule().then(r=>{r&&r.startReplayRecorder(this.options.sessionReplay,o=>{this.send({type:"replay",payload:{...o}})})})}}}async loadReplayModule(){try{{let t=S,i=this.options.sessionReplay?.scriptUrl||t?.src?.replace(".js","-replay.js")||"https://openpanel.dev/op1-replay.js";return window.__openpanel_replay?window.__openpanel_replay:new Promise(n=>{let r=document.createElement("script");r.src=i,r.onload=()=>{n(window.__openpanel_replay??null)},r.onerror=()=>{console.warn("[OpenPanel] Failed to load replay script from",i),n(null)},document.head.appendChild(r)})}return await Promise.resolve().then(()=>I(f(),1))}catch(t){return console.warn("[OpenPanel] Failed to load replay module",t),null}}debounce(t,i){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(t,i)}isServer(){return typeof document>"u"}trackOutgoingLinks(){this.isServer()||document.addEventListener("click",t=>{let i=t.target,n=i.closest("a");if(n&&i){let r=n.getAttribute("href");if(r?.startsWith("http"))try{let o=new URL(r),a=window.location.hostname;o.hostname!==a&&super.track("link_out",{href:r,text:n.innerText||n.getAttribute("title")||i.getAttribute("alt")||i.getAttribute("title")})}catch{}}})}trackScreenViews(){if(this.isServer())return;let t=history.pushState;history.pushState=function(...o){let a=t.apply(this,o);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),a};let i=history.replaceState;history.replaceState=function(...o){let a=i.apply(this,o);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),a},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))});let n=()=>this.debounce(()=>this.screenView(),50);this.options.trackHashChanges?window.addEventListener("hashchange",n):window.addEventListener("locationchange",n)}trackAttributes(){this.isServer()||document.addEventListener("click",t=>{let i=t.target,n=i.closest("button"),r=i.closest("a"),o=n?.getAttribute("data-track")?n:r?.getAttribute("data-track")?r:null;if(o){let a={};for(let p of o.attributes)p.name.startsWith("data-")&&p.name!=="data-track"&&(a[R(p.name.replace(/^data-/,""))]=p.value);let u=o.getAttribute("data-track");u&&super.track(u,a)}})}track(t,i){return super.track(t,{...i,__path:this.lastPath})}screenView(t,i){if(this.isServer())return;let n,r;typeof t=="string"?(n=t,r=i):(n=window.location.href,r=t),this.lastPath!==n&&(this.lastPath=n,super.track("screen_view",{...r??{},__path:n,__title:document.title}))}async flushRevenue(){let t=this.pendingRevenues.map(i=>super.revenue(i.amount,i.properties));await Promise.all(t),this.clearRevenue()}clearRevenue(){if(this.pendingRevenues=[],!this.isServer())try{sessionStorage.removeItem("openpanel-pending-revenues")}catch{}}pendingRevenue(t,i){if(this.pendingRevenues.push({amount:t,properties:i}),!this.isServer())try{sessionStorage.setItem("openpanel-pending-revenues",JSON.stringify(this.pendingRevenues))}catch{}}};(e=>{if(e.op){let s=e.op.q||[],t=new l(s.shift()[1]);s.forEach(n=>{n[0]in t&&t[n[0]](...n.slice(1))});let i=new Proxy((n,...r)=>{let o=t[n]?t[n].bind(t):void 0;typeof o=="function"?o(...r):console.warn(`OpenPanel: ${n} is not a function`)},{get(n,r){if(r==="q")return;let o=t[r];return typeof o=="function"?o.bind(t):o}});e.op=i,e.openpanel=t}})(window);})();diff --git a/packages/sdks/astro/package.json b/packages/sdks/astro/package.jsonindex faeda665a..4b6588bfe 100644--- a/packages/sdks/astro/package.json+++ b/packages/sdks/astro/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/astro",- "version": "1.4.0-local",+ "version": "1.4.1-local","license": "MIT","config": {"transformPackageJson": false,@@ -21,7 +21,7 @@"astro-component"],"dependencies": {- "@openpanel/web": "workspace:1.4.0-local"+ "@openpanel/web": "workspace:1.4.1-local"},"devDependencies": {"astro": "^5.7.7"diff --git a/packages/sdks/astro/src/OpenPanelComponent.astro b/packages/sdks/astro/src/OpenPanelComponent.astroindex 9ffc7ab81..aabf4f774 100644--- a/packages/sdks/astro/src/OpenPanelComponent.astro+++ b/packages/sdks/astro/src/OpenPanelComponent.astro@@ -35,7 +35,7 @@ const methods: { name: OpenPanelMethodNames; value: unknown }[] = [value: {...options,sdk: 'astro',- sdkVersion: '1.4.0',+ sdkVersion: '1.4.1',},},];diff --git a/packages/sdks/express/package.json b/packages/sdks/express/package.jsonindex 9bcd8f0bb..da8b2f5f5 100644--- a/packages/sdks/express/package.json+++ b/packages/sdks/express/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/express",- "version": "1.3.0-local",+ "version": "1.3.1-local","license": "MIT","module": "index.ts","config": {@@ -11,7 +11,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@openpanel/sdk": "workspace:1.3.0-local",+ "@openpanel/sdk": "workspace:1.3.1-local","@openpanel/common": "workspace:*"},"peerDependencies": {diff --git a/packages/sdks/nextjs/package.json b/packages/sdks/nextjs/package.jsonindex c42d9a3bc..6c158005a 100644--- a/packages/sdks/nextjs/package.json+++ b/packages/sdks/nextjs/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/nextjs",- "version": "1.5.0-local",+ "version": "1.5.1-local","license": "MIT","module": "index.ts","config": {@@ -11,7 +11,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@openpanel/web": "workspace:1.4.0-local"+ "@openpanel/web": "workspace:1.4.1-local"},"peerDependencies": {"next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",diff --git a/packages/sdks/nuxt/package.json b/packages/sdks/nuxt/package.jsonindex 9a540bfe8..e2a83193e 100644--- a/packages/sdks/nuxt/package.json+++ b/packages/sdks/nuxt/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/nuxt",- "version": "0.4.0-local",+ "version": "0.4.1-local","license": "MIT","type": "module","main": "./dist/module.mjs",@@ -25,7 +25,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@openpanel/web": "workspace:1.4.0-local"+ "@openpanel/web": "workspace:1.4.1-local"},"peerDependencies": {"h3": "^1.0.0",diff --git a/packages/sdks/react-native/package.json b/packages/sdks/react-native/package.jsonindex 59e4caf74..fcca7fa79 100644--- a/packages/sdks/react-native/package.json+++ b/packages/sdks/react-native/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/react-native",- "version": "1.4.0-local",+ "version": "1.4.1-local","license": "MIT","module": "index.ts","config": {@@ -11,7 +11,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@openpanel/sdk": "workspace:1.3.0-local"+ "@openpanel/sdk": "workspace:1.3.1-local"},"devDependencies": {"@openpanel/tsconfig": "workspace:*",diff --git a/packages/sdks/sdk/package.json b/packages/sdks/sdk/package.jsonindex 0421c866f..94e213640 100644--- a/packages/sdks/sdk/package.json+++ b/packages/sdks/sdk/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/sdk",- "version": "1.3.0-local",+ "version": "1.3.1-local","license": "MIT","module": "index.ts","config": {diff --git a/packages/sdks/web/package.json b/packages/sdks/web/package.jsonindex debea7cfb..ae2ac5c0b 100644--- a/packages/sdks/web/package.json+++ b/packages/sdks/web/package.json@@ -1,6 +1,6 @@{"name": "@openpanel/web",- "version": "1.4.0-local",+ "version": "1.4.1-local","license": "MIT","module": "index.ts","config": {@@ -11,7 +11,7 @@"typecheck": "tsc --noEmit"},"dependencies": {- "@openpanel/sdk": "workspace:1.3.0-local",+ "@openpanel/sdk": "workspace:1.3.1-local","@rrweb/types": "2.0.0-alpha.20","rrweb": "2.0.0-alpha.20"},