Socket
Socket
Sign inDemoInstall

@os-design/utils

Package Overview
Dependencies
Maintainers
1
Versions
107
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 1.0.21 to 1.0.22

dist/cjs/useSize/index.js

20

dist/cjs/index.js

@@ -24,5 +24,5 @@ "use strict";

useSafeAreaInset: true,
useSize: true,
useThrottle: true,
useVh: true,
useWindowSize: true
useVh: true
};

@@ -119,2 +119,8 @@ Object.defineProperty(exports, "isTouchDevice", {

});
Object.defineProperty(exports, "useSize", {
enumerable: true,
get: function get() {
return _useSize["default"];
}
});
Object.defineProperty(exports, "useThrottle", {

@@ -132,8 +138,2 @@ enumerable: true,

});
Object.defineProperty(exports, "useWindowSize", {
enumerable: true,
get: function get() {
return _useWindowSize["default"];
}
});

@@ -182,2 +182,4 @@ var _isTouchDevice = _interopRequireDefault(require("./isTouchDevice"));

var _useSize = _interopRequireDefault(require("./useSize"));
var _useThrottle = _interopRequireDefault(require("./useThrottle"));

@@ -187,4 +189,2 @@

var _useWindowSize = _interopRequireDefault(require("./useWindowSize"));
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }

@@ -191,0 +191,0 @@

@@ -16,6 +16,6 @@ export { default as isTouchDevice } from './isTouchDevice';

export { default as useSafeAreaInset } from './useSafeAreaInset';
export { default as useSize } from './useSize';
export { default as useThrottle } from './useThrottle';
export { default as useVh } from './useVh';
export { default as useWindowSize } from './useWindowSize';
export * from './useKeyPress';
//# sourceMappingURL=index.js.map

@@ -16,6 +16,6 @@ export { default as isTouchDevice } from './isTouchDevice';

export { default as useSafeAreaInset } from './useSafeAreaInset';
export { default as useSize } from './useSize';
export { default as useThrottle } from './useThrottle';
export { default as useVh } from './useVh';
export { default as useWindowSize } from './useWindowSize';
export * from './useKeyPress';
//# sourceMappingURL=index.d.ts.map
{
"name": "@os-design/utils",
"version": "1.0.21",
"version": "1.0.22",
"license": "UNLICENSED",

@@ -41,3 +41,3 @@ "repository": "git@gitlab.com:os-team/libs/os-design.git",

},
"gitHead": "81450801fa814fb9fe28768642652175666c07ef"
"gitHead": "acbaed9c0872373d3a370126868c36d662924741"
}

@@ -20,5 +20,5 @@ # @os-design/utils [![NPM version](https://img.shields.io/npm/v/@os-design/utils)](https://yarnpkg.com/package/@os-design/utils) [![BundlePhobia](https://img.shields.io/bundlephobia/minzip/@os-design/utils)](https://bundlephobia.com/result?p=@os-design/utils)

- `useSafeAreaInset` – Calculates the safe area inset.
- `useSize` – Returns the width and height of the container. By default, the container is window.
- `useThrottle` – The callback function will be called no more than once during the N ms, even if it is called many times during that period.
- `useVh` – Sets the `--vh` css variable.
- `useWindowSize` – Returns the width and height of the window.

@@ -25,0 +25,0 @@ ## Installation

Sorry, the diff of this file is not supported yet

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