@react-hook/intersection-observer
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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') |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11448
181