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

timer-hook

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timer-hook - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

lib/useInterval.js

12

lib/index.js

@@ -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];
}
});
});

2

lib/useTimer.js

@@ -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 = {

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