@arkstack/database 0.17.16 → 0.17.17

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.
@@ -1,4 +1,4 @@
1
- import { t as Rebuilder } from "./chunks/Rebuilder-CL-V8vgc.js";
1
+ import { t as Rebuilder } from "./chunks/Rebuilder-CkDEcN65.js";
2
2
  import { CliApp, MakeFactoryCommand as MakeFactoryCommand$1 } from "arkormx";
3
3
  //#region src/commands/MakeFactoryCommand.ts
4
4
  var MakeFactoryCommand = class extends MakeFactoryCommand$1 {
@@ -1,4 +1,4 @@
1
- import { t as Rebuilder } from "./chunks/Rebuilder-CL-V8vgc.js";
1
+ import { t as Rebuilder } from "./chunks/Rebuilder-CkDEcN65.js";
2
2
  import { CliApp, MakeMigrationCommand as MakeMigrationCommand$1 } from "arkormx";
3
3
  //#region src/commands/MakeMigrationCommand.ts
4
4
  var MakeMigrationCommand = class extends MakeMigrationCommand$1 {
@@ -1,4 +1,4 @@
1
- import { t as Rebuilder } from "./chunks/Rebuilder-CL-V8vgc.js";
1
+ import { t as Rebuilder } from "./chunks/Rebuilder-CkDEcN65.js";
2
2
  import { CliApp, MakeModelCommand as MakeModelCommand$1 } from "arkormx";
3
3
  //#region src/commands/MakeModelCommand.ts
4
4
  var MakeModelCommand = class extends MakeModelCommand$1 {
@@ -1,4 +1,4 @@
1
- import { t as Rebuilder } from "./chunks/Rebuilder-CL-V8vgc.js";
1
+ import { t as Rebuilder } from "./chunks/Rebuilder-CkDEcN65.js";
2
2
  import { CliApp, MakeSeederCommand as MakeSeederCommand$1 } from "arkormx";
3
3
  //#region src/commands/MakeSeederCommand.ts
4
4
  var MakeSeederCommand = class extends MakeSeederCommand$1 {
@@ -14,7 +14,8 @@ var Rebuilder = class Rebuilder {
14
14
  try {
15
15
  const inst = new Rebuilder(app);
16
16
  const dir = inst.paths()[type] ?? join(Arkstack.rootDir(), "src", type);
17
- let outputPath = join(dir, `${name}.${inst.resolveOutputExt()}`);
17
+ const outputExt = inst.resolveOutputExt();
18
+ let outputPath = join(dir, `${name}.${outputExt}`);
18
19
  if (type === "migrations") outputPath = globSync(`${join(dir, inst.date())}*_${name}.ts`, {
19
20
  cwd: Arkstack.rootDir(),
20
21
  withFileTypes: false
package/dist/index.d.ts CHANGED
@@ -3,7 +3,6 @@ import { IDatabaseDriver, ValidationDatabaseExistsInput } from "kanun";
3
3
  import { DotPath, DotPathValue } from "@arkstack/common";
4
4
  import { Pool } from "pg";
5
5
  import { Kysely } from "kysely";
6
-
7
6
  //#region src/extensions/DB.d.ts
8
7
  declare class DB extends DB$1 {}
9
8
  //#endregion
@@ -24,12 +23,7 @@ declare abstract class Seeder extends Seeder$1 {}
24
23
  //#endregion
25
24
  //#region src/ValidatorDBDriver.d.ts
26
25
  declare class ValidatorDBDriver extends IDatabaseDriver {
27
- exists({
28
- table,
29
- column,
30
- value,
31
- ignore
32
- }: ValidationDatabaseExistsInput): Promise<boolean>;
26
+ exists({ table, column, value, ignore }: ValidationDatabaseExistsInput): Promise<boolean>;
33
27
  }
34
28
  //#endregion
35
29
  //#region src/types.d.ts
package/dist/setup.d.ts CHANGED
@@ -1 +1 @@
1
- export { };
1
+ import "dotenv/config";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/database",
3
- "version": "0.17.16",
3
+ "version": "0.17.17",
4
4
  "type": "module",
5
5
  "description": "Database module for Arkstack, providing core database integration and data layer features.",
6
6
  "homepage": "https://arkstack.toneflix.net",
@@ -47,17 +47,17 @@
47
47
  },
48
48
  "peerDependencies": {
49
49
  "kanun": "^1.2.0",
50
- "clear-router": "^2.9.2"
50
+ "clear-router": "^2.9.3"
51
51
  },
52
52
  "dependencies": {
53
- "@arkormx/plugin-clear-router": "^0.1.56",
53
+ "@arkormx/plugin-clear-router": "^0.1.57",
54
54
  "dotenv": "^17.4.2",
55
- "arkormx": "^2.12.0",
55
+ "arkormx": "^2.12.8",
56
56
  "kysely": "^0.29.2",
57
57
  "pg": "^8.22.0",
58
- "resora": "^1.3.32",
59
- "@arkstack/contract": "^0.17.16",
60
- "@arkstack/common": "^0.17.16"
58
+ "resora": "^1.3.34",
59
+ "@arkstack/contract": "^0.17.17",
60
+ "@arkstack/common": "^0.17.17"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/pg": "^8.16.0"