UNPKG

6.04 kBJSONView Raw
1{
2 "name": "next-auth",
3 "version": "4.1.2",
4 "description": "Authentication for Next.js",
5 "homepage": "https://next-auth.js.org",
6 "repository": "https://github.com/nextauthjs/next-auth.git",
7 "author": "Iain Collins <me@iaincollins.com>",
8 "contributors": [
9 "Balázs Orbán <info@balazsorban.com>",
10 "Nico Domino <yo@ndo.dev>",
11 "Lluis Agusti <hi@llu.lu>"
12 ],
13 "main": "index.js",
14 "module": "index.js",
15 "types": "index.d.ts",
16 "keywords": [
17 "react",
18 "nodejs",
19 "oauth",
20 "jwt",
21 "oauth2",
22 "authentication",
23 "nextjs",
24 "csrf",
25 "oidc",
26 "nextauth"
27 ],
28 "exports": {
29 ".": "./index.js",
30 "./jwt": "./jwt/index.js",
31 "./react": "./react/index.js",
32 "./core": "./core/index.js",
33 "./next": "./next/index.js",
34 "./client/_utils": "./client/_utils.js",
35 "./providers/*": "./providers/*.js"
36 },
37 "scripts": {
38 "build": "npm run build:js && npm run build:css",
39 "clean": "rm -rf client css lib providers core jwt react next index.d.ts index.js adapters.d.ts",
40 "build:js": "npm run clean && npm run generate-providers && tsc && babel --config-file ./config/babel.config.js src --out-dir . --extensions \".tsx,.ts,.js,.jsx\"",
41 "build:css": "postcss --config config/postcss.config.js src/**/*.css --base src --dir . && node config/wrap-css.js",
42 "dev:setup": "npm i && npm run generate-providers && npm run build:css && cd app && npm i",
43 "dev": "cd app && npm run dev",
44 "watch:css": "postcss --config config/postcss.config.js --watch src/**/*.css --base src --dir .",
45 "test": "jest --config ./config/jest.config.js",
46 "test:ci": "npm run lint && npm run test -- --ci",
47 "prepublishOnly": "npm run build",
48 "lint": "eslint .",
49 "lint:fix": "eslint . --fix",
50 "version:pr": "node ./config/version-pr",
51 "generate-providers": "node ./config/generate-providers.js"
52 },
53 "files": [
54 "lib",
55 "css",
56 "jwt",
57 "react",
58 "next",
59 "client",
60 "providers",
61 "core",
62 "index.d.ts",
63 "index.js",
64 "adapters.d.ts"
65 ],
66 "license": "ISC",
67 "dependencies": {
68 "@babel/runtime": "^7.16.3",
69 "@panva/hkdf": "^1.0.1",
70 "cookie": "^0.4.1",
71 "jose": "^4.3.7",
72 "oauth": "^0.9.15",
73 "openid-client": "^5.1.0",
74 "preact": "^10.6.3",
75 "preact-render-to-string": "^5.1.19",
76 "uuid": "^8.3.2"
77 },
78 "peerDependencies": {
79 "nodemailer": "^6.6.5",
80 "react": "^17.0.2",
81 "react-dom": "^17.0.2"
82 },
83 "peerDependenciesMeta": {
84 "nodemailer": {
85 "optional": true
86 }
87 },
88 "devDependencies": {
89 "@actions/core": "^1.6.0",
90 "@babel/cli": "^7.16.0",
91 "@babel/core": "^7.16.0",
92 "@babel/plugin-proposal-optional-catch-binding": "^7.16.0",
93 "@babel/plugin-transform-runtime": "^7.16.4",
94 "@babel/preset-env": "^7.16.4",
95 "@babel/preset-react": "^7.16.0",
96 "@babel/preset-typescript": "^7.16.0",
97 "@testing-library/jest-dom": "^5.16.1",
98 "@testing-library/react": "^12.1.2",
99 "@testing-library/react-hooks": "^7.0.2",
100 "@testing-library/user-event": "^13.5.0",
101 "@types/node": "^16.11.12",
102 "@types/nodemailer": "^6.4.4",
103 "@types/oauth": "^0.9.1",
104 "@types/react": "^17.0.37",
105 "@types/react-dom": "^17.0.11",
106 "@typescript-eslint/parser": "^4.33.0",
107 "autoprefixer": "^10.4.0",
108 "babel-jest": "^27.4.2",
109 "babel-plugin-jsx-pragmatic": "^1.0.2",
110 "babel-preset-preact": "^2.0.0",
111 "conventional-changelog-conventionalcommits": "4.6.1",
112 "cssnano": "^5.0.12",
113 "eslint": "^7.32.0",
114 "eslint-config-prettier": "^8.3.0",
115 "eslint-config-standard-with-typescript": "^21.0.1",
116 "eslint-plugin-jest": "^25.3.0",
117 "eslint-plugin-node": "^11.1.0",
118 "fs-extra": "^10.0.0",
119 "husky": "^7.0.4",
120 "jest": "^27.4.3",
121 "jest-watch-typeahead": "^1.0.0",
122 "msw": "^0.36.3",
123 "next": "12.0.7",
124 "postcss-cli": "^9.0.2",
125 "postcss-nested": "^5.0.6",
126 "prettier": "2.4.1",
127 "pretty-quick": "^3.1.2",
128 "react": "^17.0.2",
129 "react-dom": "^17.0.2",
130 "typescript": "^4.5.2",
131 "whatwg-fetch": "^3.6.2"
132 },
133 "engines": {
134 "node": "^12.19.0 || ^14.15.0 || ^16.13.0"
135 },
136 "prettier": {
137 "semi": false
138 },
139 "eslintConfig": {
140 "parser": "@typescript-eslint/parser",
141 "parserOptions": {
142 "project": "./tsconfig.eslint.json"
143 },
144 "extends": [
145 "standard-with-typescript",
146 "prettier"
147 ],
148 "ignorePatterns": [
149 "node_modules",
150 "next-env.d.ts",
151 "types",
152 ".next",
153 "dist",
154 "/core",
155 "/react.js"
156 ],
157 "globals": {
158 "localStorage": "readonly",
159 "location": "readonly",
160 "fetch": "readonly"
161 },
162 "rules": {
163 "camelcase": "off",
164 "@typescript-eslint/naming-convention": "off",
165 "@typescript-eslint/strict-boolean-expressions": "off",
166 "@typescript-eslint/explicit-function-return-type": "off",
167 "@typescript-eslint/restrict-template-expressions": "off"
168 },
169 "overrides": [
170 {
171 "files": [
172 "./**/*test.js"
173 ],
174 "env": {
175 "jest/globals": true
176 },
177 "extends": [
178 "plugin:jest/recommended"
179 ],
180 "plugins": [
181 "jest"
182 ]
183 }
184 ]
185 },
186 "eslintIgnore": [
187 "./*.d.ts",
188 "**/tests",
189 "**/__tests__"
190 ],
191 "release": {
192 "branches": [
193 "+([0-9])?(.{+([0-9]),x}).x",
194 "main",
195 {
196 "name": "beta",
197 "prerelease": true
198 },
199 {
200 "name": "next",
201 "prerelease": true
202 }
203 ],
204 "plugins": [
205 "@semantic-release/commit-analyzer",
206 "@semantic-release/release-notes-generator",
207 "@semantic-release/npm",
208 [
209 "@semantic-release/github",
210 {
211 "releasedLabels": false,
212 "successComment": false
213 }
214 ]
215 ]
216 },
217 "funding": [
218 {
219 "type": "github",
220 "url": "https://github.com/sponsors/balazsorban44"
221 },
222 {
223 "type": "opencollective",
224 "url": "https://opencollective.com/nextauth"
225 }
226 ]
227}