File tree Expand file tree Collapse file tree 8 files changed +58
-32
lines changed Expand file tree Collapse file tree 8 files changed +58
-32
lines changed Original file line number Diff line number Diff line change 34
34
- " @next-auth/supabase-adapter"
35
35
- " @auth/typeorm-adapter"
36
36
- " @auth/upstash-redis-adapter"
37
- - " @next- auth/xata-adapter"
37
+ - " @auth/xata-adapter"
38
38
validations :
39
39
required : true
40
40
- type : textarea
Original file line number Diff line number Diff line change @@ -40,4 +40,4 @@ upstash-redis:
40
40
- " @auth/upstash-redis-adapter"
41
41
42
42
xata :
43
- - " @next- auth/xata-adapter"
43
+ - " @auth/xata-adapter"
Original file line number Diff line number Diff line change 8
8
</a >
9
9
<h3 align =" center " ><b >Xata Adapter</b > - NextAuth.js / Auth.js</a ></h3 >
10
10
<p align =" center " style =" align : center ;" >
11
- <a href="https://npm.im/@next- auth/xata-adapter">
11
+ <a href="https://npm.im/@auth/xata-adapter">
12
12
<img src="https://img.shields.io/badge/TypeScript-blue?style=flat-square" alt="TypeScript" />
13
13
</a>
14
- <a href="https://npm.im/@next- auth/xata-adapter">
15
- <img alt="npm" src="https://img.shields.io/npm/v/@next- auth/xata-adapter?color=green&label=@next- auth/xata-adapter&style=flat-square">
14
+ <a href="https://npm.im/@auth/xata-adapter">
15
+ <img alt="npm" src="https://img.shields.io/npm/v/@auth/xata-adapter?color=green&label=@auth/xata-adapter&style=flat-square">
16
16
</a>
17
- <a href="https://www.npmtrends.com/@next- auth/xata-adapter">
18
- <img src="https://img.shields.io/npm/dm/@next- auth/xata-adapter?label=%20downloads&style=flat-square" alt="Downloads" />
17
+ <a href="https://www.npmtrends.com/@auth/xata-adapter">
18
+ <img src="https://img.shields.io/npm/dm/@auth/xata-adapter?label=%20downloads&style=flat-square" alt="Downloads" />
19
19
</a>
20
20
<a href="https://github.com/nextauthjs/next-auth/stargazers">
21
21
<img src="https://img.shields.io/github/stars/nextauthjs/next-auth?style=flat-square" alt="Github Stars" />
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @next- auth/xata-adapter" ,
3
- "version" : " 0.2.2 " ,
4
- "description" : " Xata adapter for next-auth. " ,
2
+ "name" : " @auth/xata-adapter" ,
3
+ "version" : " 0.0.0 " ,
4
+ "description" : " Xata adapter for Auth.js " ,
5
5
"homepage" : " https://authjs.dev" ,
6
6
"repository" : " https://github.com/nextauthjs/next-auth" ,
7
7
"bugs" : {
8
8
"url" : " https://github.com/nextauthjs/next-auth/issues"
9
9
},
10
10
"author" : " Tejas Kumar" ,
11
- "main" : " dist/index.js" ,
11
+ "type" : " module" ,
12
+ "types" : " ./index.d.ts" ,
13
+ "files" : [
14
+ " *.js" ,
15
+ " *.d.ts*" ,
16
+ " src"
17
+ ],
18
+ "exports" : {
19
+ "." : {
20
+ "types" : " ./index.d.ts" ,
21
+ "import" : " ./index.js"
22
+ }
23
+ },
12
24
"license" : " ISC" ,
13
25
"keywords" : [
14
26
" next-auth" ,
24
36
"build" : " tsc" ,
25
37
"test" : " jest"
26
38
},
27
- "files" : [
28
- " README.md" ,
29
- " dist"
30
- ],
39
+ "dependencies" : {
40
+ "@auth/core" : " workspace:*"
41
+ },
31
42
"peerDependencies" : {
32
- "@xata.io/client" : " >=0.13.0" ,
33
- "next-auth" : " ^4"
43
+ "@xata.io/client" : " >=0.13.0"
34
44
},
35
45
"devDependencies" : {
36
46
"@next-auth/adapter-test" : " workspace:^0.0.0" ,
37
47
"@next-auth/tsconfig" : " workspace:^0.0.0" ,
38
48
"jest" : " ^27.4.3" ,
39
- "next-auth" : " workspace:*" ,
40
49
"@xata.io/client" : " ^0.13.0" ,
41
50
"typescript" : " ^4.7.4"
42
51
},
43
52
"jest" : {
44
53
"preset" : " @next-auth/adapter-test/jest"
45
54
}
46
- }
55
+ }
Original file line number Diff line number Diff line change 10
10
*
11
11
* ```bash npm2yarn2pnpm
12
12
* # Install Auth.js and the Xata adapter
13
- * npm install next-auth @next- auth/xata-adapter
13
+ * npm install @ auth/xata-adapter
14
14
*
15
15
* # Install the Xata CLI globally if you don't already have it
16
16
* npm install --location=global @xata.io/cli
19
19
* xata auth login
20
20
* ```
21
21
*
22
- * @module @next - auth/xata-adapter
22
+ * @module @auth /xata-adapter
23
23
*/
24
- import type { Adapter } from "next- auth/adapters"
24
+ import type { Adapter } from "@ auth/core /adapters"
25
25
26
26
import type { XataClient } from "./xata"
27
27
@@ -220,7 +220,7 @@ import type { XataClient } from "./xata"
220
220
* ```diff
221
221
* import NextAuth from "next-auth"
222
222
* import GoogleProvider from "next-auth/providers/google"
223
- * +import { XataAdapter } from "@next- auth/xata-adapter"
223
+ * +import { XataAdapter } from "@auth/xata-adapter"
224
224
* +import { XataClient } from "../../../xata" // or wherever you've chosen to create the client
225
225
*
226
226
* +const client = new XataClient()
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " @next-auth/tsconfig/tsconfig.adapters .json" ,
2
+ "extends" : " @next-auth/tsconfig/tsconfig.base .json" ,
3
3
"compilerOptions" : {
4
+ "allowJs" : true ,
5
+ "baseUrl" : " ." ,
6
+ "isolatedModules" : true ,
7
+ "target" : " ES2020" ,
8
+ "module" : " ESNext" ,
9
+ "moduleResolution" : " node" ,
10
+ "outDir" : " ." ,
4
11
"rootDir" : " src" ,
5
- "outDir" : " dist"
12
+ "skipDefaultLibCheck" : true ,
13
+ "strictNullChecks" : true ,
14
+ "stripInternal" : true ,
15
+ "declarationMap" : true ,
16
+ "declaration" : true
6
17
},
7
- "include" : [" ." ],
8
- "exclude" : [" tests" , " dist" , " jest.config.js" ]
9
- }
18
+ "include" : [
19
+ " src/**/*"
20
+ ],
21
+ "exclude" : [
22
+ " *.js" ,
23
+ " *.d.ts" ,
24
+ ]
25
+ }
Original file line number Diff line number Diff line change 67
67
" @next-auth/supabase-adapter#build" ,
68
68
" @auth/typeorm-adapter#build" ,
69
69
" @auth/upstash-redis-adapter#build" ,
70
- " @next- auth/xata-adapter#build" ,
70
+ " @auth/xata-adapter#build" ,
71
71
" ^build" ,
72
72
" next-auth#build"
73
73
],
90
90
" @next-auth/supabase-adapter#build" ,
91
91
" @auth/typeorm-adapter#build" ,
92
92
" @auth/upstash-redis-adapter#build" ,
93
- " @next- auth/xata-adapter#build" ,
93
+ " @auth/xata-adapter#build" ,
94
94
" ^build" ,
95
95
" next-auth#build"
96
96
],
You can’t perform that action at this time.
0 commit comments