@entro314labs/entro-auth-drizzle-adapter 1.8.0-beta.12 → 1.8.0-beta.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DrizzleAdapterConfig } from "./index.mjs";
|
|
2
|
-
import { DBAdapterSchemaCreation } from "@entro314labs/entro-auth-core/db/adapter";
|
|
3
|
-
import { EntroAuthDBSchema } from "@entro314labs/entro-auth-core/db";
|
|
4
1
|
import { EntroAuthOptions } from "@entro314labs/entro-auth-core";
|
|
2
|
+
import { EntroAuthDBSchema } from "@entro314labs/entro-auth-core/db";
|
|
3
|
+
import { DBAdapterSchemaCreation } from "@entro314labs/entro-auth-core/db/adapter";
|
|
4
|
+
import { DrizzleAdapterConfig } from "./index.mjs";
|
|
5
5
|
interface SchemaGenerator {
|
|
6
6
|
<Options extends EntroAuthOptions>(opts: {
|
|
7
7
|
file?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { initGetFieldName, initGetModelName } from "@entro314labs/entro-auth-core/db/adapter";
|
|
2
|
-
import { getDatabaseFieldIndexName, getDatabaseIndexStringLength, resolveDatabaseSchemaIndexes } from "@entro314labs/entro-auth-core/db/internal";
|
|
3
1
|
import { existsSync } from "node:fs";
|
|
4
2
|
import path from "node:path";
|
|
5
3
|
import { getAuthTables } from "@entro314labs/entro-auth-core/db";
|
|
4
|
+
import { initGetFieldName, initGetModelName } from "@entro314labs/entro-auth-core/db/adapter";
|
|
5
|
+
import { getDatabaseFieldIndexName, getDatabaseIndexStringLength, resolveDatabaseSchemaIndexes } from "@entro314labs/entro-auth-core/db/internal";
|
|
6
6
|
// src/generate-drizzle-schema.ts
|
|
7
7
|
function convertToSnakeCase(str, camelCase) {
|
|
8
8
|
if (camelCase) return str;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DBAdapter, DBAdapterDebugLogOption } from "@entro314labs/entro-auth-core/db/adapter";
|
|
2
1
|
import { EntroAuthOptions } from "@entro314labs/entro-auth-core";
|
|
2
|
+
import { DBAdapter, DBAdapterDebugLogOption } from "@entro314labs/entro-auth-core/db/adapter";
|
|
3
3
|
export interface DB {
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entro314labs/entro-auth-drizzle-adapter",
|
|
3
|
-
"version": "1.8.0-beta.
|
|
3
|
+
"version": "1.8.0-beta.13",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/better-auth/better-auth/issues"
|
|
6
6
|
},
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@entro314labs/entro-auth-core": "^1.8.0-beta.
|
|
47
|
-
"@better-auth/utils": "^0.4.2 || ^0.5.
|
|
46
|
+
"@entro314labs/entro-auth-core": "^1.8.0-beta.13",
|
|
47
|
+
"@better-auth/utils": "^0.4.2 || ^0.5.1",
|
|
48
48
|
"drizzle-orm": ">=1.0.0-rc.6 <2.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@entro314labs/entro-auth-core": "1.8.0-beta.
|
|
56
|
+
"@entro314labs/entro-auth-core": "1.8.0-beta.13",
|
|
57
57
|
"@better-auth/utils": "0.5.1",
|
|
58
58
|
"drizzle-orm": "1.0.0-rc.6",
|
|
59
|
-
"tsdown": "0.23.
|
|
59
|
+
"tsdown": "0.23.7",
|
|
60
60
|
"typescript": "^6.0.3"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|