@batijs/cli 0.0.220 → 0.0.222
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.
|
@@ -6,7 +6,7 @@ export async function vikeHandler<Context extends Record<string | number | symbo
|
|
|
6
6
|
request: Request,
|
|
7
7
|
context?: Context,
|
|
8
8
|
): Promise<Response> {
|
|
9
|
-
const pageContextInit = { ...context, urlOriginal: request.url };
|
|
9
|
+
const pageContextInit = { ...context, urlOriginal: request.url, headersOriginal: request.headers };
|
|
10
10
|
const pageContext = await renderPage(pageContextInit);
|
|
11
11
|
const response = pageContext.httpResponse;
|
|
12
12
|
|
package/dist/index.js
CHANGED
|
@@ -215,6 +215,7 @@ Please report this issue to https://github.com/batijs/bati`
|
|
|
215
215
|
);
|
|
216
216
|
if (fileContent !== null) {
|
|
217
217
|
await safeWriteFile(target, fileContent);
|
|
218
|
+
targets.add(target);
|
|
218
219
|
}
|
|
219
220
|
});
|
|
220
221
|
} else {
|
|
@@ -1613,7 +1614,7 @@ var import_which_pm_runs = __toESM(require_which_pm_runs(), 1);
|
|
|
1613
1614
|
// package.json
|
|
1614
1615
|
var package_default = {
|
|
1615
1616
|
name: "@batijs/cli",
|
|
1616
|
-
version: "0.0.
|
|
1617
|
+
version: "0.0.222",
|
|
1617
1618
|
type: "module",
|
|
1618
1619
|
scripts: {
|
|
1619
1620
|
"check-types": "tsc --noEmit",
|
|
@@ -1690,7 +1691,8 @@ var rulesMessages = {
|
|
|
1690
1691
|
[RulesMessage.ERROR_CLOUDFLARE_R_COMPAT_SERVER]: error(
|
|
1691
1692
|
`${inverse(bold("Cloudflare"))} is only compatible with ${inverse(bold("Hono"))} or ${inverse(bold("HatTip"))}.
|
|
1692
1693
|
Choose one of them, or simply remove selected Server`
|
|
1693
|
-
)
|
|
1694
|
+
),
|
|
1695
|
+
[RulesMessage.INFO_DRIZZLE_STACKBLITZ]: null
|
|
1694
1696
|
};
|
|
1695
1697
|
|
|
1696
1698
|
// index.ts
|
|
@@ -1828,9 +1830,9 @@ async function checkArguments(args) {
|
|
|
1828
1830
|
}
|
|
1829
1831
|
function checkRules(flags) {
|
|
1830
1832
|
const potentialRulesMessages = execRules(flags, rulesMessages);
|
|
1831
|
-
const infos = potentialRulesMessages.filter((m) => m
|
|
1832
|
-
const warnings = potentialRulesMessages.filter((m) => m
|
|
1833
|
-
const errors = potentialRulesMessages.filter((m) => m
|
|
1833
|
+
const infos = potentialRulesMessages.filter((m) => m?.type === "info");
|
|
1834
|
+
const warnings = potentialRulesMessages.filter((m) => m?.type === "warning");
|
|
1835
|
+
const errors = potentialRulesMessages.filter((m) => m?.type === "error");
|
|
1834
1836
|
if (infos.length > 0) {
|
|
1835
1837
|
infos.forEach((m) => {
|
|
1836
1838
|
console.info(blueBright(`\u2139 ${m.value}.`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.222",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"unplugin-purge-polyfills": "^0.0.4",
|
|
23
23
|
"vite": "^5.3.3",
|
|
24
24
|
"which-pm-runs": "^1.1.0",
|
|
25
|
-
"@batijs/compile": "0.0.
|
|
26
|
-
"@batijs/build": "0.0.
|
|
25
|
+
"@batijs/compile": "0.0.222",
|
|
26
|
+
"@batijs/build": "0.0.222"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@batijs/
|
|
30
|
-
"@batijs/
|
|
29
|
+
"@batijs/core": "0.0.222",
|
|
30
|
+
"@batijs/features": "0.0.222"
|
|
31
31
|
},
|
|
32
32
|
"bin": "./dist/index.js",
|
|
33
33
|
"exports": {
|