react-intersection-observer
Advanced tools
Comparing version 9.10.2 to 9.10.3
{ | ||
"name": "react-intersection-observer", | ||
"version": "9.10.2", | ||
"version": "9.10.3", | ||
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API", | ||
@@ -23,2 +23,3 @@ "type": "commonjs", | ||
"author": "Daniel Schmidt", | ||
"license": "MIT", | ||
"sideEffects": false, | ||
@@ -29,3 +30,2 @@ "repository": { | ||
}, | ||
"license": "MIT", | ||
"keywords": [ | ||
@@ -32,0 +32,0 @@ "react", |
@@ -105,4 +105,5 @@ "use strict"; | ||
function resetIntersectionMocking() { | ||
if (global.IntersectionObserver) | ||
if (global.IntersectionObserver && "mockClear" in global.IntersectionObserver && typeof global.IntersectionObserver.mockClear === "function") { | ||
global.IntersectionObserver.mockClear(); | ||
} | ||
observers.clear(); | ||
@@ -109,0 +110,0 @@ } |
Sorry, the diff of this file is not supported yet
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
147151
1469