@ionic/discover
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -30,1 +30,2 @@ /// <reference types="node" /> | ||
export declare function prepareInterfaces(interfaces: any): Interface[]; | ||
export declare function newSilentPublisher(namespace: string, name: string, port: number): Publisher; |
@@ -112,2 +112,10 @@ "use strict"; | ||
exports.prepareInterfaces = prepareInterfaces; | ||
function newSilentPublisher(namespace, name, port) { | ||
name = `${name}@${port}`; | ||
const service = new Publisher(namespace, name, port); | ||
service.on('error', () => { }); | ||
service.start().catch(() => { }); | ||
return service; | ||
} | ||
exports.newSilentPublisher = newSilentPublisher; | ||
function computeMulticast(address, netmask) { | ||
@@ -114,0 +122,0 @@ const ip = address + '/' + netmask; |
{ | ||
"name": "@ionic/discover", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Simple UDP based protocol for service discovery implemented in pure JS. Not mDNS or bonjour. ", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
12841
258