timer-hook
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -17,2 +17,14 @@ "use strict"; | ||
}); | ||
}); | ||
var _useInterval = require("./useInterval"); | ||
Object.keys(_useInterval).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _useInterval[key]; | ||
} | ||
}); | ||
}); |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _useInterval = require("../hooks/use-interval"); | ||
var _useInterval = require("./useInterval"); | ||
@@ -13,0 +13,0 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } |
{ | ||
"name": "timer-hook", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "An easy to use timer hook for React", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -1,1 +0,2 @@ | ||
export * from './useTimer' | ||
export * from './useTimer' | ||
export * from './useInterval' |
import { useState, useEffect, useRef, useCallback } from 'react'; | ||
import { useInterval } from '../hooks/use-interval'; | ||
import { useInterval } from './useInterval'; | ||
@@ -4,0 +4,0 @@ const TIMER_TYPE = { |
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
9927
9
240