rc-util
Advanced tools
Comparing version 5.29.2 to 5.29.3
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
import { useLayoutEffect, useState } from 'react'; | ||
import { useState } from 'react'; | ||
import isMobile from "../isMobile"; | ||
import useLayoutEffect from "./useLayoutEffect"; | ||
@@ -5,0 +6,0 @@ /** |
@@ -11,2 +11,3 @@ "use strict"; | ||
var _isMobile = _interopRequireDefault(require("../isMobile")); | ||
var _useLayoutEffect = _interopRequireDefault(require("./useLayoutEffect")); | ||
/** | ||
@@ -21,3 +22,3 @@ * Hook to detect if the user is on a mobile device | ||
setMobile = _useState2[1]; | ||
(0, _react.useLayoutEffect)(function () { | ||
(0, _useLayoutEffect.default)(function () { | ||
setMobile((0, _isMobile.default)()); | ||
@@ -24,0 +25,0 @@ }, []); |
{ | ||
"name": "rc-util", | ||
"version": "5.29.2", | ||
"version": "5.29.3", | ||
"description": "Common Utils For React Component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
214313
6616
24