Skip to content

Commit bf7ddbc

Browse files
committed
feat: fix for internal memory
1 parent 0a0fa25 commit bf7ddbc

9 files changed

Lines changed: 67 additions & 24 deletions

File tree

dist/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var Store = class {
5959
* @param name
6060
*/
6161
get(name) {
62-
return this.items[name] || null;
62+
return this.items[name] ?? null;
6363
}
6464
/**
6565
* Gets all items as an object

dist/index.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/includes/style.elos

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ style btn {
2626
style group {
2727
bgcolor "#f0f0f0"
2828
padding 15
29+
}
30+
31+
style group.footer {
32+
bgcolor "#cccccc"
2933
}

example/index.elos

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ body {
3939
}
4040
}
4141
}
42+
group.footer {
43+
txt "Footer"
44+
}
4245
}

example/index.html

Lines changed: 54 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,57 +20,57 @@
2020
</style>
2121

2222
<style media="screen and (min-width:545px)">
23-
.elos-img-NaN {
23+
.elos-img-1 {
2424
width: 500px !important;
2525
}
2626
</style>
2727
<style media="screen and (min-width:545px)">
28-
.elos-col-NaN-0 {
28+
.elos-col-1-0 {
2929
float: left;
3030
max-width: 237px !important;
3131
margin-bottom: 0 !important;
3232
padding-right: 25px !important;
3333
}
3434
</style>
3535
<style media="screen and (min-width:545px)">
36-
.elos-img-NaN {
36+
.elos-img-2 {
3737
width: 237px !important;
3838
}
3939
</style>
4040
<style media="screen and (min-width:545px)">
41-
.elos-col-NaN-1 {
41+
.elos-col-1-1 {
4242
float: left;
4343
max-width: 237px !important;
4444
margin-bottom: 0 !important;
4545
}
4646
</style>
4747
<style media="screen and (min-width:545px)">
48-
.elos-img-NaN {
48+
.elos-img-3 {
4949
width: 237px !important;
5050
}
5151
</style>
5252
<style media="screen and (min-width:545px)">
53-
.elos-col-NaN-0 {
53+
.elos-col-2-0 {
5454
float: left;
5555
max-width: 222px !important;
5656
margin-bottom: 0 !important;
5757
padding-right: 25px !important;
5858
}
5959
</style>
6060
<style media="screen and (min-width:545px)">
61-
.elos-img-NaN {
61+
.elos-img-4 {
6262
width: 222px !important;
6363
}
6464
</style>
6565
<style media="screen and (min-width:545px)">
66-
.elos-col-NaN-1 {
66+
.elos-col-2-1 {
6767
float: left;
6868
max-width: 222px !important;
6969
margin-bottom: 0 !important;
7070
}
7171
</style>
7272
<style media="screen and (min-width:545px)">
73-
.elos-img-NaN {
73+
.elos-img-5 {
7474
width: 222px !important;
7575
}
7676
</style>
@@ -95,7 +95,7 @@
9595
<tr>
9696
<td align="left">
9797
<a href="https://elos-lang.com" target="_blank" style="text-decoration: none;">
98-
<img class="elos-img-NaN" border="0" src="https://placehold.co/600x250" style="display:block; border: 0; width: 100%;"/>
98+
<img class="elos-img-1" border="0" src="https://placehold.co/600x250" style="display:block; border: 0; width: 100%;"/>
9999
</a>
100100
</td>
101101
</tr>
@@ -149,15 +149,15 @@
149149
<!--[if mso]>
150150
<td style="width: 237px; padding: 0;" align="left" valign="top">
151151
<![endif]-->
152-
<div class="elos-col-NaN-0" style="display:inline-block; margin-bottom: 25px; width:100%; vertical-align:top; text-align:left;">
152+
<div class="elos-col-1-0" style="display:inline-block; margin-bottom: 25px; width:100%; vertical-align:top; text-align:left;">
153153
<table role="presentation" style="width: 100%;border:none;border-spacing:0;text-align:left;font-family:Arial,sans-serif;font-size:16px;line-height:22px;color:#363636;">
154154
<tr>
155155
<td align="left">
156156
<table role="presentation" style="width: 100%;border:none;border-spacing:0;text-align:left;font-family:Arial,sans-serif;font-size:16px;line-height:22px;color:#363636;">
157157
<tr>
158158
<td align="left">
159159
<a href="https://www.elos-lang.com" target="_blank" style="text-decoration: none;">
160-
<img class="elos-img-NaN" border="0" src="https://placehold.co/600x400" style="display:block; border: 0; width: 100%;"/>
160+
<img class="elos-img-2" border="0" src="https://placehold.co/600x400" style="display:block; border: 0; width: 100%;"/>
161161
</a>
162162
</td>
163163
</tr>
@@ -212,15 +212,15 @@
212212
<!--[if mso]>
213213
<td style="width: 237px; padding: 0;" align="left" valign="top">
214214
<![endif]-->
215-
<div class="elos-col-NaN-1" style="display:inline-block; margin-bottom: 25px; width:100%; vertical-align:top; text-align:left;">
215+
<div class="elos-col-1-1" style="display:inline-block; margin-bottom: 25px; width:100%; vertical-align:top; text-align:left;">
216216
<table role="presentation" style="width: 100%;border:none;border-spacing:0;text-align:left;font-family:Arial,sans-serif;font-size:16px;line-height:22px;color:#363636;">
217217
<tr>
218218
<td align="left">
219219
<table role="presentation" style="width: 100%;border:none;border-spacing:0;text-align:left;font-family:Arial,sans-serif;font-size:16px;line-height:22px;color:#363636;">
220220
<tr>
221221
<td align="left">
222222
<a href="https://www.elos-lang.com" target="_blank" style="text-decoration: none;">
223-
<img class="elos-img-NaN" border="0" src="https://placehold.co/600x400" style="display:block; border: 0; width: 100%;"/>
223+
<img class="elos-img-3" border="0" src="https://placehold.co/600x400" style="display:block; border: 0; width: 100%;"/>
224224
</a>
225225
</td>
226226
</tr>
@@ -306,14 +306,14 @@
306306
<!--[if mso]>
307307
<td style="width: 222px; padding: 0;" align="left" valign="top">
308308
<![endif]-->
309-
<div class="elos-col-NaN-0" style="display:inline-block; margin-bottom: 25px; width:100%; vertical-align:top; text-align:left;">
309+
<div class="elos-col-2-0" style="display:inline-block; margin-bottom: 25px; width:100%; vertical-align:top; text-align:left;">
310310
<table role="presentation" style="width: 100%;border:none;border-spacing:0;text-align:left;font-family:Arial,sans-serif;font-size:16px;line-height:22px;color:#363636;">
311311
<tr>
312312
<td align="left">
313313
<table role="presentation" style="width: 100%;border:none;border-spacing:0;text-align:left;font-family:Arial,sans-serif;font-size:16px;line-height:22px;color:#363636;">
314314
<tr>
315315
<td align="left">
316-
<img class="elos-img-NaN" border="0" src="https://placehold.co/600x400" style="display:block; border: 0; width: 100%;"/>
316+
<img class="elos-img-4" border="0" src="https://placehold.co/600x400" style="display:block; border: 0; width: 100%;"/>
317317
</td>
318318
</tr>
319319
<tr><td height="10"></td></tr>
@@ -367,14 +367,14 @@
367367
<!--[if mso]>
368368
<td style="width: 222px; padding: 0;" align="left" valign="top">
369369
<![endif]-->
370-
<div class="elos-col-NaN-1" style="display:inline-block; margin-bottom: 25px; width:100%; vertical-align:top; text-align:left;">
370+
<div class="elos-col-2-1" style="display:inline-block; margin-bottom: 25px; width:100%; vertical-align:top; text-align:left;">
371371
<table role="presentation" style="width: 100%;border:none;border-spacing:0;text-align:left;font-family:Arial,sans-serif;font-size:16px;line-height:22px;color:#363636;">
372372
<tr>
373373
<td align="left">
374374
<table role="presentation" style="width: 100%;border:none;border-spacing:0;text-align:left;font-family:Arial,sans-serif;font-size:16px;line-height:22px;color:#363636;">
375375
<tr>
376376
<td align="left">
377-
<img class="elos-img-NaN" border="0" src="https://placehold.co/600x400" style="display:block; border: 0; width: 100%;"/>
377+
<img class="elos-img-5" border="0" src="https://placehold.co/600x400" style="display:block; border: 0; width: 100%;"/>
378378
</td>
379379
</tr>
380380
<tr><td height="10"></td></tr>
@@ -446,6 +446,42 @@
446446
</table>
447447
</td>
448448
</tr>
449+
<tr><td height="10"></td></tr>
450+
<tr>
451+
<td align="left">
452+
<table width="100%;" cellspacing="0" cellpadding="0" style="width:100%;max-width:500px;border:none;border-spacing:0;text-align:left;">
453+
<tr>
454+
<td bgcolor="#cccccc" width="25"></td>
455+
<td bgcolor="#cccccc" height="25"></td>
456+
<td bgcolor="#cccccc" width="25"></td>
457+
</tr>
458+
<tr>
459+
<td bgcolor="#cccccc" width="25"></td>
460+
<td bgcolor="#cccccc" align="left">
461+
<table role="presentation" style="width: 100%;border:none;border-spacing:0;text-align:left;font-family:Arial,sans-serif;font-size:16px;line-height:22px;color:#363636;">
462+
<tr>
463+
<td align="left">
464+
<table cellspacing="0" cellpadding="0" style="max-width:500px;border:none;border-spacing:0;text-align:left;">
465+
<tr>
466+
<td style="font-family: Montserrat;font-size: 14px;color: #000000;line-height: 16px;text-decoration: none;">
467+
Footer
468+
</td>
469+
</tr>
470+
</table>
471+
</td>
472+
</tr>
473+
</table>
474+
</td>
475+
<td bgcolor="#cccccc" width="25"></td>
476+
</tr>
477+
<tr>
478+
<td bgcolor="#cccccc" width="25"></td>
479+
<td bgcolor="#cccccc" height="25"></td>
480+
<td bgcolor="#cccccc" width="25"></td>
481+
</tr>
482+
</table>
483+
</td>
484+
</tr>
449485
</table>
450486
</td>
451487
<td width="15">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
"tsup": "^8.3.6",
2626
"typescript": "^5.7.3"
2727
},
28-
"version": "0.5.0"
28+
"version": "0.6.0"
2929
}

src/runtime/Store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class Store<T> {
2727
* @param name
2828
*/
2929
public get(name: string): T | null {
30-
return this.items[name] || null;
30+
return this.items[name] ?? null;
3131
}
3232

3333
/**

0 commit comments

Comments
 (0)