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 1.0.5 to 1.0.6

2

lib/index.js

@@ -101,3 +101,3 @@ // Load modules

if (!err) {
if (/* $lab:coverage:off$ */ !err /* $lab:coverage:on$ */) {
message.referenceHost = domains[0];

@@ -104,0 +104,0 @@ }

{
"name": "sntp",
"description": "SNTP Client",
"version": "1.0.5",
"version": "1.0.6",
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)",

@@ -21,3 +21,3 @@ "contributors": [],

"devDependencies": {
"lab": "3.x.x"
"lab": "^3.1.x"
},

@@ -24,0 +24,0 @@ "scripts": {

@@ -57,20 +57,2 @@ // Load modules

it('fails to resolve reference IP', { parallel: false }, function (done) {
var orig = Dns.reverse;
Dns.reverse = function (ip, callback) {
Dns.reverse = orig;
return callback(new Error('Missing IP'));
};
Sntp.time({ host: 'ntp.exnet.com', resolveReference: true }, function (err, time) {
expect(err).to.exist;
expect(time).to.exist;
expect(time.referenceHost).to.not.exist;
done();
});
});
it('times out on no response', function (done) {

@@ -77,0 +59,0 @@

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