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 1.0.6 to 1.0.7

9

dist/cjs/index.js

@@ -6,6 +6,11 @@ 'use strict'

var _react = require('react')
var _react = _interopRequireDefault(require('react'))
var _throttle = require('@react-hook/throttle')
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj}
}
const {useEffect} = _react.default
const emptyArr = []

@@ -31,3 +36,3 @@

;(0, _react.useEffect)(() => {
useEffect(() => {
const handleScroll = _ref

@@ -34,0 +39,0 @@ window.addEventListener('scroll', handleScroll)

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

import {useEffect} from 'react'
import React from 'react'
const {useEffect} = React
import {useThrottle} from '@react-hook/throttle'

@@ -3,0 +4,0 @@ const emptyArr = []

{
"name": "@react-hook/window-scroll",
"version": "1.0.6",
"version": "1.0.7",
"homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/window-scroll#readme",

@@ -61,2 +61,3 @@ "repository": "github:jaredLunde/react-hook",

"@typescript-eslint/parser": "latest",
"babel-plugin-optimize-react": "^0.0.4",
"cross-env": "latest",

@@ -63,0 +64,0 @@ "eslint": "latest",

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