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

@forter/helpers

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forter/helpers - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

4

mixins/is-slotted-mixin.js

@@ -15,6 +15,6 @@ /**

isSlotted(slotName) {
const selector = slotName ? `slot [name='${slotName}']` : 'slot';
const selector = slotName ? `slot[name='${slotName}']` : 'slot';
const slot = this.shadowRoot && this.shadowRoot.querySelector(selector);
if (!slot) return false;
return !!slot.assignedNodes().length;
return slot.assignedNodes().length;
}

@@ -21,0 +21,0 @@

{
"name": "@forter/helpers",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"description": "Helpers for Forter Components",

@@ -54,3 +54,3 @@ "main": "index.js",

},
"gitHead": "f8eae8782618154c7688b8c84892ddff96d1f82a"
"gitHead": "f437218a1c8b8a6666ce17cf8e690e9b081bd0c8"
}

@@ -15,7 +15,7 @@ /**

isSlotted(slotName) {
const selector = slotName ? `slot [name='${slotName}']` : 'slot';
const selector = slotName ? `slot[name='${slotName}']` : 'slot';
const slot = this.shadowRoot && this.shadowRoot.querySelector(selector);
if (!slot) return false;
return !!slot.assignedNodes().length;
return slot.assignedNodes().length;
}
};
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