internet-time
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "internet-time", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -15,3 +15,2 @@ const io = require('socket.io-client') | ||
socket.on('connect', () => setTimeout(() => clocksy.start(), 500)) | ||
socket.on('disconnect', () => clocksy.stop()) | ||
@@ -28,4 +27,11 @@ | ||
e.now = () => Date.now() + e.delta() | ||
let started = false | ||
e.now = () => { | ||
if (!started) { | ||
clocksy.start() | ||
} | ||
started = true | ||
return Date.now() + e.delta() | ||
} | ||
module.exports = e |
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
964
27