Skip to content

Commit 49b9be5

Browse files
committed
chore: use pr LuanRT#1148
0 parents  commit 49b9be5

File tree

699 files changed

+46324
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

699 files changed

+46324
-0
lines changed

deno.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from './deno/src/platform/deno.ts';
2+
import Innertube from './deno/src/platform/deno.ts';
3+
export default Innertube;

deno/package.json

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
{
2+
"name": "youtubei.js",
3+
"version": "16.0.1",
4+
"description": "A JavaScript client for YouTube's private API, known as InnerTube.",
5+
"type": "module",
6+
"types": "./dist/src/platform/lib.d.ts",
7+
"typesVersions": {
8+
"*": {
9+
"agnostic": [
10+
"./dist/src/platform/lib.d.ts"
11+
],
12+
"web": [
13+
"./dist/src/platform/lib.d.ts"
14+
],
15+
"react-native": [
16+
"./dist/src/platform/lib.d.ts"
17+
],
18+
"web.bundle": [
19+
"./dist/src/platform/lib.d.ts"
20+
],
21+
"web.bundle.min": [
22+
"./dist/src/platform/lib.d.ts"
23+
],
24+
"cf-worker": [
25+
"./dist/src/platform/lib.d.ts"
26+
]
27+
}
28+
},
29+
"exports": {
30+
".": {
31+
"deno": "./dist/src/platform/deno.js",
32+
"node": {
33+
"import": "./dist/src/platform/node.js",
34+
"default": "./dist/src/platform/node.js"
35+
},
36+
"types": "./dist/src/platform/lib.d.ts",
37+
"browser": "./dist/src/platform/web.js",
38+
"react-native": "./dist/src/platform/react-native.js",
39+
"default": "./dist/src/platform/web.js"
40+
},
41+
"./package.json": "./package.json",
42+
"./agnostic": {
43+
"types": "./dist/src/platform/lib.d.ts",
44+
"default": "./dist/src/platform/lib.js"
45+
},
46+
"./web": {
47+
"types": "./dist/src/platform/lib.d.ts",
48+
"default": "./dist/src/platform/web.js"
49+
},
50+
"./react-native": {
51+
"types": "./dist/src/platform/lib.d.ts",
52+
"default": "./dist/src/platform/react-native.js"
53+
},
54+
"./web.bundle": {
55+
"types": "./dist/src/platform/lib.d.ts",
56+
"default": "./bundle/browser.js"
57+
},
58+
"./cf-worker": {
59+
"types": "./dist/src/platform/lib.d.ts",
60+
"default": "./dist/src/platform/cf-worker.js"
61+
}
62+
},
63+
"author": "LuanRT <luan.lrt4@gmail.com> (https://github.com/LuanRT)",
64+
"funding": [
65+
"https://github.com/sponsors/LuanRT"
66+
],
67+
"contributors": [
68+
"Wykerd (https://github.com/wykerd/)",
69+
"MasterOfBob777 (https://github.com/MasterOfBob777)",
70+
"patrickkfkan (https://github.com/patrickkfkan)",
71+
"akkadaska (https://github.com/akkadaska)",
72+
"Absidue (https://github.com/absidue)"
73+
],
74+
"scripts": {
75+
"test": "vitest run --reporter verbose",
76+
"lint": "eslint ./src",
77+
"lint:fix": "eslint --fix ./src",
78+
"clean:source-maps": "rimraf ./bundle/browser.js.map ./bundle/cf-worker.js.map ./bundle/react-native.js.map",
79+
"clean:build-output": "rimraf ./dist ./bundle/browser.js ./bundle/cf-worker.js ./bundle/react-native.js ./deno",
80+
"build": "npm run clean:build-output && npm run clean:source-maps && npm run build:parser-map && npm run build:esm && npm run bundle:browser && npm run bundle:cf-worker && npm run bundle:react-native",
81+
"build:esm": "tspc",
82+
"build:deno": "cpy ./src ./deno && cpy ./protos ./deno && esbuild ./src/utils/DashManifest.tsx --keep-names --format=esm --platform=neutral --target=es2020 --outfile=./deno/src/utils/DashManifest.js && cpy ./package.json ./deno && replace \".ts';\" \".ts';\" ./deno -r && replace '.js\";' '.ts\";' ./deno -r && replace \"'./DashManifest.js';\" \"'./DashManifest.js';\" ./deno -r && replace \"'jsr:@luanrt/jintr';\" \"'jsr:@luanrt/jintr';\" ./deno -r && replace \"https://esm.sh/@bufbuild/protobuf@2.0.0/wire\" \"https://esm.sh/@bufbuild/protobuf@2.0.0/wire\" ./deno -r",
83+
"build:proto": "rimraf ./protos/generated && node ./dev-scripts/generate-proto.mjs",
84+
"build:parser-map": "node ./dev-scripts/gen-parser-map.mjs",
85+
"bundle:browser": "esbuild ./dist/src/platform/web.js --banner:js=\"/* eslint-disable */\" --bundle --sourcemap --target=chrome70 --keep-names --format=esm --define:global=globalThis --conditions=module --outfile=./bundle/browser.js --platform=browser",
86+
"bundle:react-native": "esbuild ./dist/src/platform/react-native.js --bundle --sourcemap --target=es2020 --keep-names --format=esm --platform=neutral --define:global=globalThis --conditions=module --outfile=./bundle/react-native.js",
87+
"bundle:cf-worker": "esbuild ./dist/src/platform/cf-worker.js --banner:js=\"/* eslint-disable */\" --bundle --sourcemap --target=es2020 --keep-names --format=esm --define:global=globalThis --conditions=module --outfile=./bundle/cf-worker.js --platform=node",
88+
"build:docs": "typedoc",
89+
"prepare": "npm run build",
90+
"watch": "tspc --watch"
91+
},
92+
"repository": {
93+
"type": "git",
94+
"url": "git+https://github.com/LuanRT/YouTube.js.git"
95+
},
96+
"files": [
97+
"dist/",
98+
"bundle/",
99+
"package.json",
100+
"README.md",
101+
"LICENSE"
102+
],
103+
"license": "MIT",
104+
"dependencies": {
105+
"@bufbuild/protobuf": "^2.0.0",
106+
"meriyah": "^6.1.4"
107+
},
108+
"devDependencies": {
109+
"@eslint/js": "^9.37.0",
110+
"@types/estree": "^1.0.6",
111+
"@types/node": "^25.0.3",
112+
"@typescript-eslint/eslint-plugin": "^8.46.0",
113+
"@typescript-eslint/parser": "^8.46.0",
114+
"cpy-cli": "^6.0.0",
115+
"esbuild": "^0.25.6",
116+
"eslint": "^9.37.0",
117+
"globals": "^17.0.0",
118+
"replace": "^1.2.2",
119+
"rimraf": "^6.0.1",
120+
"ts-patch": "^3.0.2",
121+
"ts-proto": "^2.2.0",
122+
"typedoc": "^0.28.14",
123+
"typedoc-plugin-markdown": "^4.9.0",
124+
"typescript": "^5.9.3",
125+
"typescript-eslint": "^8.46.0",
126+
"vitest": "^3.2.4"
127+
},
128+
"bugs": {
129+
"url": "https://github.com/LuanRT/YouTube.js/issues"
130+
},
131+
"homepage": "https://github.com/LuanRT/YouTube.js#readme",
132+
"keywords": [
133+
"api",
134+
"youtube",
135+
"innertube",
136+
"livechat",
137+
"youtube-music",
138+
"ytdl",
139+
"youtube-studio",
140+
"downloader",
141+
"ytmusic"
142+
]
143+
}

0 commit comments

Comments
 (0)