@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/entrypoints/database/postgres/postgres.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../src/entrypoints/database/postgres/postgres.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AASnE,wBAAgB,QAAQ,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,cAAc,CA6BjB"}
|
|
@@ -4,6 +4,7 @@ import { PostgreSqlDriver } from '@mikro-orm/postgresql';
|
|
|
4
4
|
import { SeedManager } from '@mikro-orm/seeder';
|
|
5
5
|
import { resolveCompiledFunctionsForEntities } from "../../../lib/database/compiled-functions.js";
|
|
6
6
|
import { getDatabaseEntities, getDatabaseEntitiesWithMetadata, } from "../../../lib/database/entities.js";
|
|
7
|
+
import { POSTGRES_MIGRATIONS } from "../../../migrations/postgres/index.js";
|
|
7
8
|
import compiledFunctions from './compiled-functions.js';
|
|
8
9
|
export function postgres(database) {
|
|
9
10
|
return {
|
|
@@ -18,10 +19,11 @@ export function postgres(database) {
|
|
|
18
19
|
user: database.user,
|
|
19
20
|
password: database.password,
|
|
20
21
|
extensions: [SeedManager, Migrator],
|
|
22
|
+
migrations: {
|
|
23
|
+
migrationsList: POSTGRES_MIGRATIONS,
|
|
24
|
+
},
|
|
21
25
|
driverOptions: {
|
|
22
|
-
|
|
23
|
-
ssl: true,
|
|
24
|
-
},
|
|
26
|
+
ssl: true,
|
|
25
27
|
},
|
|
26
28
|
debug: false,
|
|
27
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.js","sourceRoot":"","sources":["../../../../src/entrypoints/database/postgres/postgres.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAiB,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,mCAAmC,EAAE,MAAM,6CAA6C,CAAC;AAClG,OAAO,EACL,mBAAmB,EACnB,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AAExD,MAAM,UAAU,QAAQ,CAAC,QAMxB;IACC,OAAO;QACL,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,OAAO,YAAY,CAAC;gBAClB,MAAM,EAAE,gBAAgB;gBACxB,iBAAiB,EAAE,mCAAmC,CACpD,+BAA+B,EAAE,EACjC,iBAAiB,CAClB;gBACD,QAAQ,EAAE,CAAC,GAAG,mBAAmB,EAAE,CAAC;gBACpC,IAAI,EAAE,QAAQ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AW,EAAE,QAAQ,CAAC;gBACnC,UAAU,EAAE;oBACV,cAAc,EAAE,mBAAmB;iBACpC;gBACD,aAAa,EAAE;oBACb,GAAG,EAAE,IAAI;iBACV;gBACD,KAAK,EAAE,KAAK;aACb,CAAC,CAAC;QACL,CAAC;QACD,UAAU,EAAE,KAAK,EAAE,GAAa,EAAE,EAAE;YAClC,MAAM,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QAC1B,CAAC;KACF,CAAC;AACJ,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/sqlite/cli.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/entrypoints/database/sqlite/cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAQ/C,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,OAAO,CAM5B,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { sqlite } from "./sqlite.js";
|
|
2
|
-
|
|
2
|
+
const options = await sqlite({
|
|
3
3
|
path: '/path/some',
|
|
4
4
|
test: true,
|
|
5
5
|
}).getMikroOrmOptions();
|
|
6
|
+
const config = {
|
|
7
|
+
...options,
|
|
8
|
+
migrations: {
|
|
9
|
+
...options.migrations,
|
|
10
|
+
path: './src/migrations/sqlite',
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
export default config;
|
|
6
14
|
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/entrypoints/database/sqlite/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/entrypoints/database/sqlite/cli.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC;IAC3B,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,IAAI;CACX,CAAC,CAAC,kBAAkB,EAAE,CAAC;AAExB,MAAM,MAAM,GAAqB;IAC/B,GAAG,OAAO;IACV,UAAU,EAAE;QACV,GAAG,OAAO,CAAC,UAAU;QACrB,IAAI,EAAE,yBAAyB;KAChC;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|