Skip to content

Commit a681a15

Browse files
committed
chore: bump to version 0.0.13
1 parent afacbc2 commit a681a15

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dist/streamline-card.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ function evaluateConfig(e, s, t) {
261261
const { hasJavascript: r, hass: i } = t;
262262
return r && typeof i < "u" && (a = evaluateJavascript(a, i)), a;
263263
}
264-
const version = "0.0.12";
264+
const version = "0.0.13";
265265
(async function e() {
266266
const s = window.loadCardHelpers ? await window.loadCardHelpers() : void 0;
267267
class t extends HTMLElement {
@@ -336,6 +336,9 @@ const version = "0.0.12";
336336
else throw new Error(
337337
`The template "${this._originalConfig.template}" doesn't exist in streamline_templates`
338338
);
339+
this._hasJavascriptTemplate = JSON.stringify(
340+
this._templateConfig
341+
).includes("_javascript");
339342
}
340343
parseConfig() {
341344
const i = this._config ?? {};
@@ -349,7 +352,7 @@ const version = "0.0.12";
349352
), deepEqual(i, this._config) === !1;
350353
}
351354
setConfig(i) {
352-
if (this._originalConfig = i, this.prepareConfig(), this._hasJavascriptTemplate = JSON.stringify(i).includes("_javascript"), this.parseConfig() !== !1) {
355+
if (this._originalConfig = i, this.prepareConfig(), this.parseConfig() !== !1) {
353356
if (typeof this._card > "u") {
354357
if (typeof this._config.type > "u")
355358
throw new Error("[Streamline Card] You need to define a type");

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "streamline-card",
3-
"version": "0.0.12",
3+
"version": "0.0.13",
44
"description": "",
55
"type": "module",
66
"main": "src/streamline-card.js",

0 commit comments

Comments
 (0)