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

@lrnwebcomponents/utils

Package Overview
Dependencies
Maintainers
4
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lrnwebcomponents/utils - npm Package Compare versions

Comparing version 7.0.15 to 7.0.16

4

package.json
{
"name": "@lrnwebcomponents/utils",
"version": "7.0.15",
"version": "7.0.16",
"description": "Helper functions to clean up web component data handling.",

@@ -20,3 +20,3 @@ "repository": {

},
"gitHead": "c7826d219bb3282c7d1f7c2cfd9fceb7e238298d"
"gitHead": "3f01a081c0e9953e959deffdbcba9a7dca1eeb65"
}

@@ -284,2 +284,3 @@ /**

* Convert a haxElement to a DOM node.
* @return {Node} DOM node.
*/

@@ -752,6 +753,14 @@ function haxElementToNode(haxSchema) {

let tag = node.tagName.toLowerCase();
if (window.HaxStore.instance._isSandboxed && tag === "iframe") {
if (window.HaxStore && window.HaxStore.instance && window.HaxStore.instance._isSandboxed && tag === "iframe") {
tag = "webview";
}
let slotContent = await window.HaxStore.instance.getHAXSlot(node);
let slotContent = '';
// if hax store around, allow it to get slot content of the node
if (window.HaxStore && window.HaxStore.instance) {
slotContent = await window.HaxStore.instance.getHAXSlot(node);
}
else {
// if HAX isn't around, just return the innerHTML as a string for asignment to content
slotContent = node.innerHTML;
}
// support fallback on inner text if there were no nodes

@@ -758,0 +767,0 @@ if (slotContent == "") {

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