Comparing version 3.0.0 to 3.0.1
@@ -8,2 +8,4 @@ 'use strict'; | ||
const Boom = require('boom'); | ||
const Bounce = require('bounce'); | ||
const Hoek = require('hoek'); | ||
@@ -29,3 +31,3 @@ const Teamwork = require('teamwork'); | ||
const timeoutId = (settings.timeout ? setTimeout(() => team.attend(new Error('Timeout')), settings.timeout) : null); | ||
const timeoutId = (settings.timeout ? setTimeout(() => team.attend(new Boom('Timeout')), settings.timeout) : null); | ||
@@ -46,3 +48,3 @@ // Create UDP socket | ||
if (!message.isValid) { | ||
const error = new Error('Invalid server response'); | ||
const error = new Boom('Invalid server response'); | ||
error.time = message; | ||
@@ -53,3 +55,3 @@ return team.attend(error); | ||
if (message.originateTimestamp !== sent) { | ||
const error = new Error('Wrong originate timestamp'); | ||
const error = new Boom('Wrong originate timestamp'); | ||
error.time = message; | ||
@@ -115,3 +117,3 @@ return team.attend(error); | ||
return team.attend(err || new Error('Could not send entire message')); | ||
return team.attend(err || new Boom('Could not send entire message')); | ||
} | ||
@@ -347,2 +349,4 @@ }); | ||
} | ||
Bounce.rethrow(err, 'system'); | ||
} | ||
@@ -349,0 +353,0 @@ }; |
{ | ||
"name": "sntp", | ||
"description": "SNTP Client", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -17,5 +17,7 @@ "repository": { | ||
"engines": { | ||
"node": ">=8.8.0" | ||
"node": ">=8.9.0" | ||
}, | ||
"dependencies": { | ||
"boom": "7.x.x", | ||
"bounce": "1.x.x", | ||
"hoek": "5.x.x", | ||
@@ -22,0 +24,0 @@ "teamwork": "3.x.x" |
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
13719
265
4
+ Addedboom@7.x.x
+ Addedbounce@1.x.x
+ Addedboom@7.3.0(transitive)
+ Addedbounce@1.2.3(transitive)
+ Addedhoek@6.1.3(transitive)