Compare commits
No commits in common. "master" and "patch-1" have entirely different histories.
|
@ -1,2 +1,5 @@
|
|||
# Partypack
|
||||
The #1 tool to modify Fortnite Festival songs!
|
||||
|
||||
The "best" tool for playing custom songs on Fortnite Festival.
|
||||
|
||||
please submit pull requests to fix mc's shit code
|
||||
|
|
|
@ -1,136 +0,0 @@
|
|||
export interface ApiError {
|
||||
errorCode: string
|
||||
errorMessage: string
|
||||
}
|
||||
|
||||
export const errorCode = Symbol("errorCode");
|
||||
|
||||
export abstract class ApiError {
|
||||
static [errorCode]?: string;
|
||||
static [Symbol.hasInstance](instance: unknown) {
|
||||
if (typeof instance !== "object" || instance === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!("errorCode" in instance) || !("errorMessage" in instance) || typeof instance.errorCode !== "string" || typeof instance.errorMessage !== "string") {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this === ApiError) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!this[errorCode]) {
|
||||
this[errorCode] = new (this as any)().errorCode;
|
||||
}
|
||||
|
||||
return this[errorCode] === instance.errorCode;
|
||||
}
|
||||
}
|
||||
|
||||
const errorPrefix = `errors.dev.mcthe.partypacker`
|
||||
|
||||
export class InternalError extends ApiError {
|
||||
errorCode: string;
|
||||
errorMessage: string;
|
||||
|
||||
constructor(errorMessage: string) {
|
||||
super();
|
||||
this.errorMessage = errorMessage;
|
||||
this.errorCode = `${errorPrefix}.internal_error`;
|
||||
}
|
||||
errorString() {
|
||||
return `${this.errorCode}: ${this.errorMessage}`;
|
||||
}
|
||||
|
||||
errorJSON() {
|
||||
return {
|
||||
errorCode: this.errorCode,
|
||||
errorMessage: this.errorMessage
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class MissingPermissions extends ApiError {
|
||||
errorCode: string;
|
||||
errorMessage: string;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.errorCode = `${errorPrefix}.missing_permissions`;
|
||||
this.errorMessage = "You don't have permission to access this endpoint.";
|
||||
}
|
||||
|
||||
errorString() {
|
||||
return `${this.errorCode}: ${this.errorMessage}`;
|
||||
}
|
||||
|
||||
errorJSON() {
|
||||
return {
|
||||
errorCode: this.errorCode,
|
||||
errorMessage: this.errorMessage
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class MisconfiguredDiscordBot extends ApiError {
|
||||
/*errorCode: string;
|
||||
errorMessage: string*/
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.errorCode = `${errorPrefix}.instance.invalid_discord_bot`;
|
||||
this.errorMessage = "This Partypack instance has a misconfigured Discord bot.";;
|
||||
}
|
||||
|
||||
errorString() {
|
||||
return `${this.errorCode}: ${this.errorMessage}`;
|
||||
}
|
||||
|
||||
errorJSON() {
|
||||
return {
|
||||
errorCode: this.errorCode,
|
||||
errorMessage: this.errorMessage
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class MissingServerRole extends ApiError {
|
||||
constructor() {
|
||||
super();
|
||||
this.errorCode = `${errorPrefix}.missing_discord_server_role`;
|
||||
this.errorMessage = "This role does not exist in the Discord server.";
|
||||
}
|
||||
|
||||
errorString() {
|
||||
return `${this.errorCode}: ${this.errorMessage}`;
|
||||
}
|
||||
|
||||
errorJSON() {
|
||||
return {
|
||||
errorCode: this.errorCode,
|
||||
errorMessage: this.errorMessage
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class MissingDatabaseRole extends ApiError {
|
||||
constructor() {
|
||||
super();
|
||||
this.errorCode = `${errorPrefix}.missing_database_role`;
|
||||
this.errorMessage = "This role does not exist in the database.";
|
||||
}
|
||||
|
||||
errorString() {
|
||||
return `${this.errorCode}: ${this.errorMessage}`;
|
||||
}
|
||||
|
||||
errorJSON() {
|
||||
return {
|
||||
errorCode: this.errorCode,
|
||||
errorMessage: this.errorMessage
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
//console.log(new MisconfiguredDiscordBot().errorJSON())
|
|
@ -1,3 +1,4 @@
|
|||
import axios from "axios";
|
||||
import { Err } from "./Logger";
|
||||
import { red } from "colorette";
|
||||
import { FULL_SERVER_ROOT } from "./Constants";
|
||||
|
@ -11,31 +12,15 @@ let LastContentDownloadDate: Date = new Date(0); // set it to 1970 as default cu
|
|||
GenerateFortnitePages(null);
|
||||
|
||||
export async function GenerateFortnitePages(ForUser: User | null): Promise<{ Success: boolean, FNPages: { [key: string]: unknown } | null }> {
|
||||
let status;
|
||||
let data;
|
||||
if (FullFortnitePages === null || Date.now() > LastContentDownloadDate.getTime() + 30 * 60 * 1000) {
|
||||
const response = await fetch("https://fortnitecontent-website-prod07.ol.epicgames.com/content/api/pages/fortnite-game");
|
||||
status = response.status;
|
||||
data = await response.json();
|
||||
} else {
|
||||
status = 200;
|
||||
data = FullFortnitePages;
|
||||
}
|
||||
/*const { status, data } = // check if 30 minutes have passed since last content update. if so, get a new copy of pages, if not, fuck off
|
||||
const { status, data } = // check if 30 minutes have passed since last content update. if so, get a new copy of pages, if not, fuck off
|
||||
FullFortnitePages === null || Date.now() > LastContentDownloadDate.getTime() + 30 * 60 * 1000 ?
|
||||
await fetch("https://fortnitecontent-website-prod07.ol.epicgames.com/content/api/pages/fortnite-game") :
|
||||
FullFortnitePages;*/
|
||||
|
||||
let OGSparks;
|
||||
|
||||
if (OriginalSparks === null || Date.now() > LastContentDownloadDate.getTime() + 30 * 60 * 1000) {
|
||||
const response = await fetch("https://fortnitecontent-website-prod07.ol.epicgames.com/content/api/pages/fortnite-game/spark-tracks");
|
||||
OGSparks = {status: 200, data: await response.json()}
|
||||
} else {
|
||||
OGSparks = OriginalSparks
|
||||
}
|
||||
|
||||
await axios.get("https://fortnitecontent-website-prod07.ol.epicgames.com/content/api/pages/fortnite-game") :
|
||||
{ status: 200, data: FullFortnitePages };
|
||||
|
||||
const OGSparks =
|
||||
OriginalSparks === null || Date.now() > LastContentDownloadDate.getTime() + 30 * 60 * 1000 ?
|
||||
await axios.get("https://fortnitecontent-website-prod07.ol.epicgames.com/content/api/pages/fortnite-game/spark-tracks") :
|
||||
{ status: 200, data: OriginalSparks };
|
||||
|
||||
FullFortnitePages = {
|
||||
...data,
|
||||
|
|
|
@ -16,7 +16,7 @@ declare global {
|
|||
export function RequireAuthentication(Relations?: object) {
|
||||
return async (req: Request, res: Response, next: NextFunction) => {
|
||||
if (!req.header("X-Partypack-Token") && !req.cookies["Token"] && !req.header("Authorization"))
|
||||
return res.status(401).send("You must be logged in to perform this action.");
|
||||
return res.status(401).send("This endpoint requires authorization.");
|
||||
|
||||
let JWT: JwtPayload;
|
||||
try {
|
||||
|
|
|
@ -8,7 +8,6 @@ import { ForcedCategory } from "../Schemas/ForcedCategory";
|
|||
import { DiscordRole } from "../Schemas/DiscordRole";
|
||||
import { Bot } from "../Handlers/DiscordBot";
|
||||
import { DISCORD_SERVER_ID } from "../Modules/Constants";
|
||||
import { MisconfiguredDiscordBot, MissingDatabaseRole, MissingServerRole, MissingPermissions } from "../Modules/Errors";
|
||||
|
||||
const App = Router();
|
||||
|
||||
|
@ -20,8 +19,8 @@ App.use(RequireAuthentication());
|
|||
|
||||
App.use((req, res, next) => {
|
||||
if (req.user!.PermissionLevel! < UserPermissions.Administrator)
|
||||
//return res.status(403).send("You don't have permission to access this endpoint.");
|
||||
return res.status(403).json(new MissingPermissions().errorJSON()).set('X-PartyPacker-ErrorString', new MissingPermissions().errorString());
|
||||
return res.status(403).send("You don't have permission to access this endpoint.");
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
|
@ -33,11 +32,10 @@ ValidateBody(j.object({
|
|||
})),
|
||||
async (req, res) => {
|
||||
if (!Bot.isReady())
|
||||
//return res.status(503).send("This Partypack instance has a misconfigured Discord bot.");
|
||||
return res.status(503).json(new MisconfiguredDiscordBot().errorJSON()).set('X-PartyPacker-ErrorString', new MisconfiguredDiscordBot().errorString());
|
||||
return res.status(500).send("This Partypack instance has a misconfigured Discord bot.");
|
||||
|
||||
if (!Bot.guilds.cache.get(DISCORD_SERVER_ID as string)?.roles.cache.has(req.body.ID))
|
||||
//return res.status(400).send("This role does not exist in the Discord server.");
|
||||
return res.status(400).json(new MissingServerRole().errorJSON()).set('X-PartyPacker-ErrorString', new MissingServerRole().errorString());
|
||||
return res.status(404).send("This role does not exist in the Discord server.");
|
||||
|
||||
const Existing = await DiscordRole.findOne({ where: { ID: req.body.ID } });
|
||||
if (Existing) {
|
||||
|
@ -63,12 +61,10 @@ ValidateBody(j.object({
|
|||
async (req, res) => {
|
||||
const RoleData = await DiscordRole.findOne({ where: { ID: req.body.ID } });
|
||||
if (!RoleData)
|
||||
//return res.status(404).json(new MissingDatabaseRole());
|
||||
return res.status(404).json(new MissingDatabaseRole().errorJSON()).set('X-PartyPacker-ErrorString', new MissingDatabaseRole().errorString());
|
||||
|
||||
return res.status(404).send("This role does not exist in the database.");
|
||||
|
||||
await RoleData.remove();
|
||||
res.send.status(204);
|
||||
res.send("Removed role successfully.");
|
||||
})
|
||||
|
||||
App.get("/roles", async (_, res) => res.json((await DiscordRole.find()).map(x => x.Package(true))));
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import axios from "axios";
|
||||
import jwt from "jsonwebtoken";
|
||||
import qs from "querystring";
|
||||
import j from "joi";
|
||||
|
@ -15,16 +16,7 @@ const App = Router();
|
|||
|
||||
// ? hacky, if you want, make it less hacky
|
||||
async function QuickRevokeToken(res: Response, Token: string) {
|
||||
|
||||
await fetch("https://discord.com/api/oauth2/token/revoke", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
"Authorization": `Basic ${Buffer.from(`${DISCORD_CLIENT_ID}:${DISCORD_CLIENT_SECRET}`).toString("base64")}`
|
||||
},
|
||||
body: qs.stringify({ token: Token, token_type_hint: "access_token" })
|
||||
|
||||
})
|
||||
await axios.post("https://discord.com/api/oauth2/token/revoke", qs.stringify({ token: Token, token_type_hint: "access_token" }), { auth: { username: DISCORD_CLIENT_ID!, password: DISCORD_CLIENT_SECRET! } })
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -36,44 +28,19 @@ App.get("/discord",
|
|||
state: j.string()
|
||||
})),
|
||||
async (req, res) => {
|
||||
|
||||
//const Discord = await axios.post(`https://discord.com/api/oauth2/token`, qs.stringify({ grant_type: "authorization_code", code: req.query.code as string, redirect_uri: `${FULL_SERVER_ROOT}/api/discord` }), { auth: { username: DISCORD_CLIENT_ID!, password: DISCORD_CLIENT_SECRET! } });
|
||||
|
||||
const Discord = await fetch(
|
||||
"https://discord.com/api/oauth2/token",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
"Authorization": `Basic ${Buffer.from(`${DISCORD_CLIENT_ID}:${DISCORD_CLIENT_SECRET}`).toString("base64")}`
|
||||
},
|
||||
body: qs.stringify({ grant_type: "authorization_code", code: req.query.code as string, redirect_uri: `${FULL_SERVER_ROOT}/api/discord` })
|
||||
}
|
||||
)
|
||||
const Discord = await axios.post(`https://discord.com/api/oauth2/token`, qs.stringify({ grant_type: "authorization_code", code: req.query.code as string, redirect_uri: `${FULL_SERVER_ROOT}/api/discord` }), { auth: { username: DISCORD_CLIENT_ID!, password: DISCORD_CLIENT_SECRET! } });
|
||||
|
||||
if (Discord.status !== 200)
|
||||
return res.status(500).send("Failed to request OAuth token from Discord's services.");
|
||||
|
||||
const DiscordData = await Discord.json() as any; // :waaaaa:
|
||||
|
||||
if (!DiscordData.scope.includes("identify"))
|
||||
return (await QuickRevokeToken(res, DiscordData.access_token)).status(400).send("Missing identify scope. Please check if your OAuth link is correctly set up!");
|
||||
|
||||
|
||||
const UserData = await fetch("https://discord.com/api/v10/users/@me", {
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Authorization": `${DiscordData.token_type} ${DiscordData.access_token}`
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
const UserDataBody = await UserData.json() as any;
|
||||
if (!Discord.data.scope.includes("identify"))
|
||||
return (await QuickRevokeToken(res, Discord.data.access_token)).status(400).send("Missing identify scope. Please check if your OAuth link is correctly set up!");
|
||||
|
||||
const UserData = await axios.get(`https://discord.com/api/users/@me`, { headers: { Authorization: `${Discord.data.token_type} ${Discord.data.access_token}` } });
|
||||
if (UserData.status !== 200)
|
||||
return (await QuickRevokeToken(res, DiscordData.access_token)).status(500).send("Failed to request user data from Discord's services.");
|
||||
return (await QuickRevokeToken(res, Discord.data.access_token)).status(500).send("Failed to request user data from Discord's services.");
|
||||
|
||||
await QuickRevokeToken(res, DiscordData.access_token);
|
||||
await QuickRevokeToken(res, Discord.data.access_token);
|
||||
|
||||
const AnyUserExists = await User.exists(); // automatically grant the first user on the database administrator permissions
|
||||
let UserPermissionLevel = !AnyUserExists ? UserPermissions.Administrator : UserPermissions.User;
|
||||
|
@ -82,37 +49,38 @@ App.get("/discord",
|
|||
Debug("Using Discord roles to determine user permission level since the Discord bot exists and is ready.");
|
||||
|
||||
const Sewer = Bot.guilds.cache.get(DISCORD_SERVER_ID as string);
|
||||
const Membuh = await Sewer?.members.fetch(UserDataBody.id);
|
||||
const Membuh = await Sewer?.members.fetch(UserData.data.id);
|
||||
|
||||
if (Membuh) {
|
||||
const RoulInDeightabaise = await DiscordRole.find({ where: { ID: In(Membuh.roles.cache.map(x => x.id)) }, order: { GrantedPermissions: "DESC" } });
|
||||
if (RoulInDeightabaise.length > 0)
|
||||
UserPermissionLevel = RoulInDeightabaise[0].GrantedPermissions;
|
||||
|
||||
Debug(`Detected ${magenta(RoulInDeightabaise.length)} roles that override Database permissions for user ${magenta(`@${UserDataBody.username}`)}. Giving permission level ${magenta(UserPermissionLevel)}.`)
|
||||
Debug(`Detected ${magenta(RoulInDeightabaise.length)} roles that override Database permissions for user ${magenta(`@${UserData.data.username}`)}. Giving permission level ${magenta(UserPermissionLevel)}.`)
|
||||
}
|
||||
}
|
||||
|
||||
let DBUser = await User.findOne({ where: { ID: UserDataBody.id } });
|
||||
let DBUser = await User.findOne({ where: { ID: UserData.data.id } });
|
||||
if (!DBUser)
|
||||
DBUser = await User.create({
|
||||
ID: UserDataBody.id,
|
||||
Username: UserDataBody.username,
|
||||
DisplayName: UserDataBody.global_name ?? UserDataBody.username,
|
||||
ProfilePictureURL: `https://cdn.discordapp.com/avatars/${UserDataBody.id}/${UserDataBody.avatar}.webp`,
|
||||
ID: UserData.data.id,
|
||||
Username: UserData.data.username,
|
||||
DisplayName: UserData.data.global_name ?? UserData.data.username,
|
||||
ProfilePictureURL: `https://cdn.discordapp.com/avatars/${UserData.data.id}/${UserData.data.avatar}.webp`,
|
||||
Library: [],
|
||||
PermissionLevel: UserPermissionLevel
|
||||
}).save();
|
||||
else {
|
||||
DBUser.Username = UserDataBody.username;
|
||||
DBUser.DisplayName = UserDataBody.global_name ?? UserDataBody.username;
|
||||
DBUser.ProfilePictureURL = `https://cdn.discordapp.com/avatars/${UserDataBody.id}/${UserDataBody.avatar}.webp`;
|
||||
else
|
||||
{
|
||||
DBUser.Username = UserData.data.username;
|
||||
DBUser.DisplayName = UserData.data.global_name ?? UserData.data.username;
|
||||
DBUser.ProfilePictureURL = `https://cdn.discordapp.com/avatars/${UserData.data.id}/${UserData.data.avatar}.webp`;
|
||||
DBUser.PermissionLevel = UserPermissionLevel;
|
||||
await DBUser.save();
|
||||
}
|
||||
|
||||
const JWT = jwt.sign({ ID: UserDataBody.id }, JWT_KEY!, { algorithm: "HS256" });
|
||||
const UserDetails = Buffer.from(JSON.stringify({ ID: UserDataBody.id, Username: UserDataBody.username, GlobalName: UserDataBody.global_name, Avatar: `https://cdn.discordapp.com/avatars/${UserDataBody.id}/${UserDataBody.avatar}.webp`, IsAdmin: DBUser.PermissionLevel >= UserPermissions.Administrator, Role: DBUser.PermissionLevel })).toString("hex")
|
||||
const JWT = jwt.sign({ ID: UserData.data.id }, JWT_KEY!, { algorithm: "HS256" });
|
||||
const UserDetails = Buffer.from(JSON.stringify({ ID: UserData.data.id, Username: UserData.data.username, GlobalName: UserData.data.global_name, Avatar: `https://cdn.discordapp.com/avatars/${UserData.data.id}/${UserData.data.avatar}.webp`, IsAdmin: DBUser.PermissionLevel >= UserPermissions.Administrator, Role: DBUser.PermissionLevel })).toString("hex")
|
||||
if (req.query.state) {
|
||||
try {
|
||||
const Decoded = JSON.parse(Buffer.from(decodeURI(req.query.state as string), "base64").toString("utf-8"));
|
||||
|
|
|
@ -73,7 +73,7 @@ async (req, res) => {
|
|||
});
|
||||
|
||||
App.get("/:InternalID",
|
||||
RequireAuthentication(),
|
||||
RequireAuthentication()
|
||||
async (req, res, next) => {
|
||||
const SongData = await Song.findOne({ where: { ID: req.params.InternalID }, relations: { Author: true } });
|
||||
if (!SongData)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { Router } from "express";
|
||||
import { FullFortnitePages, GenerateFortnitePages } from "../Modules/FNUtil";
|
||||
import axios from "axios";
|
||||
import { IS_DEBUG } from "../Modules/Constants";
|
||||
import { RequireAuthentication } from "../Modules/Middleware";
|
||||
|
||||
|
@ -41,11 +42,11 @@ App.get("/content/api/pages/fortnite-game/:Section", RequireAuthentication(), as
|
|||
if (!CachedSection)
|
||||
return res.status(404).send("funny section not found haha kill me");
|
||||
|
||||
const ContentFromServer = await fetch(`https://fortnitecontent-website-prod07.ol.epicgames.com/content/api/pages/fortnite-game/${CachedSection._title}`)
|
||||
const ContentFromServer = await axios.get(`https://fortnitecontent-website-prod07.ol.epicgames.com/content/api/pages/fortnite-game/${CachedSection._title}`);
|
||||
if (ContentFromServer.status !== 200)
|
||||
return res.status(404).json({ error: IS_DEBUG ? await ContentFromServer.text() : "Fortnite server returned an error." });
|
||||
return res.status(404).json({ error: IS_DEBUG ? ContentFromServer.data : "Fortnite server returned an error." });
|
||||
|
||||
res.json(await ContentFromServer.json());
|
||||
res.json(ContentFromServer.data);
|
||||
})
|
||||
|
||||
export default {
|
||||
|
|
88
Server/package-lock.json
generated
88
Server/package-lock.json
generated
|
@ -10,6 +10,7 @@
|
|||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@types/node-cron": "^3.0.11",
|
||||
"axios": "^1.6.5",
|
||||
"better-sqlite3": "^9.3.0",
|
||||
"colorette": "^2.0.20",
|
||||
"cookie-parser": "^1.4.6",
|
||||
|
@ -33,7 +34,7 @@
|
|||
"@types/express": "^4.17.18",
|
||||
"@types/fluent-ffmpeg": "^2.1.24",
|
||||
"@types/jsonwebtoken": "^9.0.5",
|
||||
"@types/node": "^20.11.16",
|
||||
"@types/node": "^20.6.3",
|
||||
"@types/underscore": "^1.11.15",
|
||||
"@types/uuid": "^9.0.7",
|
||||
"tslib": "^2.6.2",
|
||||
|
@ -334,12 +335,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "20.11.16",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.16.tgz",
|
||||
"integrity": "sha512-gKb0enTmRCzXSSUJDq6/sPcqrfCv2mkkG6Jt/clpn5eiCbKTY+SgZUxo+p8ZKMof5dCp9vHQUAB7wOUTod22wQ==",
|
||||
"dependencies": {
|
||||
"undici-types": "~5.26.4"
|
||||
}
|
||||
"version": "20.8.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.2.tgz",
|
||||
"integrity": "sha512-Vvycsc9FQdwhxE3y3DzeIxuEJbWGDsnrxvMADzTDF/lcdR9/K+AQIeAghTQsHtotg/q0j3WEOYS/jQgSdWue3w=="
|
||||
},
|
||||
"node_modules/@types/node-cron": {
|
||||
"version": "3.0.11",
|
||||
|
@ -468,6 +466,21 @@
|
|||
"resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz",
|
||||
"integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg=="
|
||||
},
|
||||
"node_modules/asynckit": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "1.6.5",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.5.tgz",
|
||||
"integrity": "sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.15.4",
|
||||
"form-data": "^4.0.0",
|
||||
"proxy-from-env": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/balanced-match": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
||||
|
@ -837,6 +850,17 @@
|
|||
"resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz",
|
||||
"integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w=="
|
||||
},
|
||||
"node_modules/combined-stream": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
||||
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
||||
"dependencies": {
|
||||
"delayed-stream": "~1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/content-disposition": {
|
||||
"version": "0.5.4",
|
||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
||||
|
@ -949,6 +973,14 @@
|
|||
"node": ">=4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/delayed-stream": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
||||
"engines": {
|
||||
"node": ">=0.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/depd": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
||||
|
@ -1189,6 +1221,25 @@
|
|||
"which": "bin/which"
|
||||
}
|
||||
},
|
||||
"node_modules/follow-redirects": {
|
||||
"version": "1.15.5",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz",
|
||||
"integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
"url": "https://github.com/sponsors/RubenVerborgh"
|
||||
}
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=4.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"debug": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/foreground-child": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz",
|
||||
|
@ -1204,6 +1255,19 @@
|
|||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/form-data": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
||||
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
||||
"dependencies": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.8",
|
||||
"mime-types": "^2.1.12"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/forwarded": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
||||
|
@ -1864,6 +1928,11 @@
|
|||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"node_modules/proxy-from-env": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
||||
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
|
||||
},
|
||||
"node_modules/pump": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
|
||||
|
@ -2551,11 +2620,6 @@
|
|||
"node": ">=14.0"
|
||||
}
|
||||
},
|
||||
"node_modules/undici-types": {
|
||||
"version": "5.26.5",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
|
||||
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
|
||||
},
|
||||
"node_modules/unpipe": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"@types/express": "^4.17.18",
|
||||
"@types/fluent-ffmpeg": "^2.1.24",
|
||||
"@types/jsonwebtoken": "^9.0.5",
|
||||
"@types/node": "^20.11.16",
|
||||
"@types/node": "^20.6.3",
|
||||
"@types/underscore": "^1.11.15",
|
||||
"@types/uuid": "^9.0.7",
|
||||
"tslib": "^2.6.2",
|
||||
|
@ -42,6 +42,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@types/node-cron": "^3.0.11",
|
||||
"axios": "^1.6.5",
|
||||
"better-sqlite3": "^9.3.0",
|
||||
"colorette": "^2.0.20",
|
||||
"cookie-parser": "^1.4.6",
|
||||
|
|
10
package-lock.json
generated
10
package-lock.json
generated
|
@ -11,7 +11,6 @@
|
|||
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
||||
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
||||
"@primer/react": "^36.5.0",
|
||||
"@types/axios": "^0.14.0",
|
||||
"axios": "^1.6.5",
|
||||
"buffer": "^6.0.3",
|
||||
"deepmerge": "^4.3.1",
|
||||
|
@ -1502,15 +1501,6 @@
|
|||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/axios": {
|
||||
"version": "0.14.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/axios/-/axios-0.14.0.tgz",
|
||||
"integrity": "sha512-KqQnQbdYE54D7oa/UmYVMZKq7CO4l8DEENzOKc4aBRwxCXSlJXGz83flFx5L7AWrOQnmuN3kVsRdt+GZPPjiVQ==",
|
||||
"deprecated": "This is a stub types definition for axios (https://github.com/mzabriskie/axios). axios provides its own type definitions, so you don't need @types/axios installed!",
|
||||
"dependencies": {
|
||||
"axios": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/babel__core": {
|
||||
"version": "7.20.5",
|
||||
"resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
||||
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
||||
"@primer/react": "^36.5.0",
|
||||
"@types/axios": "^0.14.0",
|
||||
"axios": "^1.6.5",
|
||||
"buffer": "^6.0.3",
|
||||
"deepmerge": "^4.3.1",
|
||||
|
|
Loading…
Reference in New Issue
Block a user