@reach/utils
Advanced tools
Comparing version 0.6.4 to 0.7.0
@@ -15,3 +15,3 @@ import { useRef, useMemo, useEffect } from "react"; | ||
if (parseInt(window.getComputedStyle(document.body).getPropertyValue("--reach-" + pkg), 10) !== 1) { | ||
if (process.env.NODE_ENV !== "test" && parseInt(window.getComputedStyle(document.body).getPropertyValue("--reach-" + pkg), 10) !== 1) { | ||
console.warn("@reach/" + pkg + " styles not found. If you are using a bundler like webpack or parcel include this in the entry file of your app before any of your own styles:\n\n import \"@reach/" + pkg + "/styles.css\";\n\n Otherwise you'll need to include them some other way:\n\n <link rel=\"stylesheet\" type=\"text/css\" href=\"node_modules/@reach/" + pkg + "/styles.css\" />\n\n For more information visit https://ui.reach.tech/styling.\n "); | ||
@@ -18,0 +18,0 @@ } |
@@ -31,3 +31,3 @@ "use strict"; | ||
if (parseInt(window.getComputedStyle(document.body).getPropertyValue("--reach-" + pkg), 10) !== 1) { | ||
if (process.env.NODE_ENV !== "test" && parseInt(window.getComputedStyle(document.body).getPropertyValue("--reach-" + pkg), 10) !== 1) { | ||
console.warn("@reach/" + pkg + " styles not found. If you are using a bundler like webpack or parcel include this in the entry file of your app before any of your own styles:\n\n import \"@reach/" + pkg + "/styles.css\";\n\n Otherwise you'll need to include them some other way:\n\n <link rel=\"stylesheet\" type=\"text/css\" href=\"node_modules/@reach/" + pkg + "/styles.css\" />\n\n For more information visit https://ui.reach.tech/styling.\n "); | ||
@@ -34,0 +34,0 @@ } |
{ | ||
"name": "@reach/utils", | ||
"version": "0.6.4", | ||
"version": "0.7.0", | ||
"description": "Internal, shared utilities for Reach UI.", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/reach/reach-ui.git", | ||
"directory": "packages/utils" | ||
}, | ||
"main": "index.js", | ||
@@ -23,3 +28,3 @@ "module": "es/index.js", | ||
], | ||
"gitHead": "c20cdf7f2dd6b9eabe5461138daf320e2833aa41" | ||
"gitHead": "c6c10662e6eaf229594e4d6e6a38d8c9baa35ffa" | ||
} |
@@ -17,2 +17,3 @@ import { useRef, useMemo, useEffect } from "react"; | ||
if ( | ||
process.env.NODE_ENV !== "test" && | ||
parseInt( | ||
@@ -19,0 +20,0 @@ window |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
14571
423
5