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.87 to 1.0.88

2

package.json
{
"name": "ag-timemachine",
"version": "1.0.87",
"version": "1.0.88",
"description": "",

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

@@ -106,15 +106,19 @@ "use strict";

AgTmPlayer.prototype.nextFrame = function () {
var _this = this;
var next = this.frames.find(function (f) { return f.getTime() > _this.target.getTime(); });
if (!next)
return;
this.target = next;
for (var i = 0; i < this.frames.length; i++) {
if (this.frames[i].getTime() > this.target.getTime()) {
this.target = this.frames[i];
return;
}
}
};
AgTmPlayer.prototype.preFrame = function () {
var _this = this;
var reverse = this.frames.reverse();
var pre = reverse.findIndex(function (f) { return f.getTime() <= _this.target.getTime(); });
if (pre < 0)
return;
this.target = reverse.length > pre + 1 ? reverse[pre + 1] : reverse[pre];
for (var i = this.frames.length - 1; i >= 0; i--) {
if (this.frames[i].getTime() <= this.target.getTime()) {
if (i > 0)
this.target = this.frames[i - 1];
else
this.target = this.frames[i];
return;
}
}
};

@@ -121,0 +125,0 @@ AgTmPlayer.prototype.forward = function () {

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