Socket
Socket
Sign inDemoInstall

react-compound-timer

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-compound-timer - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

build/components/Timer/Timer.d.ts
import React from 'react';
import { TimerStateValues, TimeParts } from 'src/types';
import { TimerStateValues, TimeParts } from '../../types';
declare type FormatValueType = (value: number) => string;

@@ -4,0 +4,0 @@ declare type TimerContextType = TimeParts & {

@@ -1,2 +0,2 @@

import { Unit, Checkpoints, Direction, TimerValue } from "src/types";
import { Unit, Checkpoints, Direction, TimerValue } from '../types';
interface TimerOptions {

@@ -3,0 +3,0 @@ initialTime: number;

@@ -13,3 +13,3 @@ var __assign = (this && this.__assign) || function () {

import { useState, useMemo, useCallback, useEffect } from "react";
import { TimerModel } from "src/lib/models/TimerModel";
import { TimerModel } from '../lib/models/TimerModel';
export function useTimer(_a) {

@@ -16,0 +16,0 @@ var _b = _a === void 0 ? {} : _a, _c = _b.initialTime, initialTime = _c === void 0 ? 0 : _c, _d = _b.direction, direction = _d === void 0 ? "forward" : _d, _e = _b.timeToUpdate, timeToUpdate = _e === void 0 ? 1000 : _e, _f = _b.startImmediately, startImmediately = _f === void 0 ? true : _f, _g = _b.lastUnit, lastUnit = _g === void 0 ? "d" : _g, _h = _b.checkpoints, checkpoints = _h === void 0 ? [] : _h, onStart = _b.onStart, onResume = _b.onResume, onPause = _b.onPause, onStop = _b.onStop, onReset = _b.onReset;

@@ -1,2 +0,2 @@

import { Unit, TimeParts } from "src/types";
import { Unit, TimeParts } from '../../types';
export default function getTimeParts(time: number, lastUnit: Unit): TimeParts;

@@ -1,2 +0,2 @@

import { TimeParts, Checkpoint, Direction, TimerValue, Unit } from 'src/types';
import { TimeParts, Checkpoint, Direction, TimerValue, Unit } from '../../types';
export declare class TimerModel {

@@ -3,0 +3,0 @@ private initialTime;

@@ -1,2 +0,2 @@

import { TimerStateValues } from "src/types";
import { TimerStateValues } from '../../types';
export declare const INITED = "INITED";

@@ -3,0 +3,0 @@ export declare const PLAYING = "PLAYING";

{
"name": "react-compound-timer",
"version": "1.1.0",
"version": "1.1.1",
"description": "Timer compound react component",

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

Sorry, the diff of this file is not supported yet

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