Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sntp

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sntp - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

12

lib/index.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc