@tinyrack/tinyauth-server 0.0.12 → 0.0.13
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/entities/bootstrap-state.entity.d.ts +40 -0
- package/dist/entities/bootstrap-state.entity.d.ts.map +1 -0
- package/dist/entities/bootstrap-state.entity.js +13 -0
- package/dist/entities/bootstrap-state.entity.js.map +1 -0
- package/dist/entrypoints/app.d.ts +3 -1
- package/dist/entrypoints/app.d.ts.map +1 -1
- package/dist/entrypoints/app.js +3 -3
- package/dist/entrypoints/app.js.map +1 -1
- package/dist/entrypoints/database/d1/cli.d.ts +3 -2
- package/dist/entrypoints/database/d1/cli.d.ts.map +1 -1
- package/dist/entrypoints/database/d1/cli.js +9 -2
- package/dist/entrypoints/database/d1/cli.js.map +1 -1
- package/dist/entrypoints/database/d1/compiled-functions.d.ts +185 -160
- package/dist/entrypoints/database/d1/compiled-functions.d.ts.map +1 -1
- package/dist/entrypoints/database/d1/compiled-functions.js +411 -160
- package/dist/entrypoints/database/d1/compiled-functions.js.map +1 -1
- package/dist/entrypoints/database/d1/d1.d.ts.map +1 -1
- package/dist/entrypoints/database/d1/d1.js +11 -15
- package/dist/entrypoints/database/d1/d1.js.map +1 -1
- package/dist/entrypoints/database/postgres/cli.d.ts +3 -2
- package/dist/entrypoints/database/postgres/cli.d.ts.map +1 -1
- package/dist/entrypoints/database/postgres/cli.js +12 -1
- package/dist/entrypoints/database/postgres/cli.js.map +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.d.ts +185 -160
- package/dist/entrypoints/database/postgres/compiled-functions.d.ts.map +1 -1
- package/dist/entrypoints/database/postgres/compiled-functions.js +411 -160
- package/dist/entrypoints/database/postgres/compiled-functions.js.map +1 -1
- package/dist/entrypoints/database/postgres/postgres.d.ts.map +1 -1
- package/dist/entrypoints/database/postgres/postgres.js +5 -3
- package/dist/entrypoints/database/postgres/postgres.js.map +1 -1
- package/dist/entrypoints/database/sqlite/cli.d.ts +3 -2
- package/dist/entrypoints/database/sqlite/cli.d.ts.map +1 -1
- package/dist/entrypoints/database/sqlite/cli.js +9 -1
- package/dist/entrypoints/database/sqlite/cli.js.map +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.d.ts +185 -160
- package/dist/entrypoints/database/sqlite/compiled-functions.d.ts.map +1 -1
- package/dist/entrypoints/database/sqlite/compiled-functions.js +411 -160
- package/dist/entrypoints/database/sqlite/compiled-functions.js.map +1 -1
- package/dist/entrypoints/database/sqlite/sqlite.d.ts.map +1 -1
- package/dist/entrypoints/database/sqlite/sqlite.js +4 -0
- package/dist/entrypoints/database/sqlite/sqlite.js.map +1 -1
- package/dist/entrypoints/services.d.ts +1 -1
- package/dist/entrypoints/services.d.ts.map +1 -1
- package/dist/entrypoints/services.js.map +1 -1
- package/dist/lib/database/entities.d.ts.map +1 -1
- package/dist/lib/database/entities.js +2 -0
- package/dist/lib/database/entities.js.map +1 -1
- package/dist/migrations/d1/Migration20260509172833_initial.d.ts +5 -0
- package/dist/migrations/d1/Migration20260509172833_initial.d.ts.map +1 -0
- package/dist/migrations/d1/Migration20260509172833_initial.js +62 -0
- package/dist/migrations/d1/Migration20260509172833_initial.js.map +1 -0
- package/dist/migrations/d1/index.d.ts +3 -0
- package/dist/migrations/d1/index.d.ts.map +1 -0
- package/dist/migrations/d1/index.js +3 -0
- package/dist/migrations/d1/index.js.map +1 -0
- package/dist/migrations/postgres/Migration20260509171036_initial.d.ts +5 -0
- package/dist/migrations/postgres/Migration20260509171036_initial.d.ts.map +1 -0
- package/dist/migrations/postgres/Migration20260509171036_initial.js +246 -0
- package/dist/migrations/postgres/Migration20260509171036_initial.js.map +1 -0
- package/dist/migrations/postgres/index.d.ts +3 -0
- package/dist/migrations/postgres/index.d.ts.map +1 -0
- package/dist/migrations/postgres/index.js +3 -0
- package/dist/migrations/postgres/index.js.map +1 -0
- package/dist/migrations/sqlite/Migration20260509171226_initial.d.ts +5 -0
- package/dist/migrations/sqlite/Migration20260509171226_initial.d.ts.map +1 -0
- package/dist/migrations/sqlite/Migration20260509171226_initial.js +62 -0
- package/dist/migrations/sqlite/Migration20260509171226_initial.js.map +1 -0
- package/dist/migrations/sqlite/index.d.ts +3 -0
- package/dist/migrations/sqlite/index.d.ts.map +1 -0
- package/dist/migrations/sqlite/index.js +3 -0
- package/dist/migrations/sqlite/index.js.map +1 -0
- package/dist/seeders/config.seeder.d.ts +2 -0
- package/dist/seeders/config.seeder.d.ts.map +1 -1
- package/dist/seeders/config.seeder.js +87 -0
- package/dist/seeders/config.seeder.js.map +1 -1
- package/dist/services/container.d.ts +5 -1
- package/dist/services/container.d.ts.map +1 -1
- package/dist/services/container.js +4 -3
- package/dist/services/container.js.map +1 -1
- package/package.json +7 -2
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type InferEntity } from '@mikro-orm/core';
|
|
2
|
+
export declare const BootstrapStateEntitySchema: import("@mikro-orm/core").EntitySchemaWithMeta<"BootstrapStateEntity", "bootstrap_state", import("@mikro-orm/core").InferEntityFromProperties<{
|
|
3
|
+
readonly id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "primary"> & {
|
|
4
|
+
primary: true;
|
|
5
|
+
}, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
6
|
+
readonly value: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, import("@mikro-orm/core").EmptyOptions, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
7
|
+
}, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
|
|
8
|
+
readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
|
|
9
|
+
onCreate: (...args: any[]) => any;
|
|
10
|
+
}, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
11
|
+
readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
|
|
12
|
+
onCreate: (...args: any[]) => any;
|
|
13
|
+
}, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
14
|
+
}, undefined, never, never, false>, never, false>, import("@mikro-orm/core").InferEntityFromProperties<{
|
|
15
|
+
readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
|
|
16
|
+
onCreate: (...args: any[]) => any;
|
|
17
|
+
}, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
18
|
+
readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
|
|
19
|
+
onCreate: (...args: any[]) => any;
|
|
20
|
+
}, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
21
|
+
}, undefined, never, never, false>, {
|
|
22
|
+
readonly id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "primary"> & {
|
|
23
|
+
primary: true;
|
|
24
|
+
}, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
25
|
+
readonly value: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, import("@mikro-orm/core").EmptyOptions, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
26
|
+
}, import("@mikro-orm/core").EntityCtor<import("@mikro-orm/core").InferEntityFromProperties<{
|
|
27
|
+
readonly id: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, Omit<import("@mikro-orm/core").EmptyOptions, "primary"> & {
|
|
28
|
+
primary: true;
|
|
29
|
+
}, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
30
|
+
readonly value: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<string, import("@mikro-orm/core").EmptyOptions, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
31
|
+
}, undefined, import("@mikro-orm/core").InferEntityFromProperties<{
|
|
32
|
+
readonly created_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
|
|
33
|
+
onCreate: (...args: any[]) => any;
|
|
34
|
+
}, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
35
|
+
readonly updated_at: Pick<import("@mikro-orm/core").UniversalPropertyOptionsBuilder<Date, import("@mikro-orm/core").EmptyOptions & {
|
|
36
|
+
onCreate: (...args: any[]) => any;
|
|
37
|
+
}, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof import("@mikro-orm/core").PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
38
|
+
}, undefined, never, never, false>, never, false>>>;
|
|
39
|
+
export type IBootstrapStateEntity = InferEntity<typeof BootstrapStateEntitySchema>;
|
|
40
|
+
//# sourceMappingURL=bootstrap-state.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap-state.entity.d.ts","sourceRoot":"","sources":["../../src/entities/bootstrap-state.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGjE,eAAO,MAAM,0BAA0B;;;;;;;mBAcyshB,GAAG;;;mBAAH,GAAG;;;;mBAAH,GAAG;;;mBAAH,GAAG;;;;;;;;;;;;;;mBAAH,GAAG;;;mBAAH,GAAG;;mDALjvhB,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAC7C,OAAO,0BAA0B,CAClC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineEntity } from '@mikro-orm/core';
|
|
2
|
+
import { BaseSchema } from "./base.entity.js";
|
|
3
|
+
export const BootstrapStateEntitySchema = defineEntity({
|
|
4
|
+
name: 'BootstrapStateEntity',
|
|
5
|
+
tableName: 'bootstrap_state',
|
|
6
|
+
comment: 'Runtime bootstrap metadata',
|
|
7
|
+
extends: BaseSchema,
|
|
8
|
+
properties: (p) => ({
|
|
9
|
+
id: p.string().primary().comment('Bootstrap metadata key'),
|
|
10
|
+
value: p.string().comment('Bootstrap metadata value'),
|
|
11
|
+
}),
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=bootstrap-state.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap-state.entity.js","sourceRoot":"","sources":["../../src/entities/bootstrap-state.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoB,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,CAAC,MAAM,0BAA0B,GAAG,YAAY,CAAC;IACrD,IAAI,EAAE,sBAAsB;IAC5B,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAClB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,wBAAwB,CAAC;QAC1D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,0BAA0B,CAAC;KACtD,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type TinyAuthRuntimeConfigInput } from '../lib/config/index.ts';
|
|
2
|
+
import { type InitializeServicesOptions } from '../services/container.ts';
|
|
2
3
|
/**
|
|
3
4
|
* Application configuration for the backend runtime.
|
|
4
5
|
*/
|
|
5
6
|
export type CreateAppOptions = TinyAuthRuntimeConfigInput;
|
|
6
|
-
export
|
|
7
|
+
export type CreateAppRuntimeOptions = InitializeServicesOptions;
|
|
8
|
+
export declare function createApp(options: CreateAppOptions, runtimeOptions?: CreateAppRuntimeOptions): Promise<{
|
|
7
9
|
app: import("hono/hono-base").HonoBase<import("../middleware/logger.ts").LoggerEnv & import("../middleware/session.ts").SessionEnv & import("../middleware/services.ts").ServicesEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
|
|
8
10
|
"/auth/login": {
|
|
9
11
|
$post: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/entrypoints/app.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/entrypoints/app.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;AAC1D,MAAM,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAEhE,wBAAsB,SAAS,CAC7B,OAAO,EAAE,gBAAgB,EACzB,cAAc,GAAE,uBAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwE7C;AAED,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC"}
|
package/dist/entrypoints/app.js
CHANGED
|
@@ -11,14 +11,14 @@ import { sessionMiddleware } from "../middleware/session.js";
|
|
|
11
11
|
import { trustedProxyGuard } from "../middleware/trusted-proxy-guard.js";
|
|
12
12
|
import { routes } from "../routes/index.js";
|
|
13
13
|
import { e, TinyAuthError } from "../schemas/error.js";
|
|
14
|
-
import { initializeServices } from "../services/container.js";
|
|
15
|
-
export async function createApp(options) {
|
|
14
|
+
import { initializeServices, } from "../services/container.js";
|
|
15
|
+
export async function createApp(options, runtimeOptions = {}) {
|
|
16
16
|
const config = TinyAuthRuntimeConfigSchema.parse(options);
|
|
17
17
|
const openApiDocumentation = createOpenApiDocumentation(config.openapi);
|
|
18
18
|
// Create root logger (use config.logging.level: 'silent' to suppress)
|
|
19
19
|
const logger = createLogger({ logging: config.logging });
|
|
20
20
|
// Initialize all services (DB, mail, scheduler, etc.)
|
|
21
|
-
const { services, cleanup } = await initializeServices(config, logger);
|
|
21
|
+
const { services, cleanup } = await initializeServices(config, logger, runtimeOptions);
|
|
22
22
|
const frontendHandler = config.frontend?.({
|
|
23
23
|
branding: config.branding,
|
|
24
24
|
server: config.server,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/entrypoints/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAEL,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;A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SAC5B,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC;SAClB,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;QACpB,IAAI,eAAe,EAAE,CAAC;YACpB,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC;QAC5B,CAAC;QACD,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,GAAG,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEL,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;QACpC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YAC5B,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,GAAG,CAAC,CAAC;QAC7C,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,GAAG,EAAE;YACpC,aAAa,EAAE,oBAAoB;SACpC,CAAC,CAAC;QAEH,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,kBAAkB;IAClB,MAAM,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;IAEjC,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AAC5C,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Options } from '@mikro-orm/core';
|
|
2
|
+
declare const config: Partial<Options>;
|
|
3
|
+
export default config;
|
|
3
4
|
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/entrypoints/database/d1/cli.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/entrypoints/database/d1/cli.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAuC/C,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,OAAO,CAM5B,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="@cloudflare/workers-types" />
|
|
2
1
|
import { d1 } from "./d1.js";
|
|
3
|
-
|
|
2
|
+
const options = await d1({
|
|
4
3
|
database: {
|
|
5
4
|
exec: async () => ({
|
|
6
5
|
results: [],
|
|
@@ -35,4 +34,12 @@ export default await d1({
|
|
|
35
34
|
},
|
|
36
35
|
},
|
|
37
36
|
}).getMikroOrmOptions();
|
|
37
|
+
const config = {
|
|
38
|
+
...options,
|
|
39
|
+
migrations: {
|
|
40
|
+
...options.migrations,
|
|
41
|
+
path: './src/migrations/d1',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
export default config;
|
|
38
45
|
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/entrypoints/database/d1/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/entrypoints/database/d1/cli.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE;QACR,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YACjB,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;SAC5B,CAAC;QACF,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;YACd,IAAI,EAAE;gBACJ,OAAO,IAAI,CAAC;YACd,CAAC;YACD,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI;YACvB,GAA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