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

@react-hook/intersection-observer

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-hook/intersection-observer - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

27

dist/cjs/index.js

@@ -6,29 +6,4 @@ 'use strict'

var _react = _interopRequireWildcard(require('react'))
var _react = require('react')
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj
} else {
var newObj = {}
if (obj != null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
var desc =
Object.defineProperty && Object.getOwnPropertyDescriptor
? Object.getOwnPropertyDescriptor(obj, key)
: {}
if (desc.get || desc.set) {
Object.defineProperty(newObj, key, desc)
} else {
newObj[key] = obj[key]
}
}
}
}
newObj.default = obj
return newObj
}
}
if (typeof window !== 'undefined') {

@@ -35,0 +10,0 @@ require('intersection-observer')

2

dist/es/index.js

@@ -5,3 +5,3 @@ if (typeof window !== 'undefined') {

import React, {useEffect, useRef, useState} from 'react'
import {useEffect, useRef, useState} from 'react'
const empty = {}

@@ -8,0 +8,0 @@ const _memo = {}

{
"name": "@react-hook/intersection-observer",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/cjs/index.js",

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

if (typeof window !== 'undefined') {
require('intersection-observer')
}
import React, {useEffect, useRef, useState} from 'react'
import {useEffect, useRef, useState} from 'react'

@@ -6,0 +6,0 @@

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