Comparing version 3.5.1 to 3.5.2
@@ -20,3 +20,3 @@ import { getTargetElement } from '../utils/domTarget'; | ||
var getDocumentOrShadow = function getDocumentOrShadow(target) { | ||
if (!target) { | ||
if (!target || !document.getRootNode) { | ||
return document; | ||
@@ -23,0 +23,0 @@ } |
@@ -26,3 +26,3 @@ "use strict"; | ||
var getDocumentOrShadow = function getDocumentOrShadow(target) { | ||
if (!target) { | ||
if (!target || !document.getRootNode) { | ||
return document; | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "ahooks", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"description": "react hooks library", | ||
@@ -24,5 +24,2 @@ "keywords": [ | ||
"homepage": "https://github.com/alibaba/hooks", | ||
"scripts": { | ||
"build": "gulp && webpack-cli" | ||
}, | ||
"files": [ | ||
@@ -64,3 +61,6 @@ "dist", | ||
"license": "MIT", | ||
"gitHead": "11f6ad571bd365c95ecb9409ca3050cbbfc9b34a" | ||
} | ||
"gitHead": "11f6ad571bd365c95ecb9409ca3050cbbfc9b34a", | ||
"scripts": { | ||
"build": "gulp && webpack-cli" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
674108
477
3