@batijs/cli 0.0.548 → 0.0.549
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/boilerplates/@batijs/auth0/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +3 -2
- package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.ts +2 -2
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +1 -1
- package/dist/boilerplates/@batijs/d1-kysely/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/kysely/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/kysely/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/kysely/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/oxlint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +4 -1
- package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +3 -0
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +3 -3
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/{chunk-6KVJSYGK.js → chunk-WAIY7NXD.js} +1 -1
- package/dist/index.js +2 -2
- package/package.json +5 -5
|
@@ -65,10 +65,11 @@ export async function getSession(req: Request, config: Omit<AuthConfig, "raw">):
|
|
|
65
65
|
throw new Error(typeof data === "object" && "message" in data ? (data.message as string) : undefined);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
// Note: You can use your server directly instead of defining a universal middleware. (Bati uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
|
|
68
69
|
/**
|
|
69
|
-
* Add Auth.js session to context
|
|
70
|
+
* Add Auth.js session to the context.
|
|
70
71
|
* @link {@see https://authjs.dev/getting-started/session-management/get-session}
|
|
71
|
-
|
|
72
|
+
*/
|
|
72
73
|
export const authjsSessionMiddleware: UniversalMiddleware = enhance(
|
|
73
74
|
// The context we add here is automatically merged into pageContext
|
|
74
75
|
async (request, context) => {
|
|
@@ -6,9 +6,9 @@ import { type UniversalMiddleware } from "@universal-middleware/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function getSession(req: Request, config: Omit<AuthConfig, "raw">): Promise<Session | null>;
|
|
8
8
|
/**
|
|
9
|
-
* Add Auth.js session to context
|
|
9
|
+
* Add Auth.js session to the context.
|
|
10
10
|
* @link {@see https://authjs.dev/getting-started/session-management/get-session}
|
|
11
|
-
|
|
11
|
+
*/
|
|
12
12
|
export declare const authjsSessionMiddleware: UniversalMiddleware;
|
|
13
13
|
/**
|
|
14
14
|
* Auth.js route
|
|
@@ -22,7 +22,10 @@ declare global {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
//
|
|
25
|
+
// Note: You can use your server directly instead of defining a universal middleware. (Bati uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
|
|
26
|
+
/**
|
|
27
|
+
* Add the `db` object to the context.
|
|
28
|
+
*/
|
|
26
29
|
export const dbMiddleware: UniversalMiddleware = enhance(
|
|
27
30
|
// The context we add here is automatically merged into pageContext
|
|
28
31
|
async (_request, context, _runtime) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const trpc: import("@trpc/client").TRPCClient<import("@trpc/server").TRPCBuiltRouter<{
|
|
2
2
|
ctx: object & {
|
|
3
|
-
db: ReturnType<
|
|
3
|
+
db: ReturnType<any>;
|
|
4
4
|
} & {
|
|
5
|
-
db: ReturnType<
|
|
5
|
+
db: ReturnType<any>;
|
|
6
6
|
} & {
|
|
7
|
-
db: ReturnType<
|
|
7
|
+
db: ReturnType<any>;
|
|
8
8
|
} & {
|
|
9
9
|
db: ReturnType<typeof import("@batijs/kysely/database/kysely/db").dbKysely>;
|
|
10
10
|
} & {
|
|
@@ -209934,7 +209934,7 @@ async function Vps(t2, e, r2) {
|
|
|
209934
209934
|
}
|
|
209935
209935
|
return !e.BATI.has("eslint") && VWr.test(l) && (l = l.replace(VWr, ""), f = true), !e.BATI.has("biome") && zWr.test(l) && (l = l.replace(zWr, ""), f = true), { code: f ? await lst(l, r2) : l, context: u };
|
|
209936
209936
|
}
|
|
209937
|
-
var JEt = { name: "@batijs/core", version: "0.0.
|
|
209937
|
+
var JEt = { name: "@batijs/core", version: "0.0.549", description: "", type: "module", types: "./dist/index.d.ts", scripts: { "check-types": "tsc --noEmit", vue: "tsx src/parse/linters/vue.ts", test: "vitest run", "test:ci": "vitest run", build: "tsup" }, keywords: [], author: "Jo\xEBl Charles <joel.charles91@gmail.com>", repository: "https://github.com/vikejs/bati", license: "MIT", devDependencies: { "@batijs/features": "workspace:*", "@types/eslint": "^9.6.1", "@types/estree": "^1.0.8", "@types/node": "^20.19.25", "@types/which": "^3.0.4", "@typescript-eslint/parser": "^8.48.1", "@typescript-eslint/utils": "^8.48.1", "attributes-parser": "^2.2.3", colorette: "^2.0.20", esbuild: "^0.27.1", eslint: "^9.39.1", "eslint-plugin-solid": "^0.14.5", "eslint-rule-composer": "^0.3.0", espree: "^11.0.0", magicast: "^0.5.1", "mdast-builder": "^1.1.1", "mdast-util-from-markdown": "^2.0.2", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "mdast-util-toc": "^7.1.0", prettier: "^3.7.4", squirrelly: "^9.1.0", tsup: "^8.5.1", tsx: "^4.21.0", typescript: "^5.9.3", "unplugin-purge-polyfills": "^0.1.0", vitest: "^4.0.15", "vue-eslint-parser": "^10.2.0", which: "^6.0.0", yaml: "^2.8.2" }, exports: { ".": "./dist/index.js", "./config": "./dist/config.js", "./types": { types: "./global.d.ts" } }, typesVersions: { "*": { config: ["./dist/config.d.ts"], types: ["./global.d.ts"] } }, files: ["dist/"] };
|
|
209938
209938
|
function Yps() {
|
|
209939
209939
|
return process.env.npm_config_user_agent ? Wps(process.env.npm_config_user_agent) : { name: "npm", run: "npm run", exec: "npx" };
|
|
209940
209940
|
}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
export_which,
|
|
11
11
|
lst,
|
|
12
12
|
oir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WAIY7NXD.js";
|
|
14
14
|
import "./chunk-IAWYWZSL.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
@@ -4724,7 +4724,7 @@ var {
|
|
|
4724
4724
|
// package.json
|
|
4725
4725
|
var package_default = {
|
|
4726
4726
|
name: "@batijs/cli",
|
|
4727
|
-
version: "0.0.
|
|
4727
|
+
version: "0.0.549",
|
|
4728
4728
|
type: "module",
|
|
4729
4729
|
scripts: {
|
|
4730
4730
|
"check-types": "tsc --noEmit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.549",
|
|
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",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"typescript": "^5.9.3",
|
|
20
20
|
"unplugin-purge-polyfills": "^0.1.0",
|
|
21
21
|
"vite": "^7.2.7",
|
|
22
|
-
"@batijs/build": "0.0.
|
|
23
|
-
"@batijs/compile": "0.0.
|
|
22
|
+
"@batijs/build": "0.0.549",
|
|
23
|
+
"@batijs/compile": "0.0.549"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@batijs/
|
|
27
|
-
"@batijs/
|
|
26
|
+
"@batijs/features": "0.0.549",
|
|
27
|
+
"@batijs/core": "0.0.549"
|
|
28
28
|
},
|
|
29
29
|
"bin": "./cli.js",
|
|
30
30
|
"exports": {
|