Socket
Socket
Sign inDemoInstall

react-use

Package Overview
Dependencies
Maintainers
1
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use - npm Package Compare versions

Comparing version 17.4.3 to 17.4.4

1

esm/useSet.d.ts

@@ -6,2 +6,3 @@ export interface StableActions<K> {

reset: () => void;
clear: () => void;
}

@@ -8,0 +9,0 @@ export interface Actions<K> extends StableActions<K> {

2

esm/useSet.js

@@ -18,3 +18,3 @@ import { __assign, __spreadArrays } from "tslib";

};
return { add: add, remove: remove, toggle: toggle, reset: function () { return setSet(initialSet); } };
return { add: add, remove: remove, toggle: toggle, reset: function () { return setSet(initialSet); }, clear: function () { return setSet(new Set()); } };
}, [setSet]);

@@ -21,0 +21,0 @@ var utils = __assign({ has: useCallback(function (item) { return set.has(item); }, [set]) }, stableActions);

@@ -6,2 +6,3 @@ export interface StableActions<K> {

reset: () => void;
clear: () => void;
}

@@ -8,0 +9,0 @@ export interface Actions<K> extends StableActions<K> {

@@ -20,3 +20,3 @@ "use strict";

};
return { add: add, remove: remove, toggle: toggle, reset: function () { return setSet(initialSet); } };
return { add: add, remove: remove, toggle: toggle, reset: function () { return setSet(initialSet); }, clear: function () { return setSet(new Set()); } };
}, [setSet]);

@@ -23,0 +23,0 @@ var utils = tslib_1.__assign({ has: react_1.useCallback(function (item) { return set.has(item); }, [set]) }, stableActions);

{
"name": "react-use",
"version": "17.4.3",
"version": "17.4.4",
"description": "Collection of React Hooks",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is too big to display

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