Merge branch 'main' into pr/23

This commit is contained in:
RaviAnand Mohabir 2021-05-25 23:29:11 +02:00
commit b8771c7679
3 changed files with 8 additions and 4 deletions

View File

@ -14,6 +14,7 @@
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"autoprefixer": "^10.2.5",
"build-esm": "^4.2.2",
"cssnano": "^5.0.1",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",

View File

@ -36,8 +36,8 @@ export const appAuth = new SvelteKitAuth({
apiKey: process.env['VITE_REDDIT_API_KEY'],
apiSecret: process.env['REDDIT_API_SECRET'],
profile(profile) {
profile = RedditOAuth2Provider.profileHandler(profile);
return { ...profile, provider: "reddit" };
const slim = RedditOAuth2Provider.profileHandler(profile);
return { ...slim, provider: "reddit" };
},
}),
],

View File

@ -7,7 +7,8 @@
"exports": {
".": "./dist/index.js",
"./client": "./dist/client/index.js",
"./providers": "./dist/providers/index.js"
"./providers": "./dist/providers/index.js",
"./package.json": "./package.json"
},
"files": [
"dist",
@ -49,6 +50,7 @@
"@types/jsonwebtoken": "^8.5.1",
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"build-esm": "^4.2.2",
"esbuild": "^0.12.1",
"eslint": "^7.26.0",
"eslint-config-prettier": "^8.3.0",
@ -61,6 +63,7 @@
"typescript": "^4.2.4"
},
"peerDependencies": {
"@sveltejs/kit": "next"
"@sveltejs/kit": "next",
"build-esm": "^4.2.2"
}
}