Comparing version 2.0.5 to 2.0.6
{ | ||
"name": "ntp-time", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "A ntp library for nodejs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -84,7 +84,10 @@ const udp = require('dgram'); | ||
const message = parse(data); | ||
this.socket.close(); | ||
return resolve(message); | ||
try { | ||
const message = parse(data); | ||
return resolve(message); | ||
} catch (error) { | ||
return reject(error); | ||
} finally { | ||
this.socket.close(); | ||
} | ||
}); | ||
@@ -91,0 +94,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
11845
281