Socket
Socket
Sign inDemoInstall

react-compound-timer

Package Overview
Dependencies
6
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.8 to 1.1.9

2

build/lib/models/TimerModel.d.ts

@@ -31,3 +31,3 @@ import { TimeParts, Checkpoint, Direction, TimerValue, Unit } from '../../types';

start(): void;
resume(): void;
resume(callImmediately?: boolean): void;
pause(): void;

@@ -34,0 +34,0 @@ stop(): void;

@@ -47,3 +47,5 @@ "use strict";

TimerModel.prototype.setLastUnit = function (lastUnit) {
this.pause();
this.lastUnit = lastUnit;
this.resume(true);
};

@@ -66,5 +68,6 @@ TimerModel.prototype.setTimeToUpdate = function (interval) {

};
TimerModel.prototype.resume = function () {
TimerModel.prototype.resume = function (callImmediately) {
if (callImmediately === void 0) { callImmediately = false; }
if (!this.innerState.isStopped() && this.innerState.setPlaying()) {
this.setTimerInterval();
this.setTimerInterval(callImmediately);
}

@@ -71,0 +74,0 @@ };

{
"name": "react-compound-timer",
"version": "1.1.8",
"version": "1.1.9",
"description": "Timer compound react component",

@@ -5,0 +5,0 @@ "main": "build",

@@ -68,3 +68,5 @@ import getTimeParts from '../helpers/getTimeParts';

public setLastUnit(lastUnit: Unit) {
this.pause();
this.lastUnit = lastUnit;
this.resume(true);
}

@@ -92,5 +94,5 @@

public resume() {
public resume(callImmediately = false) {
if (!this.innerState.isStopped() && this.innerState.setPlaying()) {
this.setTimerInterval();
this.setTimerInterval(callImmediately);
}

@@ -97,0 +99,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc