New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord-player-youtubei

Package Overview
Dependencies
Maintainers
0
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-player-youtubei - npm Package Compare versions

Comparing version 1.3.6-beta.1 to 1.3.6-beta.2

dist/Youtube-Chsd4sLw.d.ts

4

dist/experimental/index.d.ts

@@ -5,3 +5,3 @@ import Innertube from 'youtubei.js';

import { Track } from 'discord-player';
import { Y as YoutubeiExtractor } from '../Youtube-CgkKbU0o.js';
import { Y as YoutubeiExtractor } from '../Youtube-Chsd4sLw.js';
import { PassThrough } from 'stream';

@@ -16,5 +16,5 @@ import 'undici';

declare function getGoogleVideoOrThrow(): typeof googlevideo_dist_src_core;
declare function getGoogleVideoOrThrow(): Promise<typeof googlevideo_dist_src_core>;
declare function createServerAbrStream(track: Track, ext: YoutubeiExtractor, onError?: (err: Error) => any): Promise<PassThrough>;
export { createServerAbrStream, getGoogleVideoOrThrow, poTokenExtraction };
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -18,2 +20,10 @@ var __export = (target, all) => {

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -75,5 +85,5 @@

var import_stream = require("stream");
function getGoogleVideoOrThrow() {
async function getGoogleVideoOrThrow() {
try {
return require("googlevideo").default;
return (await import("googlevideo")).default;
} catch {

@@ -87,3 +97,3 @@ throw new Error(

const innertube = ext.innerTube;
const { ServerAbrStream } = getGoogleVideoOrThrow();
const { ServerAbrStream } = await getGoogleVideoOrThrow();
if (!innertube.session.player)

@@ -90,0 +100,0 @@ throw new Error("ServerAbrStream does not work without a valid player.");

@@ -1,3 +0,3 @@

import { Y as YoutubeiExtractor } from './Youtube-CgkKbU0o.js';
export { A as AsyncTrackingContext, P as PeerInfo, Q as QueryBridgeModes, R as RefreshInnertubeOptions, S as StreamOptions, T as TrustedTokenConfig, a as YoutubeiOptions } from './Youtube-CgkKbU0o.js';
import { Y as YoutubeiExtractor } from './Youtube-Chsd4sLw.js';
export { A as AsyncTrackingContext, P as PeerInfo, Q as QueryBridgeModes, R as RefreshInnertubeOptions, S as StreamOptions, T as TrustedTokenConfig, a as YoutubeiOptions } from './Youtube-Chsd4sLw.js';
import Innertube, { OAuth2Tokens } from 'youtubei.js';

@@ -4,0 +4,0 @@ import * as youtubei_js_agnostic from 'youtubei.js/agnostic';

{
"name": "discord-player-youtubei",
"version": "1.3.6-beta.1",
"version": "1.3.6-beta.2",
"description": "An unofficial package to test the use of youtubei in discord-player v6.",

@@ -26,3 +26,3 @@ "main": "dist/index.js",

"tiny-typed-emitter": "^2.1.0",
"undici": "^6.20.0",
"undici": "^7.0.0",
"youtubei.js": "^11.0.1"

@@ -35,5 +35,3 @@ },

},
"bin": {
"discord-player-youtubei": "bin/index.js"
},
"bin": "bin/index.js",
"packageManager": "yarn@4.3.1",

@@ -40,0 +38,0 @@ "exports": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc