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

internet-time

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

internet-time - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "internet-time",
"version": "0.0.3",
"version": "0.0.4",
"main": "src/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -27,6 +27,5 @@ const io = require('socket.io-client')

e.delta = () => clocksy.getDelta()
let started = false
let started = false
e.now = () => {
e.delta = () => {
if (!started) {

@@ -37,5 +36,16 @@ socket.open()

started = true
return clocksy.getDelta()
}
e.now = () => {
return Date.now() + e.delta()
}
e.nextDelta = () => {
return new Promise(resolve => {
e.now()
e.once('delta', resolve)
})
}
module.exports = e
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