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

@lit-labs/ssr

Package Overview
Dependencies
Maintainers
9
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lit-labs/ssr - npm Package Compare versions

Comparing version 2.0.4 to 2.1.0

15

lib/dom-shim.js

@@ -36,2 +36,6 @@ /**

class HTMLElement extends Element {
constructor() {
super(...arguments);
this._shadowRoot = null;
}
get attributes() {

@@ -43,2 +47,5 @@ return Array.from(attributesForElement(this)).map(([name, value]) => ({

}
get shadowRoot() {
return this._shadowRoot;
}
setAttribute(name, value) {

@@ -53,4 +60,8 @@ attributesForElement(this).set(name, value);

}
attachShadow() {
return { host: this };
attachShadow(init) {
const shadowRoot = { host: this };
if (init && init.mode === 'open') {
this._shadowRoot = shadowRoot;
}
return shadowRoot;
}

@@ -57,0 +68,0 @@ getAttribute(name) {

2

package.json
{
"name": "@lit-labs/ssr",
"type": "module",
"version": "2.0.4",
"version": "2.1.0",
"publishConfig": {

@@ -6,0 +6,0 @@ "access": "public"

Sorry, the diff of this file is not supported yet

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