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

@scrypted/chromecast

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scrypted/chromecast - npm Package Compare versions

Comparing version

to
0.1.36

2

package.json
{
"name": "@scrypted/chromecast",
"version": "0.1.35",
"version": "0.1.36",
"description": "Send video, audio, and text to speech notifications to Chromecast and Google Home devices",

@@ -5,0 +5,0 @@ "author": "Scrypted",

@@ -7,3 +7,3 @@ import util from 'util';

const { mediaManager, systemManager, endpointManager, deviceManager, log } = sdk;
const { mediaManager, endpointManager, deviceManager } = sdk;
const { DefaultMediaReceiver } = require('castv2-client');

@@ -18,20 +18,2 @@ const Client = require('castv2-client').Client;

// castv2 makes the the assumption that protobufjs returns Buffers, which is does not. It returns ArrayBuffers
// in the quickjs environment.
function toBuffer(buffer) {
if (buffer && (buffer.constructor.name === ArrayBuffer.name || buffer.constructor.name === Uint8Array.name)) {
const ret = Buffer.from(buffer);
return ret;
}
return buffer;
}
const BufferConcat = Buffer.concat;
Buffer.concat = function (bufs) {
const copy = [];
for (const buf of bufs) {
copy.push(toBuffer(buf));
}
return BufferConcat(copy);
}
class CastDevice extends ScryptedDeviceBase implements MediaPlayer, Refresh, EngineIOHandler {

@@ -38,0 +20,0 @@ constructor(public provider: CastDeviceProvider, nativeId: string) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet