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

@discordjs/voice

Package Overview
Dependencies
Maintainers
2
Versions
1263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@discordjs/voice - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

18

dist/audio/AudioResource.d.ts

@@ -98,19 +98,5 @@ /// <reference types="node" />

};
/**
* Creates an audio resource that can be played be audio players.
*
* @remarks
* If the input is given as a string, then the inputType option will be overridden and FFmpeg will be used.
*
* If the input is not in the correct format, then a pipeline of transcoders and transformers will be created
* to ensure that the resultant stream is in the correct format for playback. This could involve using FFmpeg,
* Opus transcoders, and Ogg/WebM demuxers.
*
* @param input - The resource to play.
* @param options - Configurable options for creating the resource.
*
* @template T - the type for the metadata (if any) of the audio resource.
*/
export declare function createAudioResource<T>(input: string | Readable, options?: CreateAudioResourceOptions<T>): AudioResource<T | null>;
export declare function createAudioResource<T>(input: string | Readable, options: CreateAudioResourceOptions<T> & Pick<T extends null | undefined ? CreateAudioResourceOptions<T> : Required<CreateAudioResourceOptions<T>>, 'metadata'>): AudioResource<T extends null | undefined ? null : T>;
export declare function createAudioResource<T extends null | undefined>(input: string | Readable, options?: Omit<CreateAudioResourceOptions<T>, 'metadata'>): AudioResource<null>;
export {};
//# sourceMappingURL=AudioResource.d.ts.map

4

dist/audio/AudioResource.js

@@ -122,3 +122,3 @@ "use strict";

// No adjustments required
return new AudioResource([], [input], (_a = options.metadata) !== null && _a !== void 0 ? _a : null);
return new AudioResource([], [input], ((_a = options.metadata) !== null && _a !== void 0 ? _a : null));
}

@@ -128,5 +128,5 @@ const streams = transformerPipeline.map((edge) => edge.transformer(input));

streams.unshift(input);
return new AudioResource(transformerPipeline, streams, (_b = options.metadata) !== null && _b !== void 0 ? _b : null);
return new AudioResource(transformerPipeline, streams, ((_b = options.metadata) !== null && _b !== void 0 ? _b : null));
}
exports.createAudioResource = createAudioResource;
//# sourceMappingURL=AudioResource.js.map

@@ -75,3 +75,3 @@ "use strict";

? require('../../package.json')
: findPackageJSON(path_1.dirname(require.resolve(name)), name, 2);
: findPackageJSON(path_1.dirname(require.resolve(name)), name, 3);
return (_a = pkg === null || pkg === void 0 ? void 0 : pkg.version) !== null && _a !== void 0 ? _a : 'not found';

@@ -78,0 +78,0 @@ }

{
"name": "@discordjs/voice",
"version": "0.3.0",
"description": "audio streaming capability for discord.js",
"version": "0.3.1",
"description": "Implementation of the Discord Voice API for Node.js",
"main": "dist/index.js",

@@ -41,7 +41,7 @@ "typings": "dist/index.d.ts",

"dependencies": {
"@types/ws": "^7.4.4",
"discord-api-types": "^0.18.1",
"prism-media": "^1.2.9",
"ws": "^7.4.4",
"tiny-typed-emitter": "^2.0.3",
"discord-api-types": "^0.18.1",
"@types/ws": "^7.4.4"
"ws": "^7.4.4"
},

@@ -48,0 +48,0 @@ "devDependencies": {

@@ -23,3 +23,3 @@ # @discordjs/voice

\**Audio receive is not documented by Discord so complete support is not guaranteed*
\**Audio receive is not documented by Discord so stable support is not guaranteed*

@@ -26,0 +26,0 @@ **Useful links:**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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