@authhero/kysely-adapter 10.65.0 → 10.65.2
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/kysely-adapter.mjs +10 -0
- package/package.json +2 -2
package/dist/kysely-adapter.mjs
CHANGED
|
@@ -8,12 +8,22 @@ var i = (t, e, n) => (Qt(t, e, "read from private field"), n ? n.call(t) : e.get
|
|
|
8
8
|
import { parseUserId as pn, codeSchema as Wa, connectionSchema as Ka, loginSessionSchema as Ua, promptSettingSchema as Qa, formSchema as Tt, resourceServerSchema as Va } from "@authhero/adapter-interfaces";
|
|
9
9
|
import "@hono/zod-openapi";
|
|
10
10
|
var et = class extends Error {
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of `HTTPException`.
|
|
13
|
+
* @param status - HTTP status code for the exception. Defaults to 500.
|
|
14
|
+
* @param options - Additional options for the exception.
|
|
15
|
+
*/
|
|
11
16
|
constructor(e = 500, n) {
|
|
12
17
|
super(n == null ? void 0 : n.message, { cause: n == null ? void 0 : n.cause });
|
|
13
18
|
ie(this, "res");
|
|
14
19
|
ie(this, "status");
|
|
15
20
|
this.res = n == null ? void 0 : n.res, this.status = e;
|
|
16
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns the response object associated with the exception.
|
|
24
|
+
* If a response object is not provided, a new response is created with the error message and status code.
|
|
25
|
+
* @returns The response object.
|
|
26
|
+
*/
|
|
17
27
|
getResponse() {
|
|
18
28
|
return this.res ? new Response(this.res.body, {
|
|
19
29
|
status: this.status,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "10.65.
|
|
14
|
+
"version": "10.65.2",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"kysely": "^0.27.4",
|
|
44
44
|
"nanoid": "^5.0.8",
|
|
45
|
-
"@authhero/adapter-interfaces": "^0.
|
|
45
|
+
"@authhero/adapter-interfaces": "^0.108.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@hono/zod-openapi": "^0.19.2",
|