Skip to content

Commit

Permalink
Moves to a different bonjour library to address #85 and updates some …
Browse files Browse the repository at this point in the history
…critical vulnerability package dependencies
  • Loading branch information
i8beef committed Jun 4, 2022
1 parent 71c8ec5 commit 8c60822
Show file tree
Hide file tree
Showing 3 changed files with 281 additions and 604 deletions.
3 changes: 2 additions & 1 deletion castv2-sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = function(RED) {
"use strict";
const util = require('util');
const net = require('net');
const BonjourService = require('bonjour-service');

const Client = require('castv2-client').Client;

Expand Down Expand Up @@ -735,7 +736,7 @@ module.exports = function(RED) {
function discoverCastTargetsAsync() {
return new Promise((resolve, reject) => {
try {
const bonjour = require('bonjour')();
const bonjour = new BonjourService.Bonjour();
const castTargets = [];
const bonjourBrowser = bonjour.find(
{ type: 'googlecast' },
Expand Down
Loading

0 comments on commit 8c60822

Please sign in to comment.