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

ag-timemachine

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ag-timemachine - npm Package Compare versions

Comparing version 1.0.77 to 1.0.78

2

package.json
{
"name": "ag-timemachine",
"version": "1.0.77",
"version": "1.0.78",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -131,13 +131,13 @@ "use strict";

this.buffer.start();
this.pollHandle = AgPoll_1.AgPoll.poll(10, function () {
this.pollHandle = AgPoll_1.AgPoll.poll(1, function () {
var serverSpan = new Date().getTime() - _this.serverTimeCheckpoint.time.getTime();
_this._serverTime.value = AgHelper_1.AgHelper.offsetTime(_this.serverTimeCheckpoint.serverTime, serverSpan);
if (!_this._playing.value)
return;
var span = new Date().getTime() - _this.checkpoint.value.time.getTime();
if (_this._speed.value > 0)
span = span * (_this._speed.value + 1);
if (_this._speed.value < 0)
span = span / (1 - _this._speed.value);
_this.buffer.target.value = AgHelper_1.AgHelper.offsetTime(_this.checkpoint.value.target, span);
if (_this._playing.value) {
var span = new Date().getTime() - _this.checkpoint.value.time.getTime();
if (_this._speed.value > 0)
span = span * (_this._speed.value + 1);
if (_this._speed.value < 0)
span = span / (1 - _this._speed.value);
_this.buffer.target.value = AgHelper_1.AgHelper.offsetTime(_this.checkpoint.value.target, span);
}
_this.normalizeTarget();

@@ -144,0 +144,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