Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@os-design/utils

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@os-design/utils - npm Package Compare versions

Comparing version 0.0.32 to 0.0.33

5

lib/utils/useIsWidth.js

@@ -9,3 +9,6 @@ "use strict";

const useIsWidth = (callbackFn) => {
const [res, setRes] = react_1.useState(callbackFn(window.innerWidth));
const [res, setRes] = react_1.useState(false);
react_1.useEffect(() => {
setRes(callbackFn(window.innerWidth));
}, [callbackFn]);
const resizeListener = react_1.useCallback(() => {

@@ -12,0 +15,0 @@ setRes(callbackFn(window.innerWidth));

4

package.json
{
"name": "@os-design/utils",
"version": "0.0.32",
"version": "0.0.33",
"license": "UNLICENSED",

@@ -25,3 +25,3 @@ "main": "lib/index.js",

},
"gitHead": "14efbc7bbfd266d5d8d805ef970146e6fb937c19"
"gitHead": "cf1794ea4dc394f4ac3b240ddd6a00ed46490b2e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc