New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@smarterservices/smarterclock

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smarterservices/smarterclock - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

5

index.js

@@ -46,8 +46,5 @@ var smarterClock = function (config) {

//get sum of this.delta array
if(this.delta.length === 0) {
return new Date().getTime();
}
var sum = this.delta.reduce(function (a, b) {
return a + b;
});
},0);
//get avg delta of your local time compared to ntp time

@@ -54,0 +51,0 @@ var avg = Math.round(sum / this.delta.length);

53

package.json
{
"name": "@smarterservices/smarterclock",
"version": "1.0.8",
"version": "1.0.9",
"description": "store of delta values between ntp time and local time to get an accurate sync time",

@@ -14,5 +14,3 @@ "main": "index.js",

],
"author": {
"name": "jordan l piepkow"
},
"author": "jordan l piepkow",
"dependencies": {

@@ -23,47 +21,4 @@ "ntp-client": "^0.5.3"

"type": "git",
"url": "git+https://github.com/SmarterServices/smarterclock.git"
},
"gitHead": "e2eebc484764837c81224f7a273648992edc36fc",
"bugs": {
"url": "https://github.com/SmarterServices/smarterclock/issues"
},
"homepage": "https://github.com/SmarterServices/smarterclock#readme",
"_id": "@smarterservices/smarterclock@1.0.7",
"_shasum": "7affaaee2a97acaf60eb069d9dc8fd438049133a",
"_from": "@smarterservices/smarterclock@1.0.7",
"_npmVersion": "3.3.12",
"_nodeVersion": "5.1.0",
"_npmUser": {
"name": "smarterservicesdev",
"email": "jason@smarterservices.com"
},
"dist": {
"shasum": "7affaaee2a97acaf60eb069d9dc8fd438049133a",
"tarball": "https://registry.npmjs.org/@smarterservices/smarterclock/-/smarterclock-1.0.7.tgz"
},
"maintainers": [
{
"name": "jasonfill",
"email": "jasonfill@gmail.com"
},
{
"name": "jpiepkow",
"email": "jpiepkow@gmail.com"
},
{
"name": "sajid.sharlemin",
"email": "sajid@smarterservices.com"
},
{
"name": "smarterservicesdev",
"email": "jason@smarterservices.com"
}
],
"_npmOperationalInternal": {
"host": "packages-16-east.internal.npmjs.com",
"tmp": "tmp/smarterclock-1.0.7.tgz_1463514237491_0.4705300342757255"
},
"directories": {},
"_resolved": "https://registry.npmjs.org/@smarterservices/smarterclock/-/smarterclock-1.0.7.tgz",
"readme": "ERROR: No README data found!"
"url": "https://github.com/SmarterServices/smarterclock.git"
}
}

@@ -12,2 +12,2 @@ var smarterclock = require('./index.js');

console.log('SyncTime:' + syncTime + ' vs LocalTime: ' + localTime + ' Difference: ' + drift + 'ms');
},5000);
},5000);
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