Socket
Socket
Sign inDemoInstall

@os-design/use-click-outside

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@os-design/use-click-outside - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

6

dist/cjs/index.js

@@ -7,11 +7,6 @@ "use strict";

exports["default"] = void 0;
var _react = require("react");
var _useEvent = _interopRequireDefault(require("@os-design/use-event"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
var useClickOutside = function useClickOutside(target, listener) {

@@ -32,5 +27,4 @@ var listenerRef = (0, _react.useRef)();

};
var _default = useClickOutside;
exports["default"] = _default;
//# sourceMappingURL=index.js.map

2

dist/esm/index.js
import { useCallback, useEffect, useRef } from 'react';
import useEvent from '@os-design/use-event';
const useClickOutside = (target, listener) => {

@@ -19,4 +18,3 @@ const listenerRef = useRef();

};
export default useClickOutside;
//# sourceMappingURL=index.js.map

6

package.json
{
"name": "@os-design/use-click-outside",
"version": "1.0.10",
"version": "1.0.11",
"license": "UNLICENSED",

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

"dependencies": {
"@os-design/use-event": "^1.0.10"
"@os-design/use-event": "^1.0.11"
},

@@ -38,3 +38,3 @@ "peerDependencies": {

},
"gitHead": "174987fc6c9d55db201be10abde3a4cf5a790573"
"gitHead": "8cb28f6719d699c014fbce91d832a9ff06abe515"
}

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