@stacksjs/bun-router 0.0.27 → 0.1.1
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/dist/chunk-03m2j6h7.js +2 -0
- package/dist/chunk-08cw7ejr.js +3 -0
- package/dist/chunk-0e4g0fyv.js +62 -0
- package/dist/chunk-0mmn02yw.js +2 -0
- package/dist/chunk-126c9qm3.js +2 -0
- package/dist/chunk-12p13817.js +2 -0
- package/dist/chunk-14v65c37.js +4 -0
- package/dist/chunk-1b6a7t3v.js +231 -0
- package/dist/chunk-1wenkmk0.js +2 -0
- package/dist/chunk-2152npfd.js +2 -0
- package/dist/chunk-26w23krx.js +2 -0
- package/dist/chunk-2g8m379z.js +10 -0
- package/dist/chunk-2rr178et.js +1654 -0
- package/dist/chunk-2w8f3swz.js +29 -0
- package/dist/chunk-3y4gaz7v.js +82 -0
- package/dist/chunk-4r1x4afz.js +12 -0
- package/dist/chunk-4wyw66zk.js +2 -0
- package/dist/chunk-4z5sf8ag.js +2 -0
- package/dist/chunk-58tfvayh.js +4 -0
- package/dist/chunk-5be9x5cq.js +3 -0
- package/dist/chunk-5dp83qcx.js +397 -0
- package/dist/chunk-5f0d9j9a.js +2 -0
- package/dist/chunk-5z52b0fc.js +28 -0
- package/dist/chunk-5zrnk2kq.js +4 -0
- package/dist/chunk-6bbmkwng.js +3 -0
- package/dist/chunk-6dmqtdnq.js +2 -0
- package/dist/chunk-6e91956t.js +3 -0
- package/dist/chunk-6rv8w5jk.js +2 -0
- package/dist/chunk-6x1feysm.js +3 -0
- package/dist/chunk-7qnxdedn.js +321 -0
- package/dist/chunk-7y72hm1x.js +2 -0
- package/dist/chunk-8hbhfh6b.js +194 -0
- package/dist/chunk-8kfzygg5.js +3 -0
- package/dist/chunk-8wpj3fqe.js +351 -0
- package/dist/chunk-8wydx2we.js +2 -0
- package/dist/chunk-8zjnjvv7.js +2 -0
- package/dist/chunk-9805tt8n.js +341 -0
- package/dist/chunk-988h4bzr.js +2 -0
- package/dist/chunk-9b6a58ac.js +2 -0
- package/dist/chunk-a8fcaywb.js +2 -0
- package/dist/chunk-bfjwn7yg.js +2 -0
- package/dist/chunk-bp2522mm.js +2 -0
- package/dist/chunk-brpgjyqg.js +3 -0
- package/dist/chunk-bswe62q4.js +48 -0
- package/dist/chunk-c3v796c8.js +943 -0
- package/dist/chunk-ccqmwdry.js +2 -0
- package/dist/chunk-ck0crwnx.js +2 -0
- package/dist/chunk-cqgkxcb4.js +2 -0
- package/dist/chunk-dntnakjy.js +2 -0
- package/dist/chunk-dxg045wj.js +5 -0
- package/dist/chunk-e3qej0jr.js +4 -0
- package/dist/chunk-ettdpnrw.js +60 -0
- package/dist/chunk-ezqwq17j.js +185 -0
- package/dist/chunk-ezx3qsez.js +2 -0
- package/dist/chunk-f72nnjy4.js +15413 -0
- package/dist/chunk-fna5n0ey.js +246 -0
- package/dist/chunk-fqhckdt8.js +2 -0
- package/dist/chunk-fr6hbx25.js +2 -0
- package/dist/chunk-g9cwng6w.js +3 -0
- package/dist/chunk-gd3za5x0.js +2 -0
- package/dist/chunk-gf28608k.js +2 -0
- package/dist/chunk-h1dj6v8q.js +3 -0
- package/dist/chunk-hjxe7k2g.js +2 -0
- package/dist/chunk-hrkgznbn.js +2 -0
- package/dist/chunk-j6h5v0br.js +2 -0
- package/dist/chunk-kjtjbcq4.js +71 -0
- package/dist/chunk-mgb01qdv.js +14 -0
- package/dist/chunk-n24c9whp.js +2 -0
- package/dist/chunk-n2j24b0h.js +4540 -0
- package/dist/chunk-nf3kv7kv.js +3 -0
- package/dist/chunk-nhmtg01n.js +84 -0
- package/dist/chunk-p0qhpnqh.js +70 -0
- package/dist/chunk-p0w1x8y2.js +3 -0
- package/dist/chunk-p3dk1w2w.js +216 -0
- package/dist/chunk-q4e9pxs7.js +3 -0
- package/dist/chunk-q5dv1kyy.js +2 -0
- package/dist/chunk-qnqgf9tq.js +2 -0
- package/dist/chunk-qvwy1808.js +898 -0
- package/dist/chunk-r18f77vc.js +12 -0
- package/dist/chunk-r63za1mr.js +2 -0
- package/dist/chunk-rft8gw92.js +7851 -0
- package/dist/chunk-ryvmyskt.js +4211 -0
- package/dist/chunk-sa6mx308.js +2 -0
- package/dist/chunk-sw0chtw4.js +4 -0
- package/dist/chunk-va0pc7hx.js +2 -0
- package/dist/chunk-vcp8dnjq.js +412 -0
- package/dist/chunk-vg1erq1q.js +2 -0
- package/dist/chunk-vsh4390q.js +358 -0
- package/dist/chunk-w0jv49ch.js +11 -0
- package/dist/chunk-wm805tte.js +35 -0
- package/dist/chunk-xg9xscqz.js +1 -0
- package/dist/chunk-xj9h6mc9.js +2 -0
- package/dist/chunk-ytvzwrq3.js +51 -0
- package/dist/chunk-zde7ebc4.js +288 -0
- package/dist/chunk-zmqsv2xy.js +2 -0
- package/dist/cli.js +51 -3233
- package/dist/container/index.js +1 -321
- package/dist/index.d.ts +1 -0
- package/dist/index.js +80 -13987
- package/dist/typed/client.d.ts +89 -0
- package/dist/typed/contract.d.ts +34 -0
- package/dist/typed/endpoint.d.ts +90 -0
- package/dist/typed/index.d.ts +14 -0
- package/dist/typed/router.d.ts +141 -0
- package/package.json +1 -1
- package/dist/chunk-1ahs68ys.js +0 -18
- package/dist/chunk-cgptvjdf.js +0 -18131
- package/dist/chunk-g3ybefhg.js +0 -1923
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$p as b,Aq as C,Bq as D,Cq as E,Dq as F,Eq as G,Fq as H,Gq as I,Hq as J,Iq as K,Jq as L,Kq as M,Lq as N,Mq as O,Nq as P,Oq as Q,Pq as R,Qq as S,Rq as T,_p as a,aq as c,bq as d,cq as e,dq as f,eq as g,fq as h,gq as i,hq as j,iq as k,jq as l,kq as m,lq as n,mq as o,nq as p,oq as q,pq as r,qq as s,rq as t,sq as u,tq as v,uq as w,vq as x,wq as y,xq as z,yq as A,zq as B}from"./chunk-p0qhpnqh.js";import"./chunk-nf3kv7kv.js";export{E as ArrayMergeStrategies,v as BrowserConfigError,m as BunfigError,f as CONFIG_FILE_EXTENSIONS,e as CacheUtils,a as ConfigCache,H as ConfigFileLoader,o as ConfigLoadError,J as ConfigLoader,q as ConfigMergeError,n as ConfigNotFoundError,p as ConfigValidationError,I as ConfigValidator,C as EnvProcessor,r as EnvVarError,x as ErrorFactory,s as FileSystemError,b as PerformanceMonitor,w as PluginError,u as SchemaValidationError,t as TypeGenerationError,O as applyEnvVarsToConfig,T as bunfigPlugin,M as config,S as createLibraryConfig,F as deepMerge,G as deepMergeWithArrayStrategy,P as defaultConfigDir,Q as defaultGeneratedDir,k as findLocalConfig,R as generateConfigTypes,g as getConfigNamePatterns,h as getConfigPaths,D as getEnvOrDefault,i as getLocalConfigDirectories,j as getLocalConfigPaths,c as globalCache,d as globalPerformanceMonitor,l as hasLocalConfig,z as isBunfigError,A as isConfigNotFoundError,B as isRetryableError,L as loadConfig,K as loadConfigWithResult,N as tryLoadConfig,y as withErrorRecovery};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{o as a,p as b,q as c,r as d,s as e,t as f}from"./chunk-8kfzygg5.js";import"./chunk-ryvmyskt.js";import"./chunk-2g8m379z.js";import"./chunk-ezqwq17j.js";import"./chunk-wm805tte.js";import"./chunk-58tfvayh.js";import"./chunk-brpgjyqg.js";import"./chunk-2rr178et.js";import"./chunk-5be9x5cq.js";import"./chunk-5zrnk2kq.js";import"./chunk-p0qhpnqh.js";import"./chunk-nf3kv7kv.js";export{f as applySlots,e as extractSlotContent,b as parseSlotElement,a as parseSlots,d as processSlots,c as renderSlot};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ds as a,es as b,fs as c,gs as d,hs as e,is as f,js as g,ks as h,ls as i,ms as j,ns as k,os as l,ps as m,qs as n,rs as o,ss as p,ts as q}from"./chunk-h1dj6v8q.js";import"./chunk-fna5n0ey.js";import"./chunk-nf3kv7kv.js";export{b as DEFAULT_FORMATS,c as DEFAULT_QUALITY,a as DEFAULT_WIDTHS,q as ImageProcessingError,p as formatSize,j as generateSizes,i as generateSrcSet,k as getFallbackVariant,g as getImageMetadata,n as getMimeType,o as getTotalSize,l as groupVariantsByFormat,e as isImageBackendAvailable,m as isImageFile,d as isSharpAvailable,f as processImage,h as resizeAndConvert};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{im as a,um as b,vm as c,wm as d,xm as e}from"./chunk-ryvmyskt.js";import"./chunk-2g8m379z.js";import"./chunk-ezqwq17j.js";import"./chunk-wm805tte.js";import"./chunk-58tfvayh.js";import"./chunk-brpgjyqg.js";import"./chunk-2rr178et.js";import"./chunk-5be9x5cq.js";import"./chunk-5zrnk2kq.js";import"./chunk-p0qhpnqh.js";import"./chunk-nf3kv7kv.js";export{a as injectRouterScript,e as processDirectives,b as processJsonDirective,c as processOnceDirective,d as validateClientScript};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function s(n){if(!n||typeof n!=="object")return!1;let t=n;return typeof t.message==="string"&&(t.name==="BuildMessage"||t.name==="ResolveMessage"||("position"in t))}function o(n){if(n&&typeof n==="object"&&Array.isArray(n.errors))return n.errors;return[n]}function u(n,t){let e=[];for(let i of o(n)){if(s(i)){let r=i.position||void 0;e.push({file:t||r?.file,line:r?.line,column:r?.column,message:i.message??"",lineText:r?.lineText});continue}e.push({file:t,message:i instanceof Error?i.message:String(i)})}return e}function f(n,t){return u(n,t).map((e)=>{let i=e.file?`${e.file}${e.line?`:${e.line}${e.column?`:${e.column}`:""}`:""}`:"",r=e.lineText?`
|
|
3
|
+
${e.lineText.trim()}`:"";return i?`${i}: ${e.message}${r}`:`${e.message}${r}`}).join(`
|
|
4
|
+
`)}
|
|
5
|
+
export{u as If,f as Jf};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import o from"fs";function s(e){return[...e].sort().map((t)=>{try{let r=o.statSync(t);return`${t}:${r.size}:${r.mtimeMs}`}catch{return`${t}:missing`}}).join(`
|
|
3
|
+
`)}function u(e,t,r){let n=e.get(t);return n!==void 0&&n.signature===r?n.value:void 0}function c(e,t,r,n){return e.set(t,{signature:r,value:n}),n}
|
|
4
|
+
export{s as Ff,u as Gf,c as Hf};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"./chunk-nf3kv7kv.js";function c(e){return e.pwa?.serviceWorker?.fileName||"sw.js"}function o(e){let t=e.pwa;if(!t?.enabled)return"";let r=t.manifest,n=t.icons?.outputDir?`/${t.icons.outputDir}`:"/pwa-icons",s=c(e),a=`
|
|
3
|
+
<!-- stx PWA Meta Tags -->
|
|
4
|
+
<link rel="manifest" href="/manifest.json">
|
|
5
|
+
<meta name="theme-color" content="${i(r?.themeColor||"#000000")}">
|
|
6
|
+
<meta name="mobile-web-app-capable" content="yes">
|
|
7
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
8
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
|
9
|
+
<meta name="apple-mobile-web-app-title" content="${i(r?.shortName||r?.name||"App")}">`;if(t.icons?.generateAppleIcons!==!1)a+=`
|
|
10
|
+
<link rel="apple-touch-icon" href="${n}/apple-touch-icon.png">
|
|
11
|
+
<link rel="apple-touch-icon" sizes="120x120" href="${n}/apple-touch-icon-120x120.png">
|
|
12
|
+
<link rel="apple-touch-icon" sizes="152x152" href="${n}/apple-touch-icon-152x152.png">
|
|
13
|
+
<link rel="apple-touch-icon" sizes="167x167" href="${n}/apple-touch-icon-167x167.png">
|
|
14
|
+
<link rel="apple-touch-icon" sizes="180x180" href="${n}/apple-touch-icon-180x180.png">`;return a+=`
|
|
15
|
+
<link rel="icon" type="image/png" sizes="32x32" href="${n}/favicon-32x32.png">
|
|
16
|
+
<link rel="icon" type="image/png" sizes="16x16" href="${n}/favicon-16x16.png">
|
|
17
|
+
<link rel="icon" type="image/png" sizes="192x192" href="${n}/icon-192x192.png">`,a+=`
|
|
18
|
+
<!-- stx Service Worker Registration -->
|
|
19
|
+
<script>
|
|
20
|
+
if ('serviceWorker' in navigator) {
|
|
21
|
+
window.addEventListener('load', function() {
|
|
22
|
+
navigator.serviceWorker.register('/${s}')
|
|
23
|
+
.then(function(registration) {
|
|
24
|
+
console.log('[PWA] Service Worker registered:', registration.scope);
|
|
25
|
+
|
|
26
|
+
// Check for updates
|
|
27
|
+
registration.addEventListener('updatefound', function() {
|
|
28
|
+
const newWorker = registration.installing;
|
|
29
|
+
if (newWorker) {
|
|
30
|
+
newWorker.addEventListener('statechange', function() {
|
|
31
|
+
if (newWorker.state === 'installed' && navigator.serviceWorker.controller) {
|
|
32
|
+
console.log('[PWA] New content available, refresh to update');
|
|
33
|
+
// Optionally dispatch a custom event for UI notification
|
|
34
|
+
window.dispatchEvent(new CustomEvent('pwa-update-available'));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
})
|
|
40
|
+
.catch(function(error) {
|
|
41
|
+
console.error('[PWA] Service Worker registration failed:', error);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
46
|
+
<!-- End stx PWA -->`,a}function m(e,t){let r=t.pwa;if(!r?.enabled||r.autoInject===!1)return e;if(e.includes("<!-- stx PWA Meta Tags -->"))return e;if(!e.includes("</head>")){let s=e.lastIndexOf("</body>");if(s!==-1){let a=o(t);return e.slice(0,s)+a+`
|
|
47
|
+
`+e.slice(s)}return e+o(t)}let n=o(t);return e.replace("</head>",`${n}
|
|
48
|
+
</head>`)}function y(e){if(!e.pwa?.enabled)return"";return`<script>
|
|
49
|
+
if ('serviceWorker' in navigator) {
|
|
50
|
+
window.addEventListener('load', function() {
|
|
51
|
+
navigator.serviceWorker.register('/${c(e)}')
|
|
52
|
+
.then(function(registration) {
|
|
53
|
+
console.log('[PWA] Service Worker registered:', registration.scope);
|
|
54
|
+
})
|
|
55
|
+
.catch(function(error) {
|
|
56
|
+
console.error('[PWA] Service Worker registration failed:', error);
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
</script>`}function w(){return'<link rel="manifest" href="/manifest.json">'}function S(e){return`<meta name="theme-color" content="${i(e)}">`}function i(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}export{w as generateManifestLink,o as generatePwaTags,y as generateSwRegistrationScript,S as generateThemeColorMeta,m as injectPwaTags};
|