Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .yarn/patches/nitropack-npm-0.5.0-59168999a1.patch

This file was deleted.

1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { defineNuxtConfig } from 'nuxt'
import { constructConfig } from './config'

export default defineNuxtConfig({
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@
"mount-vue-component": "^0.10.2",
"naive-ui": "^2.33.3",
"newman": "^5.3.2",
"nuxt": "^3.0.0-rc.9",
"nuxt": "rc",
"nuxt3-runtime-compiler-module": "^1.0.4",
"patch-package": "^6.4.7",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.7.1",
"prettier-plugin-organize-imports": "^3.1.1",
"prisma": "4.3.1",
"prisma": "^4.3.1",
"redis-mock": "^0.56.3",
"ufo": "^0.8.5",
"unplugin-vue-components": "^0.22.7",
Expand All @@ -152,7 +152,6 @@
"remark-parse": "^10.0.1",
"lru-cache": "^6.0.0",
"express-session@^1.17.3": "patch:express-session@npm%3A1.17.3#./.yarn/patches/express-session-npm-1.17.3-0819dbe06c.patch",
"nitropack@^0.5.0": "patch:nitropack@npm%3A0.5.0#./.yarn/patches/nitropack-npm-0.5.0-59168999a1.patch",
"@nuxtjs/[email protected]": "patch:@nuxtjs/tailwindcss@npm%3A5.3.3#./.yarn/patches/@nuxtjs-tailwindcss-npm-5.3.3-e31175b5f6.patch"
},
"resolutionsComments": {
Expand Down
6 changes: 3 additions & 3 deletions server/utils/sendEmail.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import nodemailer from 'nodemailer'
import { createTestAccount, createTransport } from 'nodemailer'

export async function sendEmail(to: string, html: string): Promise<void> {
const testAccount = await nodemailer.createTestAccount()
const transporter = nodemailer.createTransport({
const testAccount = await createTestAccount()
const transporter = createTransport({
host: 'smtp.ethereal.email',
port: 587,
secure: false, // true for 465, false for other ports
Expand Down
5 changes: 3 additions & 2 deletions server/utils/services.factory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/no-misused-promises */ // TODO: Remove once redis-mock is updated
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ // TODO: Remove once redis-mock is updated
import redis, {
import {
createClient,
RedisClientType,
RedisDefaultModules,
RedisFunctions,
Expand Down Expand Up @@ -56,7 +57,7 @@ export async function createRedisClient(): Promise<RedisClient> {
if (config.public.environment === Environment.CI) {
delete redisConfig.password
}
const client = redis.createClient(redisConfig)
const client = createClient(redisConfig)
// Log errors
// The 'error' handler is important, since otherwise errors in the redis connection bring down the whole server/process
// see https://github.com/redis/node-redis/issues/2032#issuecomment-1116883257
Expand Down
9 changes: 0 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
{
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"target": "ES2018",
"module": "ESNext",
"moduleResolution": "Node",
"lib": ["ESNext", "ESNext.AsyncIterable", "DOM"],
"esModuleInterop": true,
"allowJs": true,
"sourceMap": true,
"strict": true,
"noEmit": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"baseUrl": ".",
"types": ["@types/node", "vitest/globals", "@pinia/nuxt", "naive-ui/volar"]
},
"exclude": ["node_modules", ".output", "dist"]
Expand Down
Loading