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

hybrids

Package Overview
Dependencies
Maintainers
2
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hybrids - npm Package Compare versions

Comparing version 8.0.6 to 8.0.7

7

docs/CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [8.0.7](https://github.com/hybridsjs/hybrids/compare/v8.0.6...v8.0.7) (2022-06-28)
### Bug Fixes
* **localize:** expressions in msg html and svg methods ([1dbc279](https://github.com/hybridsjs/hybrids/commit/1dbc2796fb78fbe33cb5b66ba456e47c5e428a65))
### [8.0.6](https://github.com/hybridsjs/hybrids/compare/v8.0.5...v8.0.6) (2022-06-27)

@@ -7,0 +14,0 @@

2

package.json
{
"name": "hybrids",
"version": "8.0.6",
"version": "8.0.7",
"description": "A JavaScript framework for creating fully-featured web applications, components libraries, and single web components with unique declarative and functional architecture",

@@ -5,0 +5,0 @@ "type": "module",

@@ -172,3 +172,8 @@ import { compileTemplate } from "./template/core.js";

if (!render) {
render = compileTemplate(input.split(EXP_REGEX), false, false, false);
render = compileTemplate(
input.replace(EXP_REGEX, (_, index) => getPlaceholder(index)),
false,
false,
true,
);
templates.set(input, render);

@@ -188,3 +193,8 @@ }

if (!render) {
render = compileTemplate(input.split(EXP_REGEX), true, false, false);
render = compileTemplate(
input.replace(EXP_REGEX, (_, index) => getPlaceholder(index)),
true,
false,
true,
);
templates.set(id, render);

@@ -191,0 +201,0 @@ }

@@ -117,7 +117,7 @@ import global from "../global.js";

export function compileTemplate(rawParts, isSVG, styles, translate = true) {
export function compileTemplate(rawParts, isSVG, styles, msg = false) {
const template = global.document.createElement("template");
const parts = [];
const signature = createSignature(rawParts, styles);
const signature = msg ? rawParts : createSignature(rawParts, styles);
template.innerHTML = isSVG ? `<svg>${signature}</svg>` : signature;

@@ -151,3 +151,3 @@

if (!text.match(PLACEHOLDER_REGEXP_EQUAL)) {
if (translate && !noTranslate && !text.match(/^\s*$/)) {
if (!msg && !noTranslate && !text.match(/^\s*$/)) {
let offset = -1;

@@ -154,0 +154,0 @@ const key = text.trim();

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