@casekit/orm2-config 1.0.4 → 1.0.6
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.
|
@@ -2,6 +2,7 @@ import { snakeCase } from "es-toolkit";
|
|
|
2
2
|
import { describe, expect, test } from "vitest";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { sql } from "@casekit/sql";
|
|
5
|
+
import { defaultLogger } from "./defaultLogger.js";
|
|
5
6
|
import { normalizeConfig } from "./normalizeConfig.js";
|
|
6
7
|
describe("normalizeConfig", () => {
|
|
7
8
|
test("normalizes minimal config with defaults", () => {
|
|
@@ -21,7 +22,7 @@ describe("normalizeConfig", () => {
|
|
|
21
22
|
expect(result.extensions).toEqual([]);
|
|
22
23
|
expect(result.connection).toBeNull();
|
|
23
24
|
expect(result.pool).toBe(true);
|
|
24
|
-
expect(result.logger).toBe(
|
|
25
|
+
expect(result.logger).toBe(defaultLogger);
|
|
25
26
|
expect(typeof result.naming.column).toBe("function");
|
|
26
27
|
expect(typeof result.naming.table).toBe("function");
|
|
27
28
|
// Test that default identity functions don't transform names
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casekit/orm2-config",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.6",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"es-toolkit": "^1.39.3",
|
|
8
|
-
"@casekit/orm2-schema": "1.0.
|
|
9
|
-
"@casekit/sql": "1.0.
|
|
10
|
-
"@casekit/toolbox": "1.0.
|
|
8
|
+
"@casekit/orm2-schema": "1.0.6",
|
|
9
|
+
"@casekit/sql": "1.0.6",
|
|
10
|
+
"@casekit/toolbox": "1.0.6"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"typescript-eslint": "^8.34.1",
|
|
22
22
|
"vite-tsconfig-paths": "^5.1.4",
|
|
23
23
|
"vitest": "^3.2.4",
|
|
24
|
-
"@casekit/
|
|
25
|
-
"@casekit/
|
|
26
|
-
"@casekit/
|
|
24
|
+
"@casekit/tsconfig": "1.0.6",
|
|
25
|
+
"@casekit/prettier-config": "1.0.6",
|
|
26
|
+
"@casekit/orm2-schema": "1.0.6"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
".": "./build/index.js"
|