timer-hook
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10005
241