@stacksjs/server 0.75.711 → 0.75.716
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/domain-route-scopes.d.ts +8 -0
- package/dist/domain-route-scopes.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +12 -12
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DomainRoutes } from '@stacksjs/types';
|
|
2
|
+
/** Refuse a configured scope when the selected stx runtime cannot compile it. */
|
|
3
|
+
export declare function assertScopedDomainRoutes(domains: DomainRoutes | undefined, compile: CompileDomainRoutes | undefined): void;
|
|
4
|
+
declare type CompileDomainRoutes = (domains: DomainRoutes) => readonly {
|
|
5
|
+
pattern: string
|
|
6
|
+
only?: readonly string[]
|
|
7
|
+
}[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function assertScopedDomainRoutes(domains,compile){if(!domains)return;const scopedHosts=Object.keys(domains).filter((host)=>{const target=domains[host];return typeof target==="object"&&target?.only!==undefined});if(scopedHosts.length===0)return;const routes=compile?.(domains)??[];const unavailable=scopedHosts.filter((host)=>{const normalizedHost=host.trim().toLowerCase().replace(/\.$/,"");const route=routes.find((route)=>route.pattern===normalizedHost);return!Array.isArray(route?.only)});if(unavailable.length>0){throw new Error(`Unable to compile read-only domain scopes from config/server.ts for ${unavailable.join(", ")}. `+"Use a bun-plugin-stx release with scoped domain routes and verify the hostname configuration.")}}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{config as server}from"./config";export*from"./controllers/base";export*from"./imports";export*from"./maintenance";export*from"./proxy";export*from"./request-body";export*from"./redirects";export*from"./rewrites";export*from"./security-headers";export*from"./response-headers";export*from"./shadowed-defaults";
|
|
1
|
+
export{config as server}from"./config";export*from"./controllers/base";export*from"./domain-route-scopes";export*from"./imports";export*from"./maintenance";export*from"./proxy";export*from"./request-body";export*from"./redirects";export*from"./rewrites";export*from"./security-headers";export*from"./response-headers";export*from"./shadowed-defaults";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/server",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.716",
|
|
6
6
|
"description": "Local development and production-ready.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -58,22 +58,22 @@
|
|
|
58
58
|
"prepublishOnly": "bun run build"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@stacksjs/auth": "0.75.
|
|
61
|
+
"@stacksjs/auth": "0.75.716",
|
|
62
62
|
"@stacksjs/bun-router": "^0.1.24",
|
|
63
|
-
"@stacksjs/config": "0.75.
|
|
64
|
-
"@stacksjs/events": "0.75.
|
|
65
|
-
"@stacksjs/i18n": "0.75.
|
|
66
|
-
"@stacksjs/logging": "0.75.
|
|
67
|
-
"@stacksjs/orm": "0.75.
|
|
68
|
-
"@stacksjs/path": "0.75.
|
|
69
|
-
"@stacksjs/payments": "0.75.
|
|
70
|
-
"@stacksjs/router": "0.75.
|
|
71
|
-
"@stacksjs/storage": "0.75.
|
|
63
|
+
"@stacksjs/config": "0.75.716",
|
|
64
|
+
"@stacksjs/events": "0.75.716",
|
|
65
|
+
"@stacksjs/i18n": "0.75.716",
|
|
66
|
+
"@stacksjs/logging": "0.75.716",
|
|
67
|
+
"@stacksjs/orm": "0.75.716",
|
|
68
|
+
"@stacksjs/path": "0.75.716",
|
|
69
|
+
"@stacksjs/payments": "0.75.716",
|
|
70
|
+
"@stacksjs/router": "0.75.716",
|
|
71
|
+
"@stacksjs/storage": "0.75.716",
|
|
72
72
|
"@stacksjs/stx": "^0.2.960",
|
|
73
73
|
"bun-plugin-auto-imports": "^0.4.4"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@stacksjs/validation": "0.75.
|
|
76
|
+
"@stacksjs/validation": "0.75.716",
|
|
77
77
|
"better-dx": "^0.2.39"
|
|
78
78
|
}
|
|
79
79
|
}
|