Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gabrielmaialva33/discord-video-stream

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gabrielmaialva33/discord-video-stream - npm Package Compare versions

Comparing version 0.7.6 to 0.7.7

5

build/src/client/packet/base_media_packetizer.js
import _sodium from 'libsodium-wrappers';
const { crypto_secretbox_easy: crypto } = _sodium;
export const MAX_INT16BIT = 2 ** 16;

@@ -114,3 +113,3 @@ export const MAX_INT32BIT = 2 ** 32;

header,
crypto(body, nonceBuffer, this._mediaUdp.mediaConnection.secretkey),
_sodium.crypto_secretbox_easy(body, nonceBuffer, this._mediaUdp.mediaConnection.secretkey),
nonceBuffer.subarray(0, 4),

@@ -133,4 +132,4 @@ ]);

encryptData(message, nonceBuffer) {
return crypto(message, nonceBuffer, this._mediaUdp.mediaConnection.secretkey);
return _sodium.crypto_secretbox_easy(message, nonceBuffer, this._mediaUdp.mediaConnection.secretkey);
}
}

2

package.json
{
"name": "@gabrielmaialva33/discord-video-stream",
"version": "0.7.6",
"version": "0.7.7",
"description": "Experiment for making video streaming work for discord self bots",

@@ -5,0 +5,0 @@ "keywords": [

@@ -9,2 +9,7 @@ import _sodium from 'libsodium-wrappers'

let sodium = _sodium
await (async () => {
await _sodium.ready
sodium = _sodium
})()
export class BaseMediaPacketizer {

@@ -141,3 +146,3 @@ protected readonly _payloadType: number

header,
_sodium.crypto_secretbox_easy(body, nonceBuffer, this._mediaUdp.mediaConnection.secretkey),
sodium.crypto_secretbox_easy(body, nonceBuffer, this._mediaUdp.mediaConnection.secretkey),
nonceBuffer.subarray(0, 4),

@@ -164,3 +169,3 @@ ])

encryptData(message: string | Uint8Array, nonceBuffer: Buffer): Uint8Array {
return _sodium.crypto_secretbox_easy(
return sodium.crypto_secretbox_easy(
message,

@@ -167,0 +172,0 @@ nonceBuffer,

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