rado 0.1.41 → 0.1.43

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/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export * from './lib/Driver';
4
4
  export * from './lib/Expr';
5
5
  export * from './lib/Fields';
6
6
  export * from './lib/Formatter';
7
- export { Functions } from './lib/Functions';
7
+ export * from './lib/Functions';
8
8
  export * from './lib/Id';
9
9
  export * from './lib/Index';
10
10
  export * from './lib/Ops';
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ export * from "./lib/Driver.js";
5
5
  export * from "./lib/Expr.js";
6
6
  export * from "./lib/Fields.js";
7
7
  export * from "./lib/Formatter.js";
8
- import { Functions } from "./lib/Functions.js";
8
+ export * from "./lib/Functions.js";
9
9
  export * from "./lib/Id.js";
10
10
  export * from "./lib/Index.js";
11
11
  export * from "./lib/Ops.js";
@@ -19,6 +19,3 @@ export * from "./lib/Statement.js";
19
19
  export * from "./lib/Table.js";
20
20
  export * from "./lib/Target.js";
21
21
  export * from "./lib/Update.js";
22
- export {
23
- Functions
24
- };
@@ -14,7 +14,7 @@ interface PartialColumnData {
14
14
  autoIncrement?: boolean;
15
15
  primaryKey?: boolean;
16
16
  unique?: boolean;
17
- references?: ExprData;
17
+ references?: () => ExprData;
18
18
  }
19
19
  export interface ColumnData extends PartialColumnData {
20
20
  type: ColumnType;
@@ -27,7 +27,7 @@ var Column = class {
27
27
  references(column2) {
28
28
  return new Column({
29
29
  ...this.data,
30
- get references() {
30
+ references() {
31
31
  return ExprData.create(typeof column2 === "function" ? column2() : column2);
32
32
  }
33
33
  });
@@ -242,7 +242,7 @@ var Formatter = class {
242
242
  stmt.closeParenthesis();
243
243
  }
244
244
  if (column.references)
245
- this.formatContraintReference(ctx, column.references);
245
+ this.formatContraintReference(ctx, column.references());
246
246
  return stmt;
247
247
  }
248
248
  formatContraintReference(ctx, reference) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rado",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -12,6 +12,16 @@
12
12
  "dist"
13
13
  ],
14
14
  "sideEffects": false,
15
+ "typesVersions": {
16
+ "*": {
17
+ "driver/bun:sqlite": [
18
+ "./dist/driver/bun-sqlite.d.ts"
19
+ ],
20
+ "*": [
21
+ "./dist/*"
22
+ ]
23
+ }
24
+ },
15
25
  "scripts": {
16
26
  "build": "tsc -p tsconfig.build.json && tsx build.ts",
17
27
  "test": "tsx test",