🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

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 @@ });