@stacksjs/bun-router 0.1.7 → 0.1.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/dist/chunk-4wd1d6ay.js +416 -0
- package/dist/{chunk-nf3kv7kv.js → chunk-8rrs7556.js} +1 -1
- package/dist/{chunk-3y4gaz7v.js → chunk-m4aaj9ay.js} +1 -1
- package/dist/cli.js +30 -59
- package/dist/container/index.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +9 -1
- package/dist/chunk-03m2j6h7.js +0 -2
- package/dist/chunk-08cw7ejr.js +0 -3
- package/dist/chunk-0e4g0fyv.js +0 -62
- package/dist/chunk-0mmn02yw.js +0 -2
- package/dist/chunk-126c9qm3.js +0 -2
- package/dist/chunk-12p13817.js +0 -2
- package/dist/chunk-14v65c37.js +0 -4
- package/dist/chunk-1b6a7t3v.js +0 -231
- package/dist/chunk-1wenkmk0.js +0 -2
- package/dist/chunk-2152npfd.js +0 -2
- package/dist/chunk-26w23krx.js +0 -2
- package/dist/chunk-2g8m379z.js +0 -10
- package/dist/chunk-2rr178et.js +0 -1654
- package/dist/chunk-2w8f3swz.js +0 -29
- package/dist/chunk-4r1x4afz.js +0 -12
- package/dist/chunk-4wyw66zk.js +0 -2
- package/dist/chunk-4z5sf8ag.js +0 -2
- package/dist/chunk-58tfvayh.js +0 -4
- package/dist/chunk-5be9x5cq.js +0 -3
- package/dist/chunk-5dp83qcx.js +0 -397
- package/dist/chunk-5f0d9j9a.js +0 -2
- package/dist/chunk-5z52b0fc.js +0 -28
- package/dist/chunk-5zrnk2kq.js +0 -4
- package/dist/chunk-6bbmkwng.js +0 -3
- package/dist/chunk-6dmqtdnq.js +0 -2
- package/dist/chunk-6e91956t.js +0 -3
- package/dist/chunk-6rv8w5jk.js +0 -2
- package/dist/chunk-6x1feysm.js +0 -3
- package/dist/chunk-7qnxdedn.js +0 -321
- package/dist/chunk-7y72hm1x.js +0 -2
- package/dist/chunk-8hbhfh6b.js +0 -194
- package/dist/chunk-8kfzygg5.js +0 -3
- package/dist/chunk-8wpj3fqe.js +0 -351
- package/dist/chunk-8wydx2we.js +0 -2
- package/dist/chunk-8zjnjvv7.js +0 -2
- package/dist/chunk-9805tt8n.js +0 -341
- package/dist/chunk-988h4bzr.js +0 -2
- package/dist/chunk-9b6a58ac.js +0 -2
- package/dist/chunk-a8fcaywb.js +0 -2
- package/dist/chunk-bfjwn7yg.js +0 -2
- package/dist/chunk-bp2522mm.js +0 -2
- package/dist/chunk-brpgjyqg.js +0 -3
- package/dist/chunk-bswe62q4.js +0 -48
- package/dist/chunk-c3v796c8.js +0 -943
- package/dist/chunk-ccqmwdry.js +0 -2
- package/dist/chunk-ck0crwnx.js +0 -2
- package/dist/chunk-cqgkxcb4.js +0 -2
- package/dist/chunk-dntnakjy.js +0 -2
- package/dist/chunk-dxg045wj.js +0 -5
- package/dist/chunk-e3qej0jr.js +0 -4
- package/dist/chunk-ettdpnrw.js +0 -60
- package/dist/chunk-ezqwq17j.js +0 -185
- package/dist/chunk-ezx3qsez.js +0 -2
- package/dist/chunk-f72nnjy4.js +0 -15413
- package/dist/chunk-fna5n0ey.js +0 -246
- package/dist/chunk-fqhckdt8.js +0 -2
- package/dist/chunk-fr6hbx25.js +0 -2
- package/dist/chunk-g9cwng6w.js +0 -3
- package/dist/chunk-gd3za5x0.js +0 -2
- package/dist/chunk-gf28608k.js +0 -2
- package/dist/chunk-h1dj6v8q.js +0 -3
- package/dist/chunk-hjxe7k2g.js +0 -2
- package/dist/chunk-hrkgznbn.js +0 -2
- package/dist/chunk-j6h5v0br.js +0 -2
- package/dist/chunk-kjtjbcq4.js +0 -71
- package/dist/chunk-mgb01qdv.js +0 -14
- package/dist/chunk-n24c9whp.js +0 -2
- package/dist/chunk-n2j24b0h.js +0 -4540
- package/dist/chunk-nhmtg01n.js +0 -84
- package/dist/chunk-p0qhpnqh.js +0 -70
- package/dist/chunk-p0w1x8y2.js +0 -3
- package/dist/chunk-p3dk1w2w.js +0 -216
- package/dist/chunk-q4e9pxs7.js +0 -3
- package/dist/chunk-q5dv1kyy.js +0 -2
- package/dist/chunk-qnqgf9tq.js +0 -2
- package/dist/chunk-qvwy1808.js +0 -898
- package/dist/chunk-r18f77vc.js +0 -12
- package/dist/chunk-r63za1mr.js +0 -2
- package/dist/chunk-rft8gw92.js +0 -7851
- package/dist/chunk-ryvmyskt.js +0 -4211
- package/dist/chunk-sa6mx308.js +0 -2
- package/dist/chunk-sw0chtw4.js +0 -4
- package/dist/chunk-va0pc7hx.js +0 -2
- package/dist/chunk-vcp8dnjq.js +0 -412
- package/dist/chunk-vg1erq1q.js +0 -2
- package/dist/chunk-vsh4390q.js +0 -358
- package/dist/chunk-w0jv49ch.js +0 -11
- package/dist/chunk-wm805tte.js +0 -35
- package/dist/chunk-xg9xscqz.js +0 -1
- package/dist/chunk-xj9h6mc9.js +0 -2
- package/dist/chunk-ytvzwrq3.js +0 -51
- package/dist/chunk-zde7ebc4.js +0 -288
- package/dist/chunk-zmqsv2xy.js +0 -2
package/dist/chunk-ccqmwdry.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/dist/chunk-ck0crwnx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/dist/chunk-cqgkxcb4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/dist/chunk-dntnakjy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/dist/chunk-dxg045wj.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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};
|
package/dist/chunk-e3qej0jr.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
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};
|
package/dist/chunk-ettdpnrw.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
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};
|