bonjour-hap
Advanced tools
Comparing version 3.7.3 to 3.8.0-beta.0
'use strict' | ||
const flatten = require('array-flatten') | ||
const flatten = require('array-flatten').flatten | ||
const Service = require('./Service.js') | ||
@@ -48,3 +48,3 @@ const Prober = require('./Prober.js') | ||
const records = flatten.depth(services.map(function (service) { | ||
const records = flatten(services.map(function (service) { | ||
service.deactivate() | ||
@@ -51,0 +51,0 @@ const records = service._records(true) |
@@ -5,3 +5,3 @@ 'use strict' | ||
const dnsEqual = require('./utils/dnsEqual') | ||
const flatten = require('array-flatten') | ||
const flatten = require('array-flatten').flatten | ||
const helpers = require('./helpers.js') | ||
@@ -26,3 +26,3 @@ | ||
const answers = type === 'ANY' | ||
? flatten.depth(Object.keys(this.registry).map(this._recordsFor.bind(this, name)), 1) | ||
? flatten(Object.keys(this.registry).map(this._recordsFor.bind(this, name)), 1) | ||
: this._recordsFor(name, type) | ||
@@ -29,0 +29,0 @@ |
{ | ||
"name": "bonjour-hap", | ||
"version": "3.7.3", | ||
"version": "3.8.0-beta.0", | ||
"description": "A Bonjour/Zeroconf implementation in pure JavaScript (for HAP)", | ||
@@ -43,3 +43,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"array-flatten": "^2.1.2", | ||
"array-flatten": "^3.0.0", | ||
"deep-equal": "^2.2.3", | ||
@@ -53,5 +53,5 @@ "multicast-dns": "^7.2.5", | ||
"tape": "^5.8.1", | ||
"nyc": "^15.1.0", | ||
"nyc": "^17.0.0", | ||
"rimraf": "^5.0.7" | ||
} | ||
} |
@@ -0,7 +1,15 @@ | ||
<p align="center"> | ||
<a href="https://homebridge.io"><img src="https://raw.githubusercontent.com/homebridge/branding/latest/logos/homebridge-color-round-stylized.png" height="140"></a> | ||
</p> | ||
<span align="center"> | ||
# bonjour-hap | ||
<a href="https://www.npmjs.com/package/bonjour-hap"><img title="npm version" src="https://badgen.net/npm/v/bonjour-hap" ></a> | ||
<a href="https://www.npmjs.com/package/bonjour-hap/v/beta"><img title="npm version beta" src="https://badgen.net/npm/v/bonjour-hap/beta" ></a> | ||
<a href="https://www.npmjs.com/package/bonjour-hap"><img title="npm downloads" src="https://badgen.net/npm/dt/bonjour-hap" ></a> | ||
<a href="https://github.com/homebridge/bonjour/actions/workflows/build.yml"><img title="Node Build" src="https://github.com/homebridge/bonjour/actions/workflows/build.yml/badge.svg" ></a> | ||
<a href='https://coveralls.io/github/homebridge/bonjour?branch=latest'><img src='https://coveralls.io/repos/github/homebridge/bonjour/badge.svg?branch=latest' alt='Coverage Status' /></a> | ||
![NPM-Version](https://badgen.net/npm/v/bonjour-hap) | ||
![NPM-Downloads](https://badgen.net/npm/dt/bonjour-hap) | ||
[![Node Build](https://github.com/homebridge/bonjour/actions/workflows/nodejs.yml/badge.svg)](https://github.com/homebridge/bonjour/actions/workflows/nodejs.yml) | ||
[![Coverage Status](https://coveralls.io/repos/github/homebridge/bonjour/badge.svg?branch=master)](https://coveralls.io/github/homebridge/bonjour?branch=master) | ||
</span> | ||
@@ -8,0 +16,0 @@ A Bonjour/Zeroconf protocol implementation in pure JavaScript. Publish |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
32785
212
1
+ Addedarray-flatten@3.0.0(transitive)
- Removedarray-flatten@2.1.2(transitive)
Updatedarray-flatten@^3.0.0