timer-hook
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -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 |
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
11139
254