Comparing version 0.1.4 to 0.1.5
@@ -130,7 +130,12 @@ /*! | ||
return new Promise((resolve, reject) => { | ||
args.push(resolve); | ||
const cb = (err) => { | ||
if (err) | ||
this.emit('error', err); | ||
resolve(); | ||
}; | ||
try { | ||
this.socket.send(...args); | ||
this.socket.send(...args, cb); | ||
} catch (e) { | ||
; | ||
this.emit('error', e); | ||
} | ||
@@ -137,0 +142,0 @@ }); |
{ | ||
"name": "budp", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "UDP wrapper for node.js", | ||
@@ -18,7 +18,7 @@ "keywords": [ | ||
"scripts": { | ||
"lint": "eslint lib/ test/ || exit 0", | ||
"lint": "eslint lib/ || exit 0", | ||
"test": "bmocha --reporter spec test/*-test.js" | ||
}, | ||
"devDependencies": { | ||
"bmocha": "^1.0.0" | ||
"bmocha": "^1.5.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "engines": { |
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
10450
362