googlevideo 1.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +13 -0
  2. package/dist/protos/generated/misc/common.d.ts +0 -15
  3. package/dist/protos/generated/misc/common.js +0 -133
  4. package/dist/protos/generated/video_streaming/buffered_range.d.ts +0 -15
  5. package/dist/protos/generated/video_streaming/buffered_range.js +0 -146
  6. package/dist/protos/generated/video_streaming/client_abr_state.d.ts +16 -38
  7. package/dist/protos/generated/video_streaming/client_abr_state.js +94 -318
  8. package/dist/protos/generated/video_streaming/crypto_params.d.ts +0 -17
  9. package/dist/protos/generated/video_streaming/crypto_params.js +0 -78
  10. package/dist/protos/generated/video_streaming/encrypted_player_request.d.ts +2 -17
  11. package/dist/protos/generated/video_streaming/encrypted_player_request.js +14 -91
  12. package/dist/protos/generated/video_streaming/format_initialization_metadata.d.ts +0 -15
  13. package/dist/protos/generated/video_streaming/format_initialization_metadata.js +0 -74
  14. package/dist/protos/generated/video_streaming/live_metadata.d.ts +17 -0
  15. package/dist/protos/generated/video_streaming/live_metadata.js +122 -0
  16. package/dist/protos/generated/video_streaming/media_capabilities.d.ts +0 -15
  17. package/dist/protos/generated/video_streaming/media_capabilities.js +0 -121
  18. package/dist/protos/generated/video_streaming/media_header.d.ts +0 -17
  19. package/dist/protos/generated/video_streaming/media_header.js +0 -127
  20. package/dist/protos/generated/video_streaming/next_request_policy.d.ts +0 -15
  21. package/dist/protos/generated/video_streaming/next_request_policy.js +0 -49
  22. package/dist/protos/generated/video_streaming/onesie_header.d.ts +0 -15
  23. package/dist/protos/generated/video_streaming/onesie_header.js +0 -122
  24. package/dist/protos/generated/video_streaming/onesie_header_type.d.ts +0 -2
  25. package/dist/protos/generated/video_streaming/onesie_header_type.js +0 -145
  26. package/dist/protos/generated/video_streaming/onesie_player_request.d.ts +1 -17
  27. package/dist/protos/generated/video_streaming/onesie_player_request.js +4 -49
  28. package/dist/protos/generated/video_streaming/onesie_player_response.d.ts +18 -16
  29. package/dist/protos/generated/video_streaming/onesie_player_response.js +18 -53
  30. package/dist/protos/generated/video_streaming/onesie_request.d.ts +2 -15
  31. package/dist/protos/generated/video_streaming/onesie_request.js +10 -83
  32. package/dist/protos/generated/video_streaming/playback_cookie.d.ts +0 -15
  33. package/dist/protos/generated/video_streaming/playback_cookie.js +0 -42
  34. package/dist/protos/generated/video_streaming/playback_start_policy.d.ts +0 -15
  35. package/dist/protos/generated/video_streaming/playback_start_policy.js +0 -65
  36. package/dist/protos/generated/video_streaming/proxy_status.d.ts +0 -2
  37. package/dist/protos/generated/video_streaming/proxy_status.js +0 -65
  38. package/dist/protos/generated/video_streaming/request_cancellation_policy.d.ts +0 -15
  39. package/dist/protos/generated/video_streaming/request_cancellation_policy.js +0 -65
  40. package/dist/protos/generated/video_streaming/sabr_error.d.ts +0 -15
  41. package/dist/protos/generated/video_streaming/sabr_error.js +0 -28
  42. package/dist/protos/generated/video_streaming/sabr_redirect.d.ts +0 -15
  43. package/dist/protos/generated/video_streaming/sabr_redirect.js +0 -21
  44. package/dist/protos/generated/video_streaming/stream_protection_status.d.ts +0 -15
  45. package/dist/protos/generated/video_streaming/stream_protection_status.js +0 -28
  46. package/dist/protos/generated/video_streaming/streamer_context.d.ts +0 -17
  47. package/dist/protos/generated/video_streaming/streamer_context.js +0 -350
  48. package/dist/protos/generated/video_streaming/time_range.d.ts +0 -15
  49. package/dist/protos/generated/video_streaming/time_range.js +0 -33
  50. package/dist/protos/generated/video_streaming/video_playback_abr_request.d.ts +1 -15
  51. package/dist/protos/generated/video_streaming/video_playback_abr_request.js +18 -256
  52. package/dist/src/core/ServerAbrStream.d.ts +1 -0
  53. package/dist/src/core/ServerAbrStream.js +34 -47
  54. package/dist/src/core/UMP.d.ts +25 -1
  55. package/dist/src/core/UMP.js +35 -20
  56. package/dist/src/utils/Protos.d.ts +3 -2
  57. package/dist/src/utils/Protos.js +3 -2
  58. package/package.json +25 -24
  59. package/bundle/index.cjs +0 -7134
  60. package/bundle/index.cjs.map +0 -7
package/package.json CHANGED
@@ -1,59 +1,60 @@
1
1
  {
2
2
  "name": "googlevideo",
3
- "version": "1.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "A set of utilities for working with Google Video APIs.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
7
7
  "types": "./dist/src/index.d.ts",
8
8
  "module": "./dist/src/index.js",
9
9
  "scripts": {
10
+ "watch": "npx tsc --watch",
10
11
  "lint": "npx eslint ./src/**/*.ts",
11
12
  "lint:fix": "npx eslint --fix ./src/**/*.ts",
12
- "clean": "npx rimraf ./dist ./bundle ./protos/generated",
13
- "build": "npm run clean && npm run lint && npm run build:proto && npm run build:esm && npm run bundle:node",
13
+ "clean": "npx rimraf ./dist ./protos/generated",
14
+ "build": "npm run clean && npm run lint && npm run build:proto && npm run build:esm",
14
15
  "build:esm": "npx tsc",
15
16
  "build:proto": "node ./dev-scripts/generate-proto.mjs",
16
- "bundle:node": "npx esbuild ./dist/src/index.js --bundle --outfile=./bundle/index.cjs --platform=node --target=node16 --format=cjs --sourcemap --banner:js=\"/* eslint-disable */\"",
17
17
  "prepare": "npm run build"
18
18
  },
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/LuanRT/GoogleVideo.git"
22
- },
19
+ "author": "LuanRT <luan.lrt4@gmail.com> (https://github.com/LuanRT)",
20
+ "funding": [
21
+ "https://github.com/sponsors/LuanRT"
22
+ ],
23
23
  "keywords": [
24
24
  "UMP",
25
25
  "SABR",
26
26
  "Google",
27
27
  "YouTube"
28
28
  ],
29
- "author": "LuanRT <luan.lrt4@gmail.com> (https://github.com/LuanRT)",
30
29
  "license": "MIT",
31
- "bugs": {
32
- "url": "https://github.com/LuanRT/GoogleVideo/issues"
30
+ "exports": {
31
+ ".": {
32
+ "node": {
33
+ "import": "./dist/src/index.js"
34
+ },
35
+ "types": "./dist/src/index.d.ts",
36
+ "default": "./dist/src/index.js"
37
+ }
33
38
  },
34
- "homepage": "https://github.com/LuanRT/GoogleVideo#readme",
35
- "funding": [
36
- "https://github.com/sponsors/LuanRT"
37
- ],
38
39
  "devDependencies": {
39
40
  "@eslint/js": "^9.9.0",
40
41
  "@stylistic/eslint-plugin": "^2.6.4",
41
42
  "@types/eslint__js": "^8.42.3",
42
- "esbuild": "^0.24.0",
43
43
  "eslint": "^9.9.0",
44
44
  "globals": "^15.9.0",
45
45
  "ts-proto": "^2.2.0",
46
46
  "typescript": "^5.5.4",
47
47
  "typescript-eslint": "^8.2.0"
48
48
  },
49
- "exports": {
50
- ".": {
51
- "types": "./dist/src/index.d.ts",
52
- "import": "./dist/src/index.js",
53
- "require": "./bundle/index.cjs"
54
- }
55
- },
56
49
  "dependencies": {
57
50
  "@bufbuild/protobuf": "^2.0.0"
51
+ },
52
+ "bugs": {
53
+ "url": "https://github.com/LuanRT/GoogleVideo/issues"
54
+ },
55
+ "homepage": "https://github.com/LuanRT/GoogleVideo#readme",
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/LuanRT/GoogleVideo.git"
58
59
  }
59
- }
60
+ }