@auth/d1-adapter 1.4.2 → 1.5.0
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/index.d.ts.map +1 -1
- package/index.js +0 -2
- package/package.json +2 -2
- package/src/index.ts +0 -2
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACtE,OAAO,EACL,KAAK,OAAO,EAMb,MAAM,qBAAqB,CAAA;AAsB5B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AAEpC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACtE,OAAO,EACL,KAAK,OAAO,EAMb,MAAM,qBAAqB,CAAA;AAsB5B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AAEpC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAA;AAsB7D,wBAAsB,YAAY,CAAC,UAAU,EAC3C,EAAE,EAAE,UAAU,EACd,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,GAAG,EAAE,EACf,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,GAAG,EAAE,8BAanB;AAED,wBAAsB,SAAS,CAAC,UAAU,EACxC,EAAE,EAAE,UAAU,EACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,GAAG,EAAE,GACd,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAgB5B;AAED,wBAAsB,YAAY,CAChC,EAAE,EAAE,UAAU,EACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,GAAG,EAAE,8GAYhB;AAED,wBAAsB,YAAY,CAChC,EAAE,EAAE,UAAU,EACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,GAAG,EAAE,iBAYhB;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,UAAU,GAAG,OAAO,CAoLjD"}
|
package/index.js
CHANGED
|
@@ -25,7 +25,6 @@ export { up } from "./migrations.js";
|
|
|
25
25
|
function format(obj) {
|
|
26
26
|
for (const [key, value] of Object.entries(obj)) {
|
|
27
27
|
if (value === null) {
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
29
28
|
delete obj[key];
|
|
30
29
|
}
|
|
31
30
|
if (isDate(value)) {
|
|
@@ -85,7 +84,6 @@ export async function updateRecord(db, SQL, bindings) {
|
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
86
|
export async function deleteRecord(db, SQL, bindings) {
|
|
88
|
-
// eslint-disable-next-line no-useless-catch
|
|
89
87
|
try {
|
|
90
88
|
bindings = cleanBindings(bindings);
|
|
91
89
|
await db
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auth/d1-adapter",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "A Cloudflare D1 adapter for Auth.js",
|
|
5
5
|
"homepage": "https://authjs.dev",
|
|
6
6
|
"repository": "https://github.com/nextauthjs/next-auth",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@auth/core": "0.
|
|
41
|
+
"@auth/core": "0.35.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@cloudflare/workers-types": "^4.20230321.0",
|
package/src/index.ts
CHANGED
|
@@ -61,7 +61,6 @@ export type D1Database = WorkerDatabase | MiniflareD1Database
|
|
|
61
61
|
function format<T>(obj: Record<string, any>): T {
|
|
62
62
|
for (const [key, value] of Object.entries(obj)) {
|
|
63
63
|
if (value === null) {
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
65
64
|
delete obj[key]
|
|
66
65
|
}
|
|
67
66
|
|
|
@@ -142,7 +141,6 @@ export async function deleteRecord(
|
|
|
142
141
|
SQL: string,
|
|
143
142
|
bindings: any[]
|
|
144
143
|
) {
|
|
145
|
-
// eslint-disable-next-line no-useless-catch
|
|
146
144
|
try {
|
|
147
145
|
bindings = cleanBindings(bindings)
|
|
148
146
|
await db
|