Comparing version 0.1.1 to 0.1.2
@@ -51,2 +51,7 @@ var zlib = require('zlib'), | ||
this.client = dgram.createSocket("udp4"); | ||
var that = this; | ||
this.client.on('error', function (err) { | ||
that.emit('error', err); | ||
}); | ||
} | ||
@@ -60,4 +65,5 @@ | ||
this.client.close(); | ||
this.client = null; | ||
this._isDestroyed = true; | ||
this.client.removeAllListeners(); | ||
this.client = null; | ||
this._isDestroyed = true; | ||
} | ||
@@ -114,3 +120,3 @@ }; | ||
if (typeof(short_message) !== 'object' && typeof(full_message) === 'object' && additionalFields === undefined) { | ||
if (typeof(short_message) !== 'object' && typeof(full_message) === 'object' && additionalFields === undefined) { | ||
// Only short message and additional fields are available | ||
@@ -121,4 +127,4 @@ message.short_message = short_message; | ||
additionalFields = full_message; | ||
} | ||
else if (typeof(short_message) !== 'object') { | ||
} | ||
else if (typeof(short_message) !== 'object') { | ||
// We normally set the data | ||
@@ -125,0 +131,0 @@ message.short_message = short_message; |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Marc Trudel-Belise", | ||
@@ -11,0 +11,0 @@ "engines": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
345320
247
1