New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@popeindustries/lit-html-server

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@popeindustries/lit-html-server - npm Package Compare versions

Comparing version 4.0.0-beta.1 to 4.0.0-beta.2

4

element-renderer.d.ts

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

tagName: string;
/**
* The element's observed attributes
*/
readonly observedAttributes: Array<string>;
constructor(tagName: string);

@@ -23,0 +27,0 @@ /**

@@ -31,5 +31,7 @@ // src/internal/escape.js

this.element;
this.observedAttributes = [];
}
connectedCallback() {
var _a, _b;
this.observedAttributes = this.element.constructor.observedAttributes ?? [];
(_b = (_a = this.element).connectedCallback) == null ? void 0 : _b.call(_a);

@@ -45,3 +47,5 @@ }

this.element.setAttribute(name, value);
this.attributeChangedCallback(name, oldValue, value);
if (this.observedAttributes.includes(name)) {
this.attributeChangedCallback(name, oldValue, value);
}
}

@@ -48,0 +52,0 @@ renderAttributes() {

@@ -102,4 +102,6 @@ // src/internal/browser-buffer.js

this.element;
this.observedAttributes = [];
}
connectedCallback() {
this.observedAttributes = this.element.constructor.observedAttributes ?? [];
this.element.connectedCallback?.();

@@ -115,3 +117,5 @@ }

this.element.setAttribute(name, value);
this.attributeChangedCallback(name, oldValue, value);
if (this.observedAttributes.includes(name)) {
this.attributeChangedCallback(name, oldValue, value);
}
}

@@ -118,0 +122,0 @@ renderAttributes() {

4

package.json
{
"name": "@popeindustries/lit-html-server",
"version": "4.0.0-beta.1",
"version": "4.0.0-beta.2",
"description": "Efficiently render streaming lit-html templates on the server (or in a ServiceWorker!)",

@@ -60,5 +60,5 @@ "author": "Alexander Pope <alex@pope.industries>",

"test": "pnpm run build && pnpm run test:unit && pnpm run test:browser",
"test:unit": "NODE_ENV=test mocha --require './src/dom-shim.js' --reporter spec --timeout 2000 --node-option conditions=development'test/*-test.js'",
"test:unit": "NODE_ENV=test mocha --require './src/dom-shim.js' --reporter spec --timeout 2000 --node-option conditions=development 'test/*-test.js'",
"test:browser": "node ./test/browser/cli.js"
}
}
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