Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (i < strings.length - 1 && isUnsafeStatic(values[i])) {
record[record.length - 1] += String(values[i].value);
previousValueWasStatic = true;
} else {
previousValueWasStatic = false;
}
}
} else {
record = strings;
}
registry.set(strings, record);
}
return html(
record,
...record !== strings
? values.filter(value => !isUnsafeStatic(value))
: values,
);
};
};
return data;
}
function _taggedTemplateLiteral(strings, raw) {
if (!raw) {
raw = strings.slice(0);
}
return Object.freeze(Object.defineProperties(strings, {raw: {value: Object.freeze(raw)}}));
}
import {html, render} from 'lit-html';
const myclass = 'test';
const disabled = false;
html(_templateObject(),myclass,disabled);render(_templateObject2(),myclass,disabled);
import {html} from 'lit-html';
html(document.body)`
<div>Testing</div>
`;
html`
<div>Testing</div>
`;
import {html} from 'lit-html';
html(document.body)`
<div>Testing</div>
`;
html`<div>Testing</div>`;