@batijs/cli 0.0.617 → 0.0.620
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/{asset-package.json-9Dpl9Mb1.js → asset-package.json-BU5fBknN.js} +1 -2
- package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +1 -4
- package/dist/boilerplates/@batijs/netlify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/netlify/files/$vite.config.ts.js +0 -4
- package/dist/boilerplates/@batijs/netlify/files/asset-package.json.mjs +1 -2
- package/dist/boilerplates/@batijs/vue/types/node_modules/.pnpm/{vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+worke_e7b235abddfa459a00cf0e3206b87fc0 → vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+worke_1793d4105bf7c48ac834aeb6a119f09a}/node_modules/vike-vue/dist/types/VikeHooks.d.mts +1 -1
- package/dist/boilerplates/@batijs/vue/types/pages/+onCreateApp.d.mts +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- /package/dist/boilerplates/@batijs/vue/types/node_modules/.pnpm/{vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+worke_e7b235abddfa459a00cf0e3206b87fc0 → vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+worke_1793d4105bf7c48ac834aeb6a119f09a}/node_modules/vike-vue/dist/types/public.d.mts +0 -0
|
@@ -18,8 +18,7 @@ var package_default = {
|
|
|
18
18
|
"@batijs/compile": "workspace:*",
|
|
19
19
|
"@batijs/core": "workspace:",
|
|
20
20
|
"@netlify/vite-plugin": "^2.11.3",
|
|
21
|
-
"@types/node": "^20.19.37"
|
|
22
|
-
"@universal-deploy/netlify": "^0.2.1"
|
|
21
|
+
"@types/node": "^20.19.37"
|
|
23
22
|
},
|
|
24
23
|
nx: { "tags": ["type:boilerplate"] },
|
|
25
24
|
files: ["dist/"]
|
|
@@ -53,13 +53,10 @@ export async function getSession(req: Request, config: Omit<AuthConfig, "raw">):
|
|
|
53
53
|
const url = createActionURL("session", requestURL.protocol, req.headers, process.env, config);
|
|
54
54
|
|
|
55
55
|
const response = await Auth(new Request(url, { headers: { cookie: req.headers.get("cookie") ?? "" } }), config);
|
|
56
|
-
|
|
57
|
-
const { status = 200 } = response;
|
|
58
|
-
|
|
59
56
|
const data = await response.json();
|
|
60
57
|
|
|
61
58
|
if (!data || !Object.keys(data).length) return null;
|
|
62
|
-
if (status === 200) return data as Session;
|
|
59
|
+
if (response.status === 200) return data as Session;
|
|
63
60
|
throw new Error(typeof data === "object" && "message" in data ? (data.message as string) : undefined);
|
|
64
61
|
}
|
|
65
62
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { loadPackageJson } from "@batijs/core";
|
|
4
4
|
//#region ../../boilerplates/netlify/dist/files/$package.json.mjs
|
|
5
5
|
async function getPackageJson(props) {
|
|
6
|
-
return (await loadPackageJson(props, await import("../../../../asset-package.json-
|
|
6
|
+
return (await loadPackageJson(props, await import("../../../../asset-package.json-BU5fBknN.js").then((x) => x.default))).addDevDependencies(["@netlify/vite-plugin"]);
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { getPackageJson as default };
|
|
@@ -9,10 +9,6 @@ async function getViteConfig(props) {
|
|
|
9
9
|
constructor: "netlify",
|
|
10
10
|
options: { build: { enabled: true } }
|
|
11
11
|
});
|
|
12
|
-
addVitePlugin(mod, {
|
|
13
|
-
from: "@universal-deploy/netlify/vite",
|
|
14
|
-
constructor: "netlifyCompat"
|
|
15
|
-
});
|
|
16
12
|
return mod.generate().code;
|
|
17
13
|
}
|
|
18
14
|
//#endregion
|
|
@@ -16,8 +16,7 @@ var package_default = {
|
|
|
16
16
|
"@batijs/compile": "workspace:*",
|
|
17
17
|
"@batijs/core": "workspace:",
|
|
18
18
|
"@netlify/vite-plugin": "^2.11.3",
|
|
19
|
-
"@types/node": "^20.19.37"
|
|
20
|
-
"@universal-deploy/netlify": "^0.2.1"
|
|
19
|
+
"@types/node": "^20.19.37"
|
|
21
20
|
},
|
|
22
21
|
nx: { "tags": ["type:boilerplate"] },
|
|
23
22
|
files: ["dist/"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PageContext, PageContextClient, PageContextServer } from "vike/types";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+
|
|
3
|
+
//#region ../../node_modules/.pnpm/vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+worke_1793d4105bf7c48ac834aeb6a119f09a/node_modules/vike-vue/dist/types/VikeHooks.d.ts
|
|
4
4
|
type PageContextWithApp = PageContext & {
|
|
5
5
|
app: NonNullable<PageContext['app']>;
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnCreateAppSync } from "../node_modules/.pnpm/vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+
|
|
1
|
+
import { OnCreateAppSync } from "../node_modules/.pnpm/vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+worke_1793d4105bf7c48ac834aeb6a119f09a/node_modules/vike-vue/dist/types/VikeHooks.mjs";
|
|
2
2
|
//#region files/pages/+onCreateApp.d.ts
|
|
3
3
|
declare const onCreateApp: OnCreateAppSync;
|
|
4
4
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -2613,7 +2613,7 @@ function kebabCase(str, joiner) {
|
|
|
2613
2613
|
//#endregion
|
|
2614
2614
|
//#region package.json
|
|
2615
2615
|
var name = "@batijs/cli";
|
|
2616
|
-
var version = "0.0.
|
|
2616
|
+
var version = "0.0.620";
|
|
2617
2617
|
var description = "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want";
|
|
2618
2618
|
//#endregion
|
|
2619
2619
|
//#region rules.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.620",
|
|
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",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"typescript": "^6.0.2",
|
|
21
21
|
"unplugin-purge-polyfills": "^0.1.0",
|
|
22
22
|
"vite": "^8.0.8",
|
|
23
|
-
"@batijs/build": "0.0.
|
|
24
|
-
"@batijs/compile": "0.0.
|
|
23
|
+
"@batijs/build": "0.0.620",
|
|
24
|
+
"@batijs/compile": "0.0.620"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@batijs/core": "",
|