Update some dependencies, fix nix

This commit is contained in:
Emma [it/its]@Rory&
2025-07-02 15:54:23 +02:00
parent 6ab26cb3ff
commit fca7953a51
12 changed files with 47 additions and 38 deletions
+2 -1
View File
@@ -26,6 +26,7 @@ import {
import { Request, Response, Router } from "express";
import fetch from "node-fetch-commonjs";
import { ProxyAgent } from "proxy-agent";
import http from "http";
const router = Router();
@@ -67,7 +68,7 @@ router.get(
const response = await fetch(
`https://g.tenor.com/v1/search?q=${q}&media_format=${media_format}&locale=${locale}&key=${apiKey}`,
{
agent,
agent: agent as http.Agent,
method: "get",
headers: { "Content-Type": "application/json" },
},
+2 -1
View File
@@ -26,6 +26,7 @@ import {
import { Request, Response, Router } from "express";
import fetch from "node-fetch-commonjs";
import { ProxyAgent } from "proxy-agent";
import http from "http";
const router = Router();
@@ -62,7 +63,7 @@ router.get(
const response = await fetch(
`https://g.tenor.com/v1/trending?media_format=${media_format}&locale=${locale}&key=${apiKey}`,
{
agent,
agent: agent as http.Agent,
method: "get",
headers: { "Content-Type": "application/json" },
},
+3 -2
View File
@@ -26,6 +26,7 @@ import {
import { Request, Response, Router } from "express";
import fetch from "node-fetch-commonjs";
import { ProxyAgent } from "proxy-agent";
import http from "http";
const router = Router();
@@ -58,7 +59,7 @@ router.get(
fetch(
`https://g.tenor.com/v1/categories?locale=${locale}&key=${apiKey}`,
{
agent,
agent: agent as http.Agent,
method: "get",
headers: { "Content-Type": "application/json" },
},
@@ -66,7 +67,7 @@ router.get(
fetch(
`https://g.tenor.com/v1/trending?locale=${locale}&key=${apiKey}`,
{
agent,
agent: agent as http.Agent,
method: "get",
headers: { "Content-Type": "application/json" },
},