coap
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -205,3 +205,3 @@ "use strict"; | ||
} | ||
else { | ||
else if (this._options.type === 'udp4') { | ||
allAddresses(this._options.type).forEach((_interface) => { | ||
@@ -211,2 +211,7 @@ sock.addMembership(multicastAddress, _interface); | ||
} | ||
else { | ||
// FIXME: Iterating over all network interfaces does not | ||
// work for IPv6 at the moment | ||
sock.addMembership(multicastAddress); | ||
} | ||
} | ||
@@ -213,0 +218,0 @@ } |
@@ -262,3 +262,3 @@ /* | ||
) | ||
} else { | ||
} else if (this._options.type === 'udp4') { | ||
allAddresses(this._options.type).forEach(( | ||
@@ -272,2 +272,6 @@ _interface | ||
}) | ||
} else { | ||
// FIXME: Iterating over all network interfaces does not | ||
// work for IPv6 at the moment | ||
sock.addMembership(multicastAddress) | ||
} | ||
@@ -274,0 +278,0 @@ } |
{ | ||
"name": "coap", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A CoAP library for node modelled after 'http'", | ||
@@ -11,4 +11,4 @@ "main": "dist/index.js", | ||
"prepublishOnly": "npm run build", | ||
"test": "nyc mocha ./dist/test --exit", | ||
"coverage": "nyc report --reporter=lcov --reporter=text-summary", | ||
"test": "c8 mocha ./dist/test --exit", | ||
"coverage": "c8 report --reporter=lcov --reporter=text-summary", | ||
"lint": "eslint .", | ||
@@ -38,3 +38,2 @@ "lint:fix": "eslint . --fix" | ||
"devDependencies": { | ||
"@istanbuljs/nyc-config-typescript": "^1.0.2", | ||
"@types/capitalize": "^2.0.0", | ||
@@ -54,3 +53,3 @@ "@types/chai": "^4.3.0", | ||
"mocha": "^9.2.0", | ||
"nyc": "^15.1.0", | ||
"c8": "^7.11.0", | ||
"pre-commit": "1.2.2", | ||
@@ -57,0 +56,0 @@ "sinon": "^12.0.1", |
Sorry, the diff of this file is not supported yet
321155
21
6131