chromecast-discover
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"changelogCommand": "changelog", | ||
"requireCleanWorkingDir": true, | ||
"github": { | ||
@@ -5,0 +4,0 @@ "release": true |
# Changelog | ||
## 0.0.1 | ||
## 0.0.2 - 2016-07-19 | ||
* Add bin/chromecast-discover for testing (@johnf) | ||
* Fix a bug casued by spurious MDNS packets (@johnf) | ||
## 0.0.1 - 2016-07-17 | ||
* First release (@johnf) |
11
index.js
@@ -41,11 +41,16 @@ 'use strict'; | ||
browser.on('update', function (data) { | ||
debug('update'); | ||
debug(data); | ||
debug('update', data); | ||
var type = data.type[0]; | ||
if (type.name !== 'googlecast' || type.protocol !== 'tcp') { | ||
debug('skipped'); | ||
debug('skipped: not a chromecast'); | ||
return; | ||
} | ||
// Sometimes the chromecast sends out an unsolicited record | ||
if (! data.txt) { | ||
debug('skipped: no txt record'); | ||
return; | ||
} | ||
var device = { | ||
@@ -52,0 +57,0 @@ host: data.host, |
{ | ||
"name": "chromecast-discover", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Discover Chromecasts via mdns", | ||
"main": "index.js", | ||
"dependencies": { | ||
"debug": "^2.2.0", | ||
"mdns-js": "^0.5.0" | ||
@@ -8,0 +9,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20468
10
74
2
+ Addeddebug@^2.2.0