chore: update web example's deps

This commit is contained in:
Luan
2024-09-16 09:14:51 -03:00
parent f8c253177f
commit ae7f419ca0
3 changed files with 12 additions and 19 deletions

View File

@@ -10,7 +10,7 @@
"dependencies": {
"bgutils-js": "^2.0.1",
"shaka-player": "^4.11.2",
"youtubei.js": "github:LuanRT/YouTube.js#do-not-merge/ump-debugging"
"youtubei.js": "github:LuanRT/YouTube.js"
},
"devDependencies": {
"typescript": "^4.6.4",
@@ -18,19 +18,6 @@
}
},
"../../..": {
"name": "pot-gen",
"version": "1.0.0",
"extraneous": true,
"license": "MIT",
"dependencies": {
"jsdom": "^24.1.1"
},
"devDependencies": {
"esbuild": "^0.14.0",
"typescript": "^4.4.4"
}
},
"../../../../../codeberg/googlevideo": {
"version": "1.0.0",
"extraneous": true,
"funding": [
@@ -51,6 +38,11 @@
"typescript-eslint": "^8.2.0"
}
},
"node_modules/@bufbuild/protobuf": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.0.0.tgz",
"integrity": "sha512-sw2JhwJyvyL0zlhG61aDzOVryEfJg2PDZFSV7i7IdC7nAE41WuXCru3QWLGiP87At0BMzKOoKO/FqEGoKygGZQ=="
},
"node_modules/@fastify/busboy": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz",
@@ -381,12 +373,13 @@
}
},
"node_modules/youtubei.js": {
"version": "10.3.0",
"resolved": "git+ssh://git@github.com/LuanRT/YouTube.js.git#f7ed7b2f5a5928543df516fd6eb2363ee033d0ce",
"version": "10.4.0",
"resolved": "git+ssh://git@github.com/LuanRT/YouTube.js.git#0a5d3aa76ded999a40b6cdddf035f83b4f247f59",
"funding": [
"https://github.com/sponsors/LuanRT"
],
"dependencies": {
"@bufbuild/protobuf": "^2.0.0",
"jintr": "^2.1.1",
"tslib": "^2.5.0",
"undici": "^5.19.1"

View File

@@ -15,6 +15,6 @@
"dependencies": {
"bgutils-js": "^2.0.1",
"shaka-player": "^4.11.2",
"youtubei.js": "github:LuanRT/YouTube.js#do-not-merge/ump-debugging"
"youtubei.js": "github:LuanRT/YouTube.js"
}
}

View File

@@ -1,6 +1,6 @@
import { BG } from 'bgutils-js';
import GoogleVideo, { PART, Protos } from '../../../..';
import { Innertube, Proto, UniversalCache, Utils, YTNodes } from 'youtubei.js/web';
import { Innertube, ProtoUtils, UniversalCache, Utils, YTNodes } from 'youtubei.js/web';
// @ts-expect-error - x
import shaka from 'shaka-player/dist/shaka-player.ui';
@@ -97,7 +97,7 @@ async function main() {
// Expiry_date: '2024-08-13T04:41:34.757Z'
// };
const visitorData = Proto.encodeVisitorData(Utils.generateRandomString(11), Math.floor(Date.now() / 1000));
const visitorData = ProtoUtils.encodeVisitorData(Utils.generateRandomString(11), Math.floor(Date.now() / 1000));
const poToken = await getPo(visitorData);
let yt = await Innertube.create({