@lensmcp/vite-plugin 1.23.7 → 1.23.8
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/lib/event-mappers.js +2 -2
- package/package.json +6 -6
package/lib/event-mappers.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`).slice(0,2);for(const i of n){const a=i.match(/at\s+(\S+)/);if(a&&a[1])return a[1]}return"unknown"}
|
|
1
|
+
"use strict";var ie=Object.defineProperty;var u=(e,n)=>ie(e,"name",{value:n,configurable:!0});var ae=Object.defineProperty,v=u((e,n)=>ae(e,"name",{value:n,configurable:!0}),"c"),le=Object.defineProperty,s=v((e,n)=>le(e,"name",{value:n,configurable:!0}),"c"),ce=Object.defineProperty,f=s((e,n)=>ce(e,"name",{value:n,configurable:!0}),"c"),ue=Object.defineProperty,p=f((e,n)=>ue(e,"name",{value:n,configurable:!0}),"u"),ve=Object.defineProperty,d=p((e,n)=>ve(e,"name",{value:n,configurable:!0}),"u"),se=Object.defineProperty,m=d((e,n)=>se(e,"name",{value:n,configurable:!0}),"u"),fe=Object.defineProperty,b=m((e,n)=>fe(e,"name",{value:n,configurable:!0}),"c"),pe=Object.defineProperty,g=b((e,n)=>pe(e,"name",{value:n,configurable:!0}),"c"),de=Object.defineProperty,y=g((e,n)=>de(e,"name",{value:n,configurable:!0}),"c"),me=Object.defineProperty,j=y((e,n)=>me(e,"name",{value:n,configurable:!0}),"u"),be=Object.defineProperty,T=j((e,n)=>be(e,"name",{value:n,configurable:!0}),"u"),ge=Object.defineProperty,E=T((e,n)=>ge(e,"name",{value:n,configurable:!0}),"u"),ye=Object.defineProperty,O=E((e,n)=>ye(e,"name",{value:n,configurable:!0}),"u"),je=Object.defineProperty,P=O((e,n)=>je(e,"name",{value:n,configurable:!0}),"u"),Te=Object.defineProperty,I=P((e,n)=>Te(e,"name",{value:n,configurable:!0}),"u"),Ee=Object.defineProperty,w=I((e,n)=>Ee(e,"name",{value:n,configurable:!0}),"u"),Oe=Object.defineProperty,k=w((e,n)=>Oe(e,"name",{value:n,configurable:!0}),"u"),Pe=Object.defineProperty,$=k((e,n)=>Pe(e,"name",{value:n,configurable:!0}),"u"),Ie=Object.defineProperty,h=$((e,n)=>Ie(e,"name",{value:n,configurable:!0}),"s"),we=Object.defineProperty,x=h((e,n)=>we(e,"name",{value:n,configurable:!0}),"s"),ke=Object.defineProperty,S=x((e,n)=>ke(e,"name",{value:n,configurable:!0}),"s"),$e=Object.defineProperty,U=S((e,n)=>$e(e,"name",{value:n,configurable:!0}),"c"),he=Object.defineProperty,R=U((e,n)=>he(e,"name",{value:n,configurable:!0}),"c"),xe=Object.defineProperty,A=R((e,n)=>xe(e,"name",{value:n,configurable:!0}),"c"),Se=Object.defineProperty,C=A((e,n)=>Se(e,"name",{value:n,configurable:!0}),"c"),Ue=Object.defineProperty,F=C((e,n)=>Ue(e,"name",{value:n,configurable:!0}),"c"),Re=Object.defineProperty,J=F((e,n)=>Re(e,"name",{value:n,configurable:!0}),"c"),Ae=Object.defineProperty,L=J((e,n)=>Ae(e,"name",{value:n,configurable:!0}),"l"),Ce=Object.defineProperty,N=L((e,n)=>Ce(e,"name",{value:n,configurable:!0}),"l"),Fe=Object.defineProperty,q=N((e,n)=>Fe(e,"name",{value:n,configurable:!0}),"c"),Je=Object.defineProperty,z=q((e,n)=>Je(e,"name",{value:n,configurable:!0}),"c"),Le=Object.defineProperty,B=z((e,n)=>Le(e,"name",{value:n,configurable:!0}),"c"),Ne=Object.defineProperty,D=B((e,n)=>Ne(e,"name",{value:n,configurable:!0}),"u"),qe=Object.defineProperty,G=D((e,n)=>qe(e,"name",{value:n,configurable:!0}),"u"),ze=Object.defineProperty,H=G((e,n)=>ze(e,"name",{value:n,configurable:!0}),"u"),Be=Object.defineProperty,K=H((e,n)=>Be(e,"name",{value:n,configurable:!0}),"c"),De=Object.defineProperty,M=K((e,n)=>De(e,"name",{value:n,configurable:!0}),"c"),Ge=Object.defineProperty,Q=M((e,n)=>Ge(e,"name",{value:n,configurable:!0}),"c"),He=Object.defineProperty,V=Q((e,n)=>He(e,"name",{value:n,configurable:!0}),"u"),Ke=Object.defineProperty,W=V((e,n)=>Ke(e,"name",{value:n,configurable:!0}),"u"),Me=Object.defineProperty,X=W((e,n)=>Me(e,"name",{value:n,configurable:!0}),"u"),Qe=Object.defineProperty,Y=X((e,n)=>Qe(e,"name",{value:n,configurable:!0}),"u"),Ve=Object.defineProperty,Z=Y((e,n)=>Ve(e,"name",{value:n,configurable:!0}),"o"),We=Object.defineProperty,_=Z((e,n)=>We(e,"name",{value:n,configurable:!0}),"o"),Xe=Object.defineProperty,ee=_((e,n)=>Xe(e,"name",{value:n,configurable:!0}),"o"),Ye=Object.defineProperty,ne=ee((e,n)=>Ye(e,"name",{value:n,configurable:!0}),"o"),Ze=Object.defineProperty,te=ne((e,n)=>Ze(e,"name",{value:n,configurable:!0}),"o"),_e=Object.defineProperty,re=te((e,n)=>_e(e,"name",{value:n,configurable:!0}),"o");import{fingerprint as l,ulid as c}from"@lensmcp/core";const en="pending";export function envelopeToEvent(e,n=en){const i=e.tabId?{tabId:e.tabId}:{};switch(e.kind){case"error":return{id:c(),sessionId:n,timestamp:e.at,source:"client-runtime",category:"runtime",severity:"error",context:{sessionId:n,...i},fingerprint:l({kind:"runtime",identity:`error:${t(e.stack)}`,file:e.source,detail:e.message}),title:e.message,message:e.stack??e.message,location:e.source?{file:e.source,line:e.lineno,column:e.colno}:void 0,raw:e};case"unhandledrejection":return{id:c(),sessionId:n,timestamp:e.at,source:"client-runtime",category:"runtime",severity:"error",context:{sessionId:n,...i},fingerprint:l({kind:"runtime",identity:`unhandledrejection:${e.reason.slice(0,80)}`}),title:"Unhandled promise rejection",message:e.reason,raw:e};case"console":{const a=e.level==="error"?"error":e.level==="warn"?"warning":"info",oe=e.args.map(o).join(" ");return{id:c(),sessionId:n,timestamp:e.at,source:"client-runtime",category:"runtime",severity:a,context:{sessionId:n,...i},fingerprint:l({kind:"runtime",identity:`console:${e.level}:${oe.slice(0,80)}`}),title:`console.${e.level}`,message:oe,raw:e}}case"fetch":{const a=e.error!==void 0||e.status!==void 0&&e.status>=400;return{id:c(),sessionId:n,timestamp:e.at,source:"client-runtime",category:"network",severity:a?"error":"info",context:{sessionId:n,...i},fingerprint:l({kind:"network",identity:`${e.method}:${r(e.url)}:${e.status??"err"}`}),title:`${e.method} ${e.url}${e.status!==void 0?` \u2192 ${e.status}`:""}`,message:e.error,relatedUrls:[e.url],raw:e}}case"route":return{id:c(),sessionId:n,timestamp:e.at,source:"client-runtime",category:"runtime",severity:"info",context:{sessionId:n,url:e.url,...i},fingerprint:l({kind:"runtime",identity:`route:${e.url}`}),title:`Route \u2192 ${e.url}`,raw:e};case"ready":return{id:c(),sessionId:n,timestamp:e.at,source:"client-runtime",category:"runtime",severity:"info",context:{sessionId:n,url:e.url,...i},fingerprint:l({kind:"runtime",identity:"client-ready"}),title:"Client runtime ready",message:e.userAgent,raw:e};case"publish":return{id:c(),sessionId:n,timestamp:e.at,source:e.source,category:e.category,severity:e.severity??"info",context:{sessionId:n,...i,...e.context??{}},fingerprint:e.fingerprint??l({kind:"publish",identity:e.title}),title:e.title,message:e.message,raw:e.raw}}}u(envelopeToEvent,"envelopeToEvent"),v(envelopeToEvent,"envelopeToEvent"),s(envelopeToEvent,"envelopeToEvent"),f(envelopeToEvent,"envelopeToEvent"),p(envelopeToEvent,"envelopeToEvent"),d(envelopeToEvent,"envelopeToEvent"),m(envelopeToEvent,"envelopeToEvent"),b(envelopeToEvent,"envelopeToEvent"),g(envelopeToEvent,"envelopeToEvent"),y(envelopeToEvent,"envelopeToEvent"),j(envelopeToEvent,"envelopeToEvent"),T(envelopeToEvent,"envelopeToEvent"),E(envelopeToEvent,"envelopeToEvent"),O(envelopeToEvent,"envelopeToEvent"),P(envelopeToEvent,"envelopeToEvent"),I(envelopeToEvent,"envelopeToEvent"),w(envelopeToEvent,"envelopeToEvent"),k(envelopeToEvent,"envelopeToEvent"),$(envelopeToEvent,"envelopeToEvent"),h(envelopeToEvent,"envelopeToEvent"),x(envelopeToEvent,"envelopeToEvent"),S(envelopeToEvent,"envelopeToEvent"),U(envelopeToEvent,"envelopeToEvent"),R(envelopeToEvent,"envelopeToEvent"),A(envelopeToEvent,"envelopeToEvent"),C(envelopeToEvent,"envelopeToEvent"),F(envelopeToEvent,"envelopeToEvent"),J(envelopeToEvent,"envelopeToEvent"),L(envelopeToEvent,"envelopeToEvent"),N(envelopeToEvent,"envelopeToEvent"),q(envelopeToEvent,"envelopeToEvent"),z(envelopeToEvent,"envelopeToEvent"),B(envelopeToEvent,"envelopeToEvent"),D(envelopeToEvent,"envelopeToEvent"),G(envelopeToEvent,"envelopeToEvent"),H(envelopeToEvent,"envelopeToEvent"),K(envelopeToEvent,"envelopeToEvent"),M(envelopeToEvent,"envelopeToEvent"),Q(envelopeToEvent,"envelopeToEvent"),V(envelopeToEvent,"envelopeToEvent"),W(envelopeToEvent,"envelopeToEvent"),X(envelopeToEvent,"envelopeToEvent"),Y(envelopeToEvent,"envelopeToEvent"),Z(envelopeToEvent,"envelopeToEvent"),_(envelopeToEvent,"envelopeToEvent"),ee(envelopeToEvent,"envelopeToEvent"),ne(envelopeToEvent,"envelopeToEvent"),te(envelopeToEvent,"envelopeToEvent"),re(envelopeToEvent,"envelopeToEvent");function t(e){if(!e)return"unknown";const n=e.split(`
|
|
2
|
+
`).slice(0,2);for(const i of n){const a=i.match(/at\s+(\S+)/);if(a&&a[1])return a[1]}return"unknown"}u(t,"t"),v(t,"t"),s(t,"t"),f(t,"t"),p(t,"t"),d(t,"t"),m(t,"t"),b(t,"t"),g(t,"t"),y(t,"t"),j(t,"t"),T(t,"t"),E(t,"t"),O(t,"t"),P(t,"t"),I(t,"t"),w(t,"t"),k(t,"t"),$(t,"t"),h(t,"t"),x(t,"t"),S(t,"t"),U(t,"t"),R(t,"t"),A(t,"t"),C(t,"n"),F(t,"t"),J(t,"n"),L(t,"t"),N(t,"n"),q(t,"t"),z(t,"n"),B(t,"t"),D(t,"r"),G(t,"t"),H(t,"r"),K(t,"t"),M(t,"n"),Q(t,"n"),V(t,"r"),W(t,"n"),X(t,"o"),Y(t,"a"),Z(t,"l"),_(t,"l"),ee(t,"c"),ne(t,"c"),te(t,"s"),re(t,"normaliseStackTopFrame");function r(e){try{return`${new URL(e,"http://x").pathname}`}catch{return e}}u(r,"r"),v(r,"r"),s(r,"r"),f(r,"r"),p(r,"r"),d(r,"r"),m(r,"r"),b(r,"r"),g(r,"r"),y(r,"r"),j(r,"r"),T(r,"r"),E(r,"r"),O(r,"r"),P(r,"r"),I(r,"r"),w(r,"r"),k(r,"r"),$(r,"r"),h(r,"r"),x(r,"r"),S(r,"r"),U(r,"r"),R(r,"r"),A(r,"r"),C(r,"r"),F(r,"r"),J(r,"r"),L(r,"r"),N(r,"r"),q(r,"r"),z(r,"r"),B(r,"r"),D(r,"n"),G(r,"r"),H(r,"n"),K(r,"r"),M(r,"r"),Q(r,"r"),V(r,"i"),W(r,"i"),X(r,"a"),Y(r,"c"),Z(r,"d"),_(r,"d"),ee(r,"l"),ne(r,"l"),te(r,"m"),re(r,"normaliseUrl");function o(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}u(o,"o"),v(o,"o"),s(o,"o"),f(o,"o"),p(o,"o"),d(o,"o"),m(o,"o"),b(o,"o"),g(o,"o"),y(o,"o"),j(o,"o"),T(o,"o"),E(o,"o"),O(o,"o"),P(o,"o"),I(o,"i"),w(o,"o"),k(o,"i"),$(o,"i"),h(o,"i"),x(o,"i"),S(o,"i"),U(o,"i"),R(o,"i"),A(o,"i"),C(o,"i"),F(o,"i"),J(o,"i"),L(o,"i"),N(o,"i"),q(o,"i"),z(o,"i"),B(o,"i"),D(o,"i"),G(o,"i"),H(o,"i"),K(o,"i"),M(o,"i"),Q(o,"i"),V(o,"o"),W(o,"o"),X(o,"c"),Y(o,"u"),Z(o,"m"),_(o,"m"),ee(o,"d"),ne(o,"d"),te(o,"d"),re(o,"stringify");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lensmcp/vite-plugin",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/core": "^7.0.0",
|
|
18
|
-
"@lensmcp/bridge": "1.23.
|
|
19
|
-
"@lensmcp/core": "1.23.
|
|
20
|
-
"@lensmcp/protocol-types": "1.23.
|
|
21
|
-
"@lensmcp/react-instrumentation": "1.23.
|
|
22
|
-
"@lensmcp/valtio-instrumentation": "1.23.
|
|
18
|
+
"@lensmcp/bridge": "1.23.8",
|
|
19
|
+
"@lensmcp/core": "1.23.8",
|
|
20
|
+
"@lensmcp/protocol-types": "1.23.8",
|
|
21
|
+
"@lensmcp/react-instrumentation": "1.23.8",
|
|
22
|
+
"@lensmcp/valtio-instrumentation": "1.23.8",
|
|
23
23
|
"tslib": "^2.3.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|