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

@lit/localize-tools

Package Overview
Dependencies
Maintainers
8
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lit/localize-tools - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

16

lib/modes/transform.js

@@ -296,3 +296,3 @@ /**

}
return template;
return newTemplate;
}

@@ -367,3 +367,15 @@ // We may have ended up with template expressions that can be represented

};
for (const span of template.templateSpans) {
for (let i = 0; i < template.templateSpans.length; i++) {
const span = template.templateSpans[i];
// A span preceded by `=` can be an attribute so skip subsume and
// keep it as an expression to produce valid lit-html template
// TODO(augustinekim) Consider optimizing to regular quoted string for
// regular html attributes
if ((i === 0
? template.head.text
: template.templateSpans[i - 1].literal.text).endsWith('=')) {
fragments.push(ts.visitNode(span.expression, this.boundVisitNode));
fragments.push(span.literal.text);
continue;
}
let expression = span.expression;

@@ -370,0 +382,0 @@ // Can we directly subsume this span?

4

package.json
{
"name": "@lit/localize-tools",
"version": "0.6.1",
"version": "0.6.2",
"publishConfig": {

@@ -51,3 +51,3 @@ "access": "public"

"devDependencies": {
"@lit-labs/ssr": "^2.0.0",
"@lit-labs/ssr": "^2.1.0",
"@lit/ts-transformers": "^1.1.0",

@@ -54,0 +54,0 @@ "@types/diff": "^5.0.0",

@@ -451,3 +451,3 @@ /**

}
return template;
return newTemplate;
}

@@ -538,3 +538,18 @@

for (const span of template.templateSpans) {
for (let i = 0; i < template.templateSpans.length; i++) {
const span = template.templateSpans[i];
// A span preceded by `=` can be an attribute so skip subsume and
// keep it as an expression to produce valid lit-html template
// TODO(augustinekim) Consider optimizing to regular quoted string for
// regular html attributes
if (
(i === 0
? template.head.text
: template.templateSpans[i - 1].literal.text
).endsWith('=')
) {
fragments.push(ts.visitNode(span.expression, this.boundVisitNode));
fragments.push(span.literal.text);
continue;
}
let expression = span.expression;

@@ -541,0 +556,0 @@ // Can we directly subsume this span?

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