New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@newstudios/hook

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newstudios/hook - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

dist/useDrag.js

@@ -27,2 +27,3 @@ "use strict";

}, []);
(0, _react.useEffect)(() => unsubscribe, []);
(0, _react.useEffect)(() => {

@@ -35,3 +36,2 @@ const el = (0, _utils.getElement)(ref);

return () => {
unsubscribe();
dragCallbackRef.current = null;

@@ -41,3 +41,3 @@ dragEndCallbackRef.current = null;

}
}, [ref]);
});
(0, _useEvent.useEvent)(ref, 'mousedown', event => {

@@ -44,0 +44,0 @@ if (event.button !== 0 || event.defaultPrevented) return;

{
"name": "@newstudios/hook",
"version": "0.1.3",
"version": "0.1.4",
"description": "common hooks for react",

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

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