mqtt-packet
Advanced tools
Comparing version 6.2.1 to 6.3.0
{ | ||
"name": "mqtt-packet", | ||
"version": "6.2.1", | ||
"version": "6.3.0", | ||
"description": "Parse and generate MQTT packets like a breeze", | ||
@@ -5,0 +5,0 @@ "main": "mqtt.js", |
10
test.js
@@ -63,2 +63,12 @@ 'use strict' | ||
}) | ||
test(name + ' writeToStream', function (t) { | ||
var stream = WS() | ||
stream.write = () => true | ||
stream.on('error', (err) => t.fail(err)) | ||
var result = mqtt.writeToStream(object, stream, opts) | ||
t.equal(result, true, 'should return true') | ||
t.end() | ||
}) | ||
} | ||
@@ -65,0 +75,0 @@ |
@@ -797,3 +797,3 @@ 'use strict' | ||
stream.write(string, 'utf8') | ||
return stream.write(string, 'utf8') | ||
} | ||
@@ -800,0 +800,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
125489
4013