Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-timing-hooks

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-timing-hooks - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

6

dist/index.d.ts
import useTimeoutEffect from './timeout/useTimeoutEffect';
import { TimeoutEffectCallback } from './timeout/types';
import useTimeout from './timeout/useTimeout';
import useInterval from './interval/useInterval';
import useInterval, { IntervalControls } from './interval/useInterval';
import useTimer from './interval/useTimer';

@@ -13,2 +13,4 @@ import useIdleCallbackEffect from './idle-callback/useIdleCallbackEffect';

import { ClockOptions } from './interval/useClock';
export { useAnimationFrame, useAnimationFrameLoop, useClock, useIdleCallback, useIdleCallbackEffect, useInterval, useTimer, useTimeout, useTimeoutEffect, IdleCallbackEffectCallback, TimeoutEffectCallback, ClockOptions, };
import useCounter from './interval/useCounter';
import useCountdown from './interval/useCountdown';
export { useAnimationFrame, useAnimationFrameLoop, useClock, useIdleCallback, useIdleCallbackEffect, useInterval, useTimer, useTimeout, useTimeoutEffect, useCounter, useCountdown, IntervalControls, IdleCallbackEffectCallback, TimeoutEffectCallback, ClockOptions, };

@@ -230,2 +230,4 @@ import { useRef, useCallback, useEffect, useState } from 'react';

export { useAnimationFrame, useAnimationFrameLoop, useClock, useIdleCallback, useIdleCallbackEffect, useInterval, useTimeout, useTimeoutEffect, useTimer };
const useCountdown = (start) => useCounter({ start, interval: 1000, stepSize: -1 });
export { useAnimationFrame, useAnimationFrameLoop, useClock, useCountdown, useCounter, useIdleCallback, useIdleCallbackEffect, useInterval, useTimeout, useTimeoutEffect, useTimer };

@@ -234,5 +234,9 @@ 'use strict';

const useCountdown = (start) => useCounter({ start, interval: 1000, stepSize: -1 });
exports.useAnimationFrame = useAnimationFrame;
exports.useAnimationFrameLoop = useAnimationFrameLoop;
exports.useClock = useClock;
exports.useCountdown = useCountdown;
exports.useCounter = useCounter;
exports.useIdleCallback = useIdleCallback;

@@ -239,0 +243,0 @@ exports.useIdleCallbackEffect = useIdleCallbackEffect;

{
"name": "react-timing-hooks",
"version": "3.2.0",
"version": "3.2.1",
"description": "React hooks for setTimeout, setInterval, requestAnimationFrame, requestIdleCallback",

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

@@ -24,3 +24,3 @@ <img alt="logo" src="https://github.com/EricLambrecht/react-timing-hooks/raw/master/logo.png" width="680" />

* Full **Typescript** support
* **[Lightweight](https://bundlephobia.com/result?p=react-timing-hooks)** (less than 1KB minzipped, no transitive dependencies!)
* **[Lightweight](https://bundlephobia.com/result?p=react-timing-hooks)** (ca. 1KB minzipped, no transitive dependencies!)
* **Tree-shakable** — You only bundle what you use!

@@ -27,0 +27,0 @@

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