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

timer-hook

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timer-hook - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

3

lib/useTimer.js

@@ -49,3 +49,4 @@ "use strict";

endTime = _defaultConfigs$confi.endTime,
type = _defaultConfigs$confi.type;
type = _defaultConfigs$confi.type,
onEnd = _defaultConfigs$confi.onEnd;

@@ -52,0 +53,0 @@ var isInitialLoad = (0, _react.useRef)(true);

{
"name": "timer-hook",
"version": "1.0.6",
"version": "1.0.7",
"description": "An easy to use timer hook for React",

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

@@ -19,3 +19,3 @@ import { useState, useEffect, useRef, useCallback } from 'react';

export const useTimer = (config) => {
const { interval, initialTime, step, endTime, type } = {
const { interval, initialTime, step, endTime, type, onEnd } = {
...defaultConfigs,

@@ -22,0 +22,0 @@ ...config

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