bonjour-service
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -28,3 +28,3 @@ "use strict"; | ||
findOne(opts, timeout = 10000, callback) { | ||
let browser = new browser_1.default(this.server.mdns, opts); | ||
const browser = new browser_1.default(this.server.mdns, opts); | ||
var timer; | ||
@@ -31,0 +31,0 @@ browser.once('up', (service) => { |
@@ -23,3 +23,5 @@ "use strict"; | ||
this.mdns = mdns; | ||
this.txt = dnsTxt(opts.txt); | ||
if (opts != null && opts.txt != null) { | ||
this.txt = dnsTxt(opts.txt); | ||
} | ||
if (!opts || !opts.type) { | ||
@@ -132,3 +134,3 @@ this.name = WILDCARD; | ||
service.rawTxt = rr.data; | ||
service.txt = txt.decode(rr.data); | ||
service.txt = dnsTxt().decode(rr.data); | ||
} | ||
@@ -135,0 +137,0 @@ }); |
{ | ||
"name": "bonjour-service", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A Bonjour/Zeroconf implementation in TypeScript", | ||
@@ -15,3 +15,6 @@ "main": "./dist/index.js", | ||
"@types/node": "^14.14.35", | ||
"@typescript-eslint/eslint-plugin": "^4.19.0", | ||
"@typescript-eslint/parser": "^4.19.0", | ||
"after-all": "^2.0.2", | ||
"eslint": "^7.22.0", | ||
"standard": "^11.0.0", | ||
@@ -18,0 +21,0 @@ "tape": "^5.2.2", |
# bonjour-service | ||
[![build](https://github.com/onlxltd/bonjour-service/actions/workflows/build.yml/badge.svg)](https://github.com/onlxltd/bonjour-service/actions/workflows/build.yml) | ||
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/onlxltd/bonjour-service/build?style=flat-square) ![npm bundle size](https://img.shields.io/bundlephobia/min/bonjour-service?style=flat-square) ![GitHub Release Date](https://img.shields.io/github/release-date/onlxltd/bonjour-service?style=flat-square) ![GitHub](https://img.shields.io/github/license/onlxltd/bonjour-service?style=flat-square) [![DeepScan grade](https://deepscan.io/api/teams/13435/projects/16430/branches/352351/badge/grade.svg?style=flat-square)](https://deepscan.io/dashboard#view=project&tid=13435&pid=16430&bid=352351) | ||
@@ -5,0 +5,0 @@ A Bonjour/Zeroconf protocol implementation in TypeScript. Publish |
@@ -13,3 +13,3 @@ { | ||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | ||
// "declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
"declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ | ||
@@ -16,0 +16,0 @@ "sourceMap": true, /* Generates corresponding '.map' file. */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
58516
25
798
9