@authhero/drizzle 0.53.4 → 0.53.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.
package/dist/drizzle-adapter.mjs
CHANGED
|
@@ -17796,7 +17796,8 @@ function bx(e) {
|
|
|
17796
17796
|
try {
|
|
17797
17797
|
await e.insert(b).values(r);
|
|
17798
17798
|
} catch (e) {
|
|
17799
|
-
|
|
17799
|
+
let t = e?.message ?? "";
|
|
17800
|
+
throw t.includes("UNIQUE constraint failed") || t.includes("Duplicate entry") || t.includes("duplicate key") || t.includes("AlreadyExists") || e?.code === "SQLITE_CONSTRAINT" || e?.code === "SQLITE_CONSTRAINT_UNIQUE" || e?.code === "SQLITE_CONSTRAINT_PRIMARYKEY" || e?.code === "ER_DUP_ENTRY" || e?.code === "23505" ? new Tn(409, { message: `Tenant with ID '${n.id}' already exists` }) : e;
|
|
17800
17801
|
}
|
|
17801
17802
|
return n;
|
|
17802
17803
|
},
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "0.53.
|
|
14
|
+
"version": "0.53.6",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
17
|
"src/schema",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"drizzle-orm": "^0.44.2",
|
|
36
36
|
"nanoid": "^5.1.11",
|
|
37
37
|
"@authhero/adapter-interfaces": "3.1.0",
|
|
38
|
-
"@authhero/proxy": "0.
|
|
38
|
+
"@authhero/proxy": "0.6.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@hono/zod-openapi": "^1.4.0",
|