Compare commits

...

2 Commits

Author SHA1 Message Date
LuanRT
016a7aacae chore: v9.0.2 release 2024-01-31 22:51:52 +00:00
LuanRT
bd5b3470ec chore: v9.0.1 release 2024-01-26 00:33:50 +00:00
8 changed files with 13 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "youtubei.js",
"version": "9.0.0",
"version": "9.0.2",
"description": "A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).",
"type": "module",
"types": "./dist/src/platform/lib.d.ts",

View File

@@ -1,7 +1,9 @@
import { Player, OAuth, Actions } from './index.ts';
import OAuth from './OAuth.ts';
import { Log, EventEmitter, HTTPClient } from '../utils/index.ts';
import * as Constants from '../utils/Constants.ts';
import * as Proto from '../proto/index.ts';
import Actions from './Actions.ts';
import Player from './Player.ts';
import {
generateRandomString, getRandomUserAgent,

View File

@@ -4,7 +4,6 @@ import { getStreamingInfo } from '../../utils/StreamingInfo.ts';
import { Parser } from '../../parser/index.ts';
import { TranscriptInfo } from '../../parser/youtube/index.ts';
import PlayerStoryboardSpec from '../../parser/classes/PlayerStoryboardSpec.ts';
import ContinuationItem from '../../parser/classes/ContinuationItem.ts';
import type { ApiResponse, Actions } from '../index.ts';

View File

@@ -1,6 +1,6 @@
/* eslint-disable no-cond-assign */
import { YTNode } from './helpers.ts';
import { Parser } from './index.ts';
import * as Parser from './parser.ts';
import { InnertubeError } from '../utils/Utils.ts';
import Author from './classes/misc/Author.ts';

View File

@@ -1,4 +1,4 @@
import { YTNodes } from './index.ts';
import * as YTNodes from './nodes.ts';
import { InnertubeError, ParsingError, Platform } from '../utils/Utils.ts';
import { Memo, observe, SuperParsedResult } from './helpers.ts';
import { camelToSnake, generateRuntimeClass, generateTypescriptClass } from './generator.ts';

View File

@@ -231,7 +231,7 @@ class VideoInfo extends MediaInfo {
throw new InnertubeError('Watch next feed continuation not found');
const response = await this.#watch_next_continuation?.endpoint.call(this.actions, { parse: true });
const data = response?.on_response_received_endpoints?.get({ type: 'appendContinuationItemsAction' });
const data = response?.on_response_received_endpoints?.get({ type: 'AppendContinuationItemsAction' });
if (!data)
throw new InnertubeError('AppendContinuationItemsAction not found');

View File

@@ -1,4 +1,4 @@
import { Constants } from './index.ts';
import * as Constants from './Constants.ts';
import { InnertubeError, Platform, streamToIterable } from './Utils.ts';
import type Player from '../core/Player.ts';

View File

@@ -1,3 +1,8 @@
import PlayerStoryboardSpec from '../parser/classes/PlayerStoryboardSpec.ts';
import { InnertubeError, Platform, getStringBetweenStrings } from './Utils.ts';
import * as Constants from './Constants.ts';
import Log from './Log.ts';
import type Actions from '../core/Actions.ts';
import type Player from '../core/Player.ts';
import type { LiveStoryboardData } from '../parser/classes/PlayerLiveStoryboardSpec.ts';
@@ -6,9 +11,6 @@ import type { IStreamingData } from '../parser/index.ts';
import type { Format } from '../parser/misc.ts';
import type { PlayerLiveStoryboardSpec } from '../parser/nodes.ts';
import type { FormatFilter, URLTransformer } from '../types/FormatUtils.ts';
import PlayerStoryboardSpec from '../parser/classes/PlayerStoryboardSpec.ts';
import { InnertubeError, Platform, getStringBetweenStrings } from './Utils.ts';
import { Constants, Log } from './index.ts';
const TAG_ = 'StreamingInfo';