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

react-use

Package Overview
Dependencies
Maintainers
1
Versions
272
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 14.1.1 to 14.2.0

2

esm/useSlider.d.ts

@@ -9,3 +9,3 @@ import { RefObject, CSSProperties } from 'react';

onScrubStart: () => void;
onScrubStop: () => void;
onScrubStop: (value: number) => void;
reverse: boolean;

@@ -12,0 +12,0 @@ styles: boolean | CSSProperties;

@@ -11,2 +11,3 @@ /* eslint-disable */

var isSliding = useRef(false);
var valueRef = useRef(0);
var frame = useRef(0);

@@ -17,2 +18,3 @@ var _a = useSetState({

}), state = _a[0], setState = _a[1];
valueRef.current = state.value;
useEffect(function () {

@@ -35,3 +37,3 @@ if (isClient) {

if (isSliding.current && isMounted()) {
(options.onScrubStop || noop)();
(options.onScrubStop || noop)(valueRef.current);
isSliding.current = false;

@@ -38,0 +40,0 @@ setState({ isSliding: false });

@@ -9,3 +9,3 @@ import { RefObject, CSSProperties } from 'react';

onScrubStart: () => void;
onScrubStop: () => void;
onScrubStop: (value: number) => void;
reverse: boolean;

@@ -12,0 +12,0 @@ styles: boolean | CSSProperties;

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

var isSliding = react_1.useRef(false);
var valueRef = react_1.useRef(0);
var frame = react_1.useRef(0);

@@ -20,2 +21,3 @@ var _a = useSetState_1.default({

}), state = _a[0], setState = _a[1];
valueRef.current = state.value;
react_1.useEffect(function () {

@@ -38,3 +40,3 @@ if (util_1.isClient) {

if (isSliding.current && isMounted()) {
(options.onScrubStop || noop)();
(options.onScrubStop || noop)(valueRef.current);
isSliding.current = false;

@@ -41,0 +43,0 @@ setState({ isSliding: false });

{
"name": "react-use",
"version": "14.1.1",
"version": "14.2.0",
"description": "Collection of React Hooks",

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

"@semantic-release/npm": "7.0.5",
"@shopify/jest-dom-mocks": "2.8.11",
"@shopify/jest-dom-mocks": "2.9.0",
"@storybook/addon-actions": "5.3.18",

@@ -83,12 +83,12 @@ "@storybook/addon-knobs": "5.3.18",

"@storybook/react": "5.3.18",
"@testing-library/react": "10.0.2",
"@testing-library/react": "10.0.3",
"@testing-library/react-hooks": "3.2.1",
"@types/jest": "25.2.1",
"@types/react": "16.9.11",
"@typescript-eslint/eslint-plugin": "2.27.0",
"@typescript-eslint/parser": "2.27.0",
"@typescript-eslint/eslint-plugin": "2.29.0",
"@typescript-eslint/parser": "2.29.0",
"babel-core": "6.26.3",
"babel-eslint": "10.1.0",
"babel-loader": "8.1.0",
"babel-plugin-dynamic-import-node": "2.3.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"eslint": "6.8.0",

@@ -104,8 +104,8 @@ "eslint-config-react-app": "5.2.1",

"husky": "4.2.5",
"jest": "25.3.0",
"jest": "25.4.0",
"jest-localstorage-mock": "2.4.0",
"keyboardjs": "2.5.1",
"lint-staged": "10.1.3",
"lint-staged": "10.1.7",
"markdown-loader": "5.1.0",
"prettier": "2.0.4",
"prettier": "2.0.5",
"raf-stub": "3.0.0",

@@ -122,6 +122,6 @@ "react": "16.13.1",

"rxjs": "6.5.5",
"semantic-release": "17.0.4",
"ts-jest": "25.3.1",
"semantic-release": "17.0.7",
"ts-jest": "25.4.0",
"ts-loader": "6.2.2",
"ts-node": "8.8.2",
"ts-node": "8.9.0",
"typescript": "3.8.3"

@@ -160,3 +160,3 @@ },

"volta": {
"node": "10.20.0",
"node": "10.20.1",
"yarn": "1.22.4"

@@ -163,0 +163,0 @@ },

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