New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-hook-notification

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-hook-notification - npm Package Compare versions

Comparing version

to
2.0.2

8

dist/main/index.js

@@ -1,2 +0,2 @@

import { useCallback, useEffect } from 'react';
import { useCallback } from 'react';
import { v4 as uuidv4 } from 'uuid';

@@ -7,7 +7,5 @@ import { Notifications } from '../presentation/components/Notifications';

const notificationStore = NotificationStore.getInstance();
const initialize = Initialize.getInstance();
initialize.render(Notifications);
export const useNotification = (hookParams = { position: 'top-right' }) => {
useEffect(() => {
const initialize = Initialize.getInstance();
initialize.render(Notifications);
}, []);
const info = useCallback((notificationParams) => {

@@ -14,0 +12,0 @@ const id = uuidv4();

@@ -8,2 +8,3 @@ import { useEffect, useRef, useState } from 'react';

useEffect(() => {
clearTimeout(TIMER);
if (isVisible) {

@@ -10,0 +11,0 @@ showRef.current = true;

{
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",

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