Socket
Socket
Sign inDemoInstall

reshow-hooks

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-hooks - npm Package Compare versions

Comparing version 0.17.24 to 0.17.25

11

build/cjs/src/useTimer.js

@@ -8,2 +8,8 @@ "use strict";

var _callFunc = _interopRequireDefault(require("call-func"));
//@ts-check
/**
* @param {boolean} [interval]
* @returns {[Function, Function]}
*/
var useTimer = function useTimer(interval) {

@@ -31,2 +37,7 @@ var timer = (0, _react.useRef)();

}, []);
/**
* @param {function} func
* @param {number} [delay]
*/
var run = function run(func, delay) {

@@ -33,0 +44,0 @@ stop();

3

package.json
{
"version": "0.17.24",
"version": "0.17.25",
"name": "reshow-hooks",

@@ -43,2 +43,3 @@ "repository": {

"mocha": "npm run mochaFor -- 'build/es/**/__tests__/*.mjs'",
"test:report": "npm run build && npm run mochaFor -- --reporter mocha-junit-reporter --reporter-options mochaFile=./test_output/mocha.xml 'build/es/**/__tests__/*.mjs'",
"test": "npm run build && npm run mocha",

@@ -45,0 +46,0 @@ "prepublishOnly": "npm run test"

export default useTimer;
declare function useTimer(interval: any): ((func: any, delay: any) => void)[];
/**
* @param {boolean} [interval]
* @returns {[Function, Function]}
*/
declare function useTimer(interval?: boolean): [Function, Function];

Sorry, the diff of this file is not supported yet

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