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 2.6.21 to 2.7.0

4

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

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

},
"gitHead": "feb7f30cf51d59343e3d94dcc8d4e761983cca2a"
"gitHead": "e6cd81cbe4a441cffa75ae5b6a4c699a923cd3e8"
}

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

}
/**

@@ -841,3 +840,3 @@ * Convert a node to a HAX element. Hax elements ensure

const result = internalGetShadowSelection(root);
const rs = (result.range && result.range.toString()) || null;
const rs = (result && result.range && result.range.toString()) || null;
if (rs !== null && rs !== initialText) {

@@ -867,3 +866,3 @@ // TODO: sometimes triggers on single-char hack etc

const s = window.getSelection();
if (!s.containsNode(root.host, true)) {
if (s && !s.containsNode(root.host, true)) {
return { range: null, mode: "none" };

@@ -870,0 +869,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