Skip to content

best way to save what you love

api/package: replace youtubei.js with a fork, update undici

wukko810e0a865c7d
diff --git a/api/package.json b/api/package.json
index 1611247d..65926020 100644
--- a/api/package.json
+++ b/api/package.json
@@ -26,6 +26,7 @@
"@datastructures-js/priority-queue": "^6.3.1",
"@imput/psl": "^2.0.4",
"@imput/version-info": "workspace:^",
+ "@imput/youtubei.js": "^14.0.0",
"content-disposition-header": "0.6.0",
"cors": "^2.8.5",
"dotenv": "^16.0.1",
@@ -37,9 +38,8 @@
"mime": "^4.0.4",
"nanoid": "^5.0.9",
"set-cookie-parser": "2.6.0",
- "undici": "^5.19.1",
+ "undici": "^6.21.3",
"url-pattern": "1.0.3",
- "youtubei.js": "^14.0.0",
"zod": "^3.23.8"
},
"optionalDependencies": {
diff --git a/api/src/core/env.js b/api/src/core/env.js
index f26b3986..5b05ad76 100644
--- a/api/src/core/env.js
+++ b/api/src/core/env.js
@@ -1,4 +1,4 @@
-import { Constants } from "youtubei.js";
+import { Constants } from "@imput/youtubei.js";
import { services } from "../processing/service-config.js";
import { updateEnv, canonicalEnv, env as currentEnv } from "../config.js";
diff --git a/api/src/processing/services/youtube.js b/api/src/processing/services/youtube.js
index 55caa835..dbf93bb8 100644
--- a/api/src/processing/services/youtube.js
+++ b/api/src/processing/services/youtube.js
@@ -1,7 +1,7 @@
import HLS from "hls-parser";
import { fetch } from "undici";
-import { Innertube, Session } from "youtubei.js";
+import { Innertube, Session } from "@imput/youtubei.js";
import { env } from "../../config.js";
import { getCookie } from "../cookie/manager.js";
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6d67cc68..ef027b1b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -19,6 +19,9 @@ importers:
'@imput/version-info':
specifier: workspace:^
version: link:../packages/version-info
+ '@imput/youtubei.js':
+ specifier: ^14.0.0
+ version: 14.0.0
content-disposition-header:
specifier: 0.6.0
version: 0.6.0
@@ -53,14 +56,11 @@ importers:
specifier: 2.6.0
version: 2.6.0
undici:
- specifier: ^5.19.1
- version: 5.28.4
+ specifier: ^6.21.3
+ version: 6.21.3
url-pattern:
specifier: 1.0.3
version: 1.0.3
- youtubei.js:
- specifier: ^14.0.0
- version: 14.0.0
zod:
specifier: ^3.23.8
version: 3.23.8
@@ -563,6 +563,9 @@ packages:
resolution: {integrity: sha512-vuy76JX78/DnJegLuJoLpMmw11JTA/9HvlIADg/f8dDVXyxbh0jnObL0q13h+WvlBO4Gk26Pu8sUa7/h0JGQig==}
+ '@imput/[email protected]':
+ resolution: {integrity: sha512-YvTnh53URPlzsmMzqF/DFHZyR9HrpgoWYHzEOklx5OCkwk1/0F/CrO9gqArXw/1oI6GjaTS2CqBd1CzyFZB07A==}
+
'@isaacs/[email protected]':
resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
engines: {node: '>=12'}
@@ -2080,6 +2083,10 @@ packages:
resolution: {integrity: sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==}
engines: {node: '>=14.0'}
+ resolution: {integrity: sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==}
+ engines: {node: '>=18.17'}
+
resolution: {integrity: sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==}
@@ -2181,9 +2188,6 @@ packages:
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-KAFttOw+9fwwBUvBc1T7KzMNBLczDOuN/dfote8BA9CABxgx8MPgV+vZWlowdDB6DnHjSUYppv+xvJ4VNBLK9A==}
-
resolution: {integrity: sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==}
@@ -2396,7 +2400,8 @@ snapshots:
dependencies:
levn: 0.4.1
- '@fastify/[email protected]': {}
+ '@fastify/[email protected]':
+ optional: true
'@fontsource/[email protected]': {}
@@ -2423,6 +2428,13 @@ snapshots:
dependencies:
punycode: 2.3.1
+ '@imput/[email protected]':
+ dependencies:
+ '@bufbuild/protobuf': 2.2.5
+ jintr: 3.3.1
+ tslib: 2.6.3
+ undici: 6.21.3
+
'@isaacs/[email protected]':
dependencies:
string-width: 5.1.2
@@ -3960,6 +3972,9 @@ snapshots:
dependencies:
'@fastify/busboy': 2.1.1
+ optional: true
+
dependencies:
@@ -4035,13 +4050,6 @@ snapshots:
- dependencies:
- '@bufbuild/protobuf': 2.2.5
- jintr: 3.3.1
- tslib: 2.6.3
- undici: 5.28.4
-