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

@react-hook/window-scroll

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-hook/window-scroll - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

dist/cjs/index.js

@@ -25,3 +25,3 @@ 'use strict'

const [scrollY, setThrottledScroll] = (0, _throttle.default)(
typeof window === 'undefined' ? 0 : getScrollY(),
typeof window === 'undefined' ? 0 : getScrollY,
fps,

@@ -28,0 +28,0 @@ true

@@ -14,3 +14,3 @@ import {useEffect} from 'react'

const [scrollY, setThrottledScroll] = useThrottle(
typeof window === 'undefined' ? 0 : getScrollY(),
typeof window === 'undefined' ? 0 : getScrollY,
fps,

@@ -17,0 +17,0 @@ true

{
"name": "@react-hook/window-scroll",
"version": "0.1.3",
"version": "0.1.4",
"main": "dist/cjs/index.js",

@@ -5,0 +5,0 @@ "author": "Jared Lunde <jared@BeStellar.co> (https://BeStellar.co)",

@@ -15,3 +15,3 @@ import {useEffect} from 'react'

const [scrollY, setThrottledScroll] = useThrottle(
typeof window === 'undefined' ? 0 : getScrollY(),
typeof window === 'undefined' ? 0 : getScrollY,
fps,

@@ -18,0 +18,0 @@ true

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