Socket
Socket
Sign inDemoInstall

cooltip

Package Overview
Dependencies
Maintainers
45
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cooltip - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

5

dist/tooltip.js

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

align: React.PropTypes.string,
anchor: typeof Element === 'undefined' ? React.PropTypes.any : React.PropTypes.instanceOf(Element),
children: React.PropTypes.any.isRequired

@@ -72,3 +73,3 @@ },

hideTooltip: function hideTooltip(e, callback) {
if (!callback) callback = function () {};
if (!callback) callback = function callback() {};
if (this.state.showTimeout) window.clearTimeout(this.state.showTimeout);

@@ -87,3 +88,3 @@ if (this._node) {

ReactDOM.render(React.createElement(TooltipInternal, _extends({}, this.props, {
anchor: this._container,
anchor: this.props.anchor || this._container,
nubClassName: nubClasses[this.props.align],

@@ -90,0 +91,0 @@ className: 'round pad1 fill-white quiet shadow micro noevents contain' })), this._node);

3

lib/tooltip.js

@@ -19,2 +19,3 @@ var React = require('react'),

align: React.PropTypes.string,
anchor: typeof Element === 'undefined' ? React.PropTypes.any : React.PropTypes.instanceOf(Element),
children: React.PropTypes.any.isRequired

@@ -77,3 +78,3 @@ },

<TooltipInternal {...this.props}
anchor={this._container}
anchor={this.props.anchor || this._container}
nubClassName={nubClasses[this.props.align]}

@@ -80,0 +81,0 @@ className='round pad1 fill-white quiet shadow micro noevents contain' />,

{
"name": "cooltip",
"version": "3.0.0",
"version": "3.1.0",
"description": "a react tooltip implementation",

@@ -5,0 +5,0 @@ "main": "dist/tooltip.js",

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