@vantaloom/runtime-darwin-arm64 0.12.39 → 0.12.41

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.
Files changed (34) hide show
  1. package/VERSION +1 -1
  2. package/bin/vantaloom-agent +0 -0
  3. package/bin/vantaloom-api +0 -0
  4. package/bin/vantaloom-browser +0 -0
  5. package/bin/vantaloomctl +0 -0
  6. package/cli/package.json +1 -1
  7. package/manifest.json +2 -2
  8. package/package.json +1 -1
  9. package/web/404.html +1 -1
  10. package/web/__next.__PAGE__.txt +2 -2
  11. package/web/__next._full.txt +7 -7
  12. package/web/__next._head.txt +1 -1
  13. package/web/__next._index.txt +6 -6
  14. package/web/__next._tree.txt +2 -2
  15. package/web/_next/static/chunks/04d8db8bf4869e80.css +2 -0
  16. package/web/_next/static/chunks/10ce0b22985f1a35.js +1 -0
  17. package/web/_next/static/chunks/{2c16725ad755df25.js → 91dc45ced35c9b3a.js} +1 -1
  18. package/web/_next/static/chunks/c75862ae59265943.js +1 -0
  19. package/web/_not-found/__next._full.txt +12 -12
  20. package/web/_not-found/__next._head.txt +3 -3
  21. package/web/_not-found/__next._index.txt +8 -8
  22. package/web/_not-found/__next._not-found/__PAGE__.txt +2 -2
  23. package/web/_not-found/__next._not-found.txt +3 -3
  24. package/web/_not-found/__next._tree.txt +2 -2
  25. package/web/_not-found.html +1 -1
  26. package/web/_not-found.txt +12 -12
  27. package/web/index.html +1 -1
  28. package/web/index.txt +7 -7
  29. package/web/_next/static/chunks/4852e34afa6e1a19.js +0 -1
  30. package/web/_next/static/chunks/750370220a00a0ed.js +0 -1
  31. package/web/_next/static/chunks/fba0b94ba8705bca.css +0 -2
  32. /package/web/_next/static/{KPbstEwlPkVFV-QfypuMJ → DK1bbbf21j3cVGlU2J2Pb}/_buildManifest.js +0 -0
  33. /package/web/_next/static/{KPbstEwlPkVFV-QfypuMJ → DK1bbbf21j3cVGlU2J2Pb}/_clientMiddlewareManifest.json +0 -0
  34. /package/web/_next/static/{KPbstEwlPkVFV-QfypuMJ → DK1bbbf21j3cVGlU2J2Pb}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22332,e=>{"use strict";var t=e.i(87433),r=e.i(44440),n=e.i(21957),o=e.i(91e3);function s({children:e,appearanceTheme:r,appearanceDensity:o,appearanceMotion:s,...i}){return(0,t.jsxs)(n.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,...i,children:[(0,t.jsx)(a,{density:o,motion:s,theme:r}),e]})}function a({density:e,motion:t,theme:n}){return r.useEffect(()=>{let r=window.localStorage.getItem(o.appearanceThemeStorageKey)??void 0;(0,o.applyAppearanceTheme)({density:e,motion:t,theme:n??r})},[e,t,n]),null}e.s(["ThemeProvider",()=>s])},97452,e=>{"use strict";var t=e.i(87433),r=e.i(44440),n=e.i(56290),o=e.i(26171);let s="",a=0;function i(e){try{let t=`${e.source}|${e.message}|${(e.stack??"").slice(0,200)}`,r=Date.now();if(t===s&&r-a<5e3)return;s=t,a=r;let i=`${window.location?.pathname??""}${window.location?.search??""}`,c="u">typeof navigator?navigator.userAgent:"";fetch((0,n.localAPIURL)("/v1/agent/frontend-error"),{method:"POST",headers:{"Content-Type":"application/json"},keepalive:!0,body:JSON.stringify({message:e.message??"",stack:e.stack??"",componentStack:e.componentStack??"",route:i,userAgent:c,source:e.source})}).catch(()=>{}),(0,o.postFrontendDump)([{source:"frontend",errorKind:"frontend",errorMessage:e.message??"",stack:e.stack??"",url:i,meta:{route:i,ua:c,source:e.source,componentStack:e.componentStack??""}}])}catch{}}let c=!1,l=[],d=null;function u(e){return!e||e.length<=16384?e:`${e.slice(0,16384)}…(truncated ${e.length-16384})`}function m(){if(!l.length)return;let e=l;l=[];try{(0,o.postFrontendDump)(e)}catch{}}function h(e){l.push(e),l.length>=25?(d&&(clearTimeout(d),d=null),m()):d||(d=setTimeout(()=>{d=null,m()},2e3))}function f(e){try{if(e.startsWith(window.location.origin))return e.slice(window.location.origin.length)||"/";let t=e.indexOf("/api/local/");if(t>0)return e.slice(t);return e}catch{return e}}class g extends r.Component{state={hasError:!1};static getDerivedStateFromError(e){return{hasError:!0,message:e instanceof Error?e.message:String(e)}}componentDidCatch(e,t){i({source:"boundary",message:e instanceof Error?e.message:String(e),stack:e instanceof Error?e.stack:void 0,componentStack:t?.componentStack??void 0})}handleReload=()=>{window.location.reload()};render(){return this.state.hasError?(0,t.jsx)("div",{className:"grid min-h-screen place-items-center bg-background p-6",children:(0,t.jsxs)("div",{className:"w-full max-w-md rounded-lg border border-border bg-card p-6 text-center shadow-sm",children:[(0,t.jsx)("h2",{className:"text-base font-semibold text-foreground",children:"页面出错了"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"前端遇到了一个错误。错误详情已在你开启「错误诊断上报」时发送给我们以便修复。"}),this.state.message?(0,t.jsx)("pre",{className:"mt-3 max-h-32 overflow-auto rounded bg-muted/60 p-2 text-left text-xs text-muted-foreground",children:this.state.message}):null,(0,t.jsx)("button",{type:"button",onClick:this.handleReload,className:"mt-4 inline-flex items-center justify-center rounded-md bg-button-black px-4 py-2 text-sm font-medium text-canvas-white transition-colors hover:opacity-90",children:"刷新页面"})]})}):this.props.children}}function p(){return r.useEffect(()=>{!function(){if(c||"function"!=typeof globalThis.fetch)return;c=!0;let e=globalThis.fetch.bind(globalThis);globalThis.fetch=async function(t,r){let n,o="",s=!1,a="GET",i=0;try{if(s=(o=function(e){try{if("string"==typeof e)return e;if(e instanceof URL)return e.toString();if(e instanceof Request)return e.url;return String(e)}catch{return""}}(t)).includes("/api/local/")&&!o.includes("/api/local/dump")){a=(a=t instanceof Request?t.method||"GET":r?.method||"GET").toUpperCase();let e=r?.body;"string"==typeof e&&(n=u(e)),i=Date.now()}}catch{s=!1}if(!s)return e(t,r);try{let s,c=await e(t,r);try{s=u(await c.clone().text())}catch{s=void 0}try{h({source:"frontend",method:a,url:f(o),status:c.status,durationMs:Date.now()-i,reqBody:n,respBody:s})}catch{}return c}catch(e){try{h({source:"frontend",method:a,url:f(o),durationMs:Date.now()-i,reqBody:n,errorKind:"frontend",errorMessage:e instanceof Error?e.message:String(e??"")})}catch{}throw e}};try{window.addEventListener("pagehide",m),window.addEventListener("beforeunload",m)}catch{}}()},[]),r.useEffect(()=>{let e=e=>{let t=e.error;i({source:"onerror",message:e.message||(t instanceof Error?t.message:String(t??"")),stack:t instanceof Error?t.stack:void 0})},t=e=>{let t=e.reason;i({source:"unhandledrejection",message:t instanceof Error?t.message:String(t??""),stack:t instanceof Error?t.stack:void 0})};return window.addEventListener("error",e),window.addEventListener("unhandledrejection",t),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",t)}},[]),null}e.s(["FrontendErrorBoundary",()=>g,"GlobalErrorHandlers",()=>p],97452)}]);