This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Buffer } from "node:buffer"; | |
| import { readFile } from "node:fs/promises"; | |
| import { Readable } from "node:stream"; | |
| import type { SentMessageInfo, Transport } from "nodemailer"; | |
| import type { Attachment } from "nodemailer/lib/mailer"; | |
| import type MailMessage from "nodemailer/lib/mailer/mail-message"; | |
| import { version as VERSION } from "../../../package.json"; | |
| type MailAddress = { address: string; name: string }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Database from 'better-sqlite3'; | |
| import { type Config, type Milliseconds, type Store } from 'cache-manager'; | |
| type SqliteStoreOptions = { | |
| sqliteFile: string; | |
| } & Config; | |
| type CacheObject = { | |
| cacheKey: string; | |
| cacheData: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { LoaderFunction, MetaFunction } from "@remix-run/node"; | |
| import type { ServerRuntimeMetaDescriptor } from "@remix-run/server-runtime"; | |
| export const mergeMeta = < | |
| Loader extends LoaderFunction | unknown = unknown, | |
| ParentsLoaders extends Record<string, LoaderFunction | unknown> = Record<string, unknown>, | |
| >( | |
| metaFn: MetaFunction<Loader, ParentsLoaders>, | |
| titleJoin: string = " - ", | |
| ): MetaFunction<Loader, ParentsLoaders> => { |