Socket
Socket
Sign inDemoInstall

chromecast-api

Package Overview
Dependencies
146
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.1 to 0.4.2

4

lib/client.js

@@ -38,3 +38,3 @@ const http = require('http')

const newDevice = new Device({
name: name,
name,
friendlyName: device.name,

@@ -147,3 +147,3 @@ host: device.host

// New device
this._devices[name] = { name: friendlyName, host: host }
this._devices[name] = { name: friendlyName, host }
this._updateDevice(name)

@@ -150,0 +150,0 @@ } else if (!this._devices[name].name || !this._devices[name].host) {

@@ -278,3 +278,3 @@ const Client = require('castv2-client').Client

this.client.setVolume({ muted: muted }, callback)
this.client.setVolume({ muted }, callback)
})

@@ -281,0 +281,0 @@ }

// eslint-disable-next-line
const YOUTUBE_REGEX = /(?:http(?:s?):\/\/)?(?:www\.)?(?:music\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-\_]*)(&(amp;)?‌​[\w\?‌​=]*)?/
const YOUTUBE_REGEX = /(?:http(?:s?):\/\/)?(?:www\.)?(?:music\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-\_]*)(&(amp;)?[\w\?=]*)?/
const URI_REGEX = /\w+:(\/?\/?)[^\s]+/

@@ -4,0 +4,0 @@ const PATH_REGEX = /(\\\\?([^\\/]*[\\/])*)([^\\/]+)/

{
"name": "chromecast-api",
"version": "0.4.1",
"version": "0.4.2",
"description": "Chromecast streaming module all in JS",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,3 +5,3 @@ chromecast-api

[![NPM Version](https://img.shields.io/npm/v/chromecast-api.svg)](https://www.npmjs.com/package/chromecast-api)
[![Build Status](https://img.shields.io/github/workflow/status/alxhotel/chromecast-api/ci/master)](https://github.com/alxhotel/chromecast-api/actions)
[![Build Status](https://img.shields.io/github/actions/workflow/status/alxhotel/chromecast-api/ci.yml?branch=master)](https://github.com/alxhotel/chromecast-api/actions)
[![Dependency Status](https://img.shields.io/librariesio/release/npm/chromecast-api)](https://libraries.io/npm/chromecast-api)

@@ -8,0 +8,0 @@ [![Standard - Javascript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc