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.6.4 to 0.6.5

6

build/src/client/packet/base_media_packetizer.js

@@ -1,2 +0,2 @@

import { crypto_secretbox_easy } from 'libsodium-wrappers';
import * as libsodium from 'libsodium-wrappers';
export const MAX_INT16BIT = 2 ** 16;

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

packetHeader,
crypto_secretbox_easy(senderReport, nonceBuffer, this._mediaUdp.mediaConnection.secretkey),
libsodium.crypto_secretbox_easy(senderReport, nonceBuffer, this._mediaUdp.mediaConnection.secretkey),
nonceBuffer.subarray(0, 4),

@@ -181,4 +181,4 @@ ]);

encryptData(message, nonceBuffer) {
return crypto_secretbox_easy(message, nonceBuffer, this._mediaUdp.mediaConnection.secretkey);
return libsodium.crypto_secretbox_easy(message, nonceBuffer, this._mediaUdp.mediaConnection.secretkey);
}
}
{
"name": "@gabrielmaialva33/discord-video-stream",
"version": "0.6.4",
"version": "0.6.5",
"description": "Experiment for making video streaming work for discord self bots",

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

@@ -1,2 +0,2 @@

import { crypto_secretbox_easy } from 'libsodium-wrappers'
import * as libsodium from 'libsodium-wrappers'

@@ -166,3 +166,7 @@ import { MediaUdp } from '#src/client/voice/media_udp'

packetHeader,
crypto_secretbox_easy(senderReport, nonceBuffer, this._mediaUdp.mediaConnection.secretkey),
libsodium.crypto_secretbox_easy(
senderReport,
nonceBuffer,
this._mediaUdp.mediaConnection.secretkey
),
nonceBuffer.subarray(0, 4),

@@ -226,4 +230,8 @@ ])

encryptData(message: string | Uint8Array, nonceBuffer: Buffer): Uint8Array {
return crypto_secretbox_easy(message, nonceBuffer, this._mediaUdp.mediaConnection.secretkey)
return libsodium.crypto_secretbox_easy(
message,
nonceBuffer,
this._mediaUdp.mediaConnection.secretkey
)
}
}
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