Socket
Socket
Sign inDemoInstall

@springernature/global-dropdown

Package Overview
Dependencies
Maintainers
13
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@springernature/global-dropdown - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

3

HISTORY.md
# History
## 2.0.1 (2021-11-15)
* Fix `Cannot read properties of null (reading 'getAttribute')` errors when there's no `[data-dropdown]` element on the page
## 2.0.0 (2021-11-08)

@@ -4,0 +7,0 @@ BREAKING

7

js/index.js

@@ -11,5 +11,8 @@ import {Expander} from '../../global-expander/js/expander';

const trigger = document.querySelector(`[${DATA_COMPONENT}]`);
if (!trigger) {
return;
}
const target = trigger.getAttribute(attributes.targetSelector);
if (trigger.length === 0 || !target) {
if (!target) {
return;

@@ -16,0 +19,0 @@ }

{
"name": "@springernature/global-dropdown",
"version": "2.0.0",
"version": "2.0.1",
"license": "MIT",

@@ -14,4 +14,4 @@ "description": "Display a contextual list of links controlled by a toggle",

"scripts": {
"postinstall": "npm_config_registry=https://registry.npmjs.org/ npx @springernature/util-context-warning@0.0.5 -p @springernature/global-dropdown@2.0.0 -v 16.0.0"
"postinstall": "npm_config_registry=https://registry.npmjs.org/ npx @springernature/util-context-warning@0.0.5 -p @springernature/global-dropdown@2.0.1 -v 16.0.0"
}
}

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