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

tooltip

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tooltip - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

2

package.json
{
"name": "tooltip",
"version": "1.5.0",
"version": "1.6.0",
"description": "Tooltip manager",

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

@@ -44,2 +44,3 @@ # Tooltip

* hiddenStyle - style to be applied to the tooltip element when it is hidden
* appendTooltip: Function - a function to append the tooltip (defaults to doing `document.body.appendChild(tooltipElement)` )
* offset - defaults to { x: 5, y: 5 }

@@ -46,0 +47,0 @@ * attrName - defaults to `"data-tooltip"`. Tooltip will show on hover over elements with this attribute.

@@ -13,3 +13,8 @@ 'use strict';

element.className = config.className
document.body.appendChild(element)
if (config.appendTooltip){
config.appendTooltip(element)
} else {
document.body.appendChild(element)
}
map[config.id] = element

@@ -16,0 +21,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