Huge News!Announcing our $40M Series B led by Abstract Ventures.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 3.0.3 to 3.0.4

6

dist/presentation/components/Notification/useController.js

@@ -27,3 +27,3 @@ import { useCallback, useState } from 'react';

const x = useMotionValue(0);
const input = [-250, 0, 250];
const input = [-280, 0, 280];
const output = [0, 1, 0];

@@ -43,4 +43,4 @@ const opacity = useTransform(x, input, output);

const onDragEnd = useCallback((_, info) => {
const maxLeft = info.offset.x < -245;
const maxRight = info.offset.x > 245;
const maxLeft = info.offset.x < -280;
const maxRight = info.offset.x > 280;
if (maxLeft || maxRight) {

@@ -47,0 +47,0 @@ setOnRemovedOnDragEnd(true);

{
"version": "3.0.3",
"version": "3.0.4",
"license": "MIT",

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

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