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.3 to 1.0.4

3

lib/useTimer.js

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

var useTimer = function useTimer(_ref) {
var interval = _ref.interval,
var _ref$interval = _ref.interval,
interval = _ref$interval === void 0 ? 1000 : _ref$interval,
_ref$initialTime = _ref.initialTime,

@@ -33,0 +34,0 @@ initialTime = _ref$initialTime === void 0 ? 0 : _ref$initialTime,

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

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

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

export const useTimer = ({
interval,
interval = 1000,
initialTime = 0,

@@ -13,0 +13,0 @@ step = 1,

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