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

rheostat

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rheostat - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

6

CHANGELOG.md

@@ -8,2 +8,8 @@ # Change Log

## [1.1.2] - 2016-07-08
### Fixed
- React v15 support.
## [1.1.1] - 2016-06-27

@@ -10,0 +16,0 @@

9

lib/Slider.js

@@ -25,7 +25,2 @@ 'use strict';

// istanbul ignore next
function getDOMNode(node) {
return _react2['default'].version.indexOf('0.14') > -1 ? node : node.getDOMNode();
}
function getClassName(props) {

@@ -183,3 +178,5 @@ var orientation = props.orientation === 'vertical' ? 'rheostat-vertical' : 'rheostat-horizontal';

function getSliderBoundingBox() {
var node = getDOMNode(this.refs.rheostat);
var rheostat = this.refs.rheostat;
var node = rheostat.getDOMNode ? rheostat.getDOMNode() : rheostat;
var rect = node.getBoundingClientRect();

@@ -186,0 +183,0 @@

{
"name": "rheostat",
"version": "1.1.1",
"version": "1.1.2",
"description": "Rheostat is a www, mobile, and accessible slider component built with React",

@@ -14,3 +14,3 @@ "main": "lib/Slider.js",

"test": "npm run build && npm run lint && npm run test:coverage",
"test:coverage": "babel-node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R tap 'test/**/*-test.js'",
"test:coverage": "babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha -- -R tap 'test/**/*-test.js'",
"test:quick": "babel-node node_modules/.bin/_mocha -R tap test/*-test.js"

@@ -17,0 +17,0 @@ },

@@ -13,3 +13,3 @@ # Rheostat

The algorithm, by default [`linear`](src/utils/linear.js), the slider will use. Feel free to write
The algorithm, by default [`linear`](src/algorithms/linear.js), the slider will use. Feel free to write
your own as long as it conforms to the shape.

@@ -16,0 +16,0 @@

@@ -5,7 +5,2 @@ import * as SliderConstants from './constants/SliderConstants';

// istanbul ignore next
function getDOMNode(node) {
return React.version.indexOf('0.14') > -1 ? node : node.getDOMNode();
}
function getClassName(props) {

@@ -154,3 +149,4 @@ const orientation = props.orientation === 'vertical'

getSliderBoundingBox() {
const node = getDOMNode(this.refs.rheostat);
const { rheostat } = this.refs;
const node = rheostat.getDOMNode ? rheostat.getDOMNode() : rheostat;
const rect = node.getBoundingClientRect();

@@ -157,0 +153,0 @@

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