elit 3.6.4 → 3.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.lock +1 -1
- package/Cargo.toml +1 -1
- package/README.md +14 -1
- package/dist/build.d.ts +4 -1
- package/dist/cli.cjs +746 -166
- package/dist/cli.mjs +746 -166
- package/dist/config.d.ts +8 -1
- package/dist/coverage.d.ts +4 -1
- package/dist/desktop-auto-render.cjs +5 -4
- package/dist/desktop-auto-render.d.ts +4 -1
- package/dist/desktop-auto-render.js +5 -4
- package/dist/desktop-auto-render.mjs +5 -4
- package/dist/dom.cjs +5 -4
- package/dist/dom.d.ts +2 -0
- package/dist/dom.js +5 -4
- package/dist/dom.mjs +5 -4
- package/dist/el.d.ts +2 -0
- package/dist/index.cjs +5 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -4
- package/dist/index.mjs +5 -4
- package/dist/native.cjs +5 -4
- package/dist/native.d.ts +2 -0
- package/dist/native.js +5 -4
- package/dist/native.mjs +5 -4
- package/dist/render-context.d.ts +4 -1
- package/dist/router.cjs +5 -4
- package/dist/router.d.ts +2 -0
- package/dist/router.js +5 -4
- package/dist/router.mjs +5 -4
- package/dist/{server-CcBFc2F5.d.ts → server-uMQvZAll.d.ts} +9 -0
- package/dist/server.cjs +146 -4
- package/dist/server.d.ts +4 -1
- package/dist/server.js +4494 -285
- package/dist/server.mjs +146 -4
- package/dist/smtp-server.cjs +115 -0
- package/dist/smtp-server.d.ts +41 -0
- package/dist/smtp-server.js +4186 -0
- package/dist/smtp-server.mjs +87 -0
- package/dist/state.cjs +5 -4
- package/dist/state.d.ts +2 -0
- package/dist/state.js +5 -4
- package/dist/state.mjs +5 -4
- package/dist/test-runtime.cjs +184 -141
- package/dist/test-runtime.js +193 -150
- package/dist/test-runtime.mjs +184 -141
- package/dist/test.cjs +143 -134
- package/dist/test.js +152 -143
- package/dist/test.mjs +143 -134
- package/dist/types.d.ts +34 -2
- package/dist/universal.d.ts +2 -0
- package/package.json +9 -1
package/dist/config.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { D as DevServerOptions, B as BuildOptions, P as PreviewOptions, T as TestOptions } from './server-
|
|
1
|
+
import { D as DevServerOptions, B as BuildOptions, P as PreviewOptions, T as TestOptions } from './server-uMQvZAll.js';
|
|
2
2
|
import './http.js';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
import './ws.js';
|
|
5
5
|
import 'events';
|
|
6
6
|
import 'http';
|
|
7
7
|
import 'ws';
|
|
8
|
+
import './smtp-server.js';
|
|
9
|
+
import 'net';
|
|
10
|
+
import 'smtp-server';
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* Config loader for elit.config.{ts,mts,js,mjs,cjs,json}
|
|
@@ -232,6 +235,10 @@ interface WapkConfig {
|
|
|
232
235
|
engine?: string;
|
|
233
236
|
entry?: string;
|
|
234
237
|
scripts?: Record<string, string>;
|
|
238
|
+
/** Stable logical app identifier embedded into the WAPK header */
|
|
239
|
+
appId?: string;
|
|
240
|
+
/** Stable publisher or owner identifier embedded into the WAPK header */
|
|
241
|
+
publisherId?: string;
|
|
235
242
|
port?: number;
|
|
236
243
|
env?: Record<string, string | number | boolean>;
|
|
237
244
|
desktop?: Record<string, unknown>;
|
package/dist/coverage.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { b as TestCoverageReporter } from './server-
|
|
1
|
+
import { b as TestCoverageReporter } from './server-uMQvZAll.js';
|
|
2
2
|
import './http.js';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
import './ws.js';
|
|
5
5
|
import 'events';
|
|
6
6
|
import 'http';
|
|
7
7
|
import 'ws';
|
|
8
|
+
import './smtp-server.js';
|
|
9
|
+
import 'net';
|
|
10
|
+
import 'smtp-server';
|
|
8
11
|
|
|
9
12
|
/**
|
|
10
13
|
* Coverage collection and reporting with vitest-style output
|
|
@@ -461,6 +461,7 @@ var DomNode = class {
|
|
|
461
461
|
html += `</${tagName}>${newLine}`;
|
|
462
462
|
return html;
|
|
463
463
|
}
|
|
464
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
464
465
|
if (children && children.length > 0) {
|
|
465
466
|
const resolvedChildren = children.map((c) => {
|
|
466
467
|
const resolved = this.resolveStateValue(c);
|
|
@@ -476,11 +477,11 @@ var DomNode = class {
|
|
|
476
477
|
if (Array.isArray(child)) {
|
|
477
478
|
for (const c of child) {
|
|
478
479
|
if (!shouldSkipChild(c)) {
|
|
479
|
-
html += this.renderToString(c, { pretty, indent: indent + 1 });
|
|
480
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent + 1 });
|
|
480
481
|
}
|
|
481
482
|
}
|
|
482
483
|
} else {
|
|
483
|
-
html += this.renderToString(child, { pretty, indent: indent + 1 });
|
|
484
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent + 1 });
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
487
|
html += indentStr;
|
|
@@ -490,11 +491,11 @@ var DomNode = class {
|
|
|
490
491
|
if (Array.isArray(child)) {
|
|
491
492
|
for (const c of child) {
|
|
492
493
|
if (!shouldSkipChild(c)) {
|
|
493
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
494
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
494
495
|
}
|
|
495
496
|
}
|
|
496
497
|
} else {
|
|
497
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
498
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
498
499
|
}
|
|
499
500
|
}
|
|
500
501
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { DesktopRenderOptions } from './render-context.js';
|
|
2
|
-
import './server-
|
|
2
|
+
import './server-uMQvZAll.js';
|
|
3
3
|
import './http.js';
|
|
4
4
|
import 'node:events';
|
|
5
5
|
import './ws.js';
|
|
6
6
|
import 'events';
|
|
7
7
|
import 'http';
|
|
8
8
|
import 'ws';
|
|
9
|
+
import './smtp-server.js';
|
|
10
|
+
import 'net';
|
|
11
|
+
import 'smtp-server';
|
|
9
12
|
|
|
10
13
|
declare function installDesktopRenderTracking(): void;
|
|
11
14
|
declare function completeDesktopAutoRender(options?: DesktopRenderOptions): void;
|
|
@@ -436,6 +436,7 @@
|
|
|
436
436
|
html += `</${tagName}>${newLine}`;
|
|
437
437
|
return html;
|
|
438
438
|
}
|
|
439
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
439
440
|
if (children && children.length > 0) {
|
|
440
441
|
const resolvedChildren = children.map((c) => {
|
|
441
442
|
const resolved = this.resolveStateValue(c);
|
|
@@ -451,11 +452,11 @@
|
|
|
451
452
|
if (Array.isArray(child)) {
|
|
452
453
|
for (const c of child) {
|
|
453
454
|
if (!shouldSkipChild(c)) {
|
|
454
|
-
html += this.renderToString(c, { pretty, indent: indent + 1 });
|
|
455
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent + 1 });
|
|
455
456
|
}
|
|
456
457
|
}
|
|
457
458
|
} else {
|
|
458
|
-
html += this.renderToString(child, { pretty, indent: indent + 1 });
|
|
459
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent + 1 });
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
html += indentStr;
|
|
@@ -465,11 +466,11 @@
|
|
|
465
466
|
if (Array.isArray(child)) {
|
|
466
467
|
for (const c of child) {
|
|
467
468
|
if (!shouldSkipChild(c)) {
|
|
468
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
469
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
472
|
} else {
|
|
472
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
473
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
473
474
|
}
|
|
474
475
|
}
|
|
475
476
|
}
|
|
@@ -436,6 +436,7 @@ var DomNode = class {
|
|
|
436
436
|
html += `</${tagName}>${newLine}`;
|
|
437
437
|
return html;
|
|
438
438
|
}
|
|
439
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
439
440
|
if (children && children.length > 0) {
|
|
440
441
|
const resolvedChildren = children.map((c) => {
|
|
441
442
|
const resolved = this.resolveStateValue(c);
|
|
@@ -451,11 +452,11 @@ var DomNode = class {
|
|
|
451
452
|
if (Array.isArray(child)) {
|
|
452
453
|
for (const c of child) {
|
|
453
454
|
if (!shouldSkipChild(c)) {
|
|
454
|
-
html += this.renderToString(c, { pretty, indent: indent + 1 });
|
|
455
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent + 1 });
|
|
455
456
|
}
|
|
456
457
|
}
|
|
457
458
|
} else {
|
|
458
|
-
html += this.renderToString(child, { pretty, indent: indent + 1 });
|
|
459
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent + 1 });
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
html += indentStr;
|
|
@@ -465,11 +466,11 @@ var DomNode = class {
|
|
|
465
466
|
if (Array.isArray(child)) {
|
|
466
467
|
for (const c of child) {
|
|
467
468
|
if (!shouldSkipChild(c)) {
|
|
468
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
469
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
472
|
} else {
|
|
472
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
473
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
473
474
|
}
|
|
474
475
|
}
|
|
475
476
|
}
|
package/dist/dom.cjs
CHANGED
|
@@ -454,6 +454,7 @@ var DomNode = class {
|
|
|
454
454
|
html += `</${tagName}>${newLine}`;
|
|
455
455
|
return html;
|
|
456
456
|
}
|
|
457
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
457
458
|
if (children && children.length > 0) {
|
|
458
459
|
const resolvedChildren = children.map((c) => {
|
|
459
460
|
const resolved = this.resolveStateValue(c);
|
|
@@ -469,11 +470,11 @@ var DomNode = class {
|
|
|
469
470
|
if (Array.isArray(child)) {
|
|
470
471
|
for (const c of child) {
|
|
471
472
|
if (!shouldSkipChild(c)) {
|
|
472
|
-
html += this.renderToString(c, { pretty, indent: indent + 1 });
|
|
473
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent + 1 });
|
|
473
474
|
}
|
|
474
475
|
}
|
|
475
476
|
} else {
|
|
476
|
-
html += this.renderToString(child, { pretty, indent: indent + 1 });
|
|
477
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent + 1 });
|
|
477
478
|
}
|
|
478
479
|
}
|
|
479
480
|
html += indentStr;
|
|
@@ -483,11 +484,11 @@ var DomNode = class {
|
|
|
483
484
|
if (Array.isArray(child)) {
|
|
484
485
|
for (const c of child) {
|
|
485
486
|
if (!shouldSkipChild(c)) {
|
|
486
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
487
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
487
488
|
}
|
|
488
489
|
}
|
|
489
490
|
} else {
|
|
490
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
491
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
491
492
|
}
|
|
492
493
|
}
|
|
493
494
|
}
|
package/dist/dom.d.ts
CHANGED
package/dist/dom.js
CHANGED
|
@@ -426,6 +426,7 @@
|
|
|
426
426
|
html += `</${tagName}>${newLine}`;
|
|
427
427
|
return html;
|
|
428
428
|
}
|
|
429
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
429
430
|
if (children && children.length > 0) {
|
|
430
431
|
const resolvedChildren = children.map((c) => {
|
|
431
432
|
const resolved = this.resolveStateValue(c);
|
|
@@ -441,11 +442,11 @@
|
|
|
441
442
|
if (Array.isArray(child)) {
|
|
442
443
|
for (const c of child) {
|
|
443
444
|
if (!shouldSkipChild(c)) {
|
|
444
|
-
html += this.renderToString(c, { pretty, indent: indent + 1 });
|
|
445
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent + 1 });
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
448
|
} else {
|
|
448
|
-
html += this.renderToString(child, { pretty, indent: indent + 1 });
|
|
449
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent + 1 });
|
|
449
450
|
}
|
|
450
451
|
}
|
|
451
452
|
html += indentStr;
|
|
@@ -455,11 +456,11 @@
|
|
|
455
456
|
if (Array.isArray(child)) {
|
|
456
457
|
for (const c of child) {
|
|
457
458
|
if (!shouldSkipChild(c)) {
|
|
458
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
459
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
} else {
|
|
462
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
463
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
466
|
}
|
package/dist/dom.mjs
CHANGED
|
@@ -424,6 +424,7 @@ var DomNode = class {
|
|
|
424
424
|
html += `</${tagName}>${newLine}`;
|
|
425
425
|
return html;
|
|
426
426
|
}
|
|
427
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
427
428
|
if (children && children.length > 0) {
|
|
428
429
|
const resolvedChildren = children.map((c) => {
|
|
429
430
|
const resolved = this.resolveStateValue(c);
|
|
@@ -439,11 +440,11 @@ var DomNode = class {
|
|
|
439
440
|
if (Array.isArray(child)) {
|
|
440
441
|
for (const c of child) {
|
|
441
442
|
if (!shouldSkipChild(c)) {
|
|
442
|
-
html += this.renderToString(c, { pretty, indent: indent + 1 });
|
|
443
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent + 1 });
|
|
443
444
|
}
|
|
444
445
|
}
|
|
445
446
|
} else {
|
|
446
|
-
html += this.renderToString(child, { pretty, indent: indent + 1 });
|
|
447
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent + 1 });
|
|
447
448
|
}
|
|
448
449
|
}
|
|
449
450
|
html += indentStr;
|
|
@@ -453,11 +454,11 @@ var DomNode = class {
|
|
|
453
454
|
if (Array.isArray(child)) {
|
|
454
455
|
for (const c of child) {
|
|
455
456
|
if (!shouldSkipChild(c)) {
|
|
456
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
457
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
457
458
|
}
|
|
458
459
|
}
|
|
459
460
|
} else {
|
|
460
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
461
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
461
462
|
}
|
|
462
463
|
}
|
|
463
464
|
}
|
package/dist/el.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -717,6 +717,7 @@ var DomNode = class {
|
|
|
717
717
|
html2 += `</${tagName}>${newLine}`;
|
|
718
718
|
return html2;
|
|
719
719
|
}
|
|
720
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
720
721
|
if (children && children.length > 0) {
|
|
721
722
|
const resolvedChildren = children.map((c) => {
|
|
722
723
|
const resolved = this.resolveStateValue(c);
|
|
@@ -732,11 +733,11 @@ var DomNode = class {
|
|
|
732
733
|
if (Array.isArray(child)) {
|
|
733
734
|
for (const c of child) {
|
|
734
735
|
if (!shouldSkipChild(c)) {
|
|
735
|
-
html2 += this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
736
|
+
html2 += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
736
737
|
}
|
|
737
738
|
}
|
|
738
739
|
} else {
|
|
739
|
-
html2 += this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
740
|
+
html2 += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
740
741
|
}
|
|
741
742
|
}
|
|
742
743
|
html2 += indentStr;
|
|
@@ -746,11 +747,11 @@ var DomNode = class {
|
|
|
746
747
|
if (Array.isArray(child)) {
|
|
747
748
|
for (const c of child) {
|
|
748
749
|
if (!shouldSkipChild(c)) {
|
|
749
|
-
html2 += this.renderToString(c, { pretty: false, indent: 0 });
|
|
750
|
+
html2 += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
750
751
|
}
|
|
751
752
|
}
|
|
752
753
|
} else {
|
|
753
|
-
html2 += this.renderToString(child, { pretty: false, indent: 0 });
|
|
754
|
+
html2 += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
754
755
|
}
|
|
755
756
|
}
|
|
756
757
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -426,6 +426,7 @@
|
|
|
426
426
|
html2 += `</${tagName}>${newLine}`;
|
|
427
427
|
return html2;
|
|
428
428
|
}
|
|
429
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
429
430
|
if (children && children.length > 0) {
|
|
430
431
|
const resolvedChildren = children.map((c) => {
|
|
431
432
|
const resolved = this.resolveStateValue(c);
|
|
@@ -441,11 +442,11 @@
|
|
|
441
442
|
if (Array.isArray(child)) {
|
|
442
443
|
for (const c of child) {
|
|
443
444
|
if (!shouldSkipChild(c)) {
|
|
444
|
-
html2 += this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
445
|
+
html2 += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
448
|
} else {
|
|
448
|
-
html2 += this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
449
|
+
html2 += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
449
450
|
}
|
|
450
451
|
}
|
|
451
452
|
html2 += indentStr;
|
|
@@ -455,11 +456,11 @@
|
|
|
455
456
|
if (Array.isArray(child)) {
|
|
456
457
|
for (const c of child) {
|
|
457
458
|
if (!shouldSkipChild(c)) {
|
|
458
|
-
html2 += this.renderToString(c, { pretty: false, indent: 0 });
|
|
459
|
+
html2 += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
} else {
|
|
462
|
-
html2 += this.renderToString(child, { pretty: false, indent: 0 });
|
|
463
|
+
html2 += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
466
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -424,6 +424,7 @@ var DomNode = class {
|
|
|
424
424
|
html2 += `</${tagName}>${newLine}`;
|
|
425
425
|
return html2;
|
|
426
426
|
}
|
|
427
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
427
428
|
if (children && children.length > 0) {
|
|
428
429
|
const resolvedChildren = children.map((c) => {
|
|
429
430
|
const resolved = this.resolveStateValue(c);
|
|
@@ -439,11 +440,11 @@ var DomNode = class {
|
|
|
439
440
|
if (Array.isArray(child)) {
|
|
440
441
|
for (const c of child) {
|
|
441
442
|
if (!shouldSkipChild(c)) {
|
|
442
|
-
html2 += this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
443
|
+
html2 += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
443
444
|
}
|
|
444
445
|
}
|
|
445
446
|
} else {
|
|
446
|
-
html2 += this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
447
|
+
html2 += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
447
448
|
}
|
|
448
449
|
}
|
|
449
450
|
html2 += indentStr;
|
|
@@ -453,11 +454,11 @@ var DomNode = class {
|
|
|
453
454
|
if (Array.isArray(child)) {
|
|
454
455
|
for (const c of child) {
|
|
455
456
|
if (!shouldSkipChild(c)) {
|
|
456
|
-
html2 += this.renderToString(c, { pretty: false, indent: 0 });
|
|
457
|
+
html2 += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
457
458
|
}
|
|
458
459
|
}
|
|
459
460
|
} else {
|
|
460
|
-
html2 += this.renderToString(child, { pretty: false, indent: 0 });
|
|
461
|
+
html2 += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
461
462
|
}
|
|
462
463
|
}
|
|
463
464
|
}
|
package/dist/native.cjs
CHANGED
|
@@ -456,6 +456,7 @@ var DomNode = class {
|
|
|
456
456
|
html += `</${tagName}>${newLine}`;
|
|
457
457
|
return html;
|
|
458
458
|
}
|
|
459
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
459
460
|
if (children && children.length > 0) {
|
|
460
461
|
const resolvedChildren = children.map((c) => {
|
|
461
462
|
const resolved = this.resolveStateValue(c);
|
|
@@ -471,11 +472,11 @@ var DomNode = class {
|
|
|
471
472
|
if (Array.isArray(child)) {
|
|
472
473
|
for (const c of child) {
|
|
473
474
|
if (!shouldSkipChild(c)) {
|
|
474
|
-
html += this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
475
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
475
476
|
}
|
|
476
477
|
}
|
|
477
478
|
} else {
|
|
478
|
-
html += this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
479
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
479
480
|
}
|
|
480
481
|
}
|
|
481
482
|
html += indentStr;
|
|
@@ -485,11 +486,11 @@ var DomNode = class {
|
|
|
485
486
|
if (Array.isArray(child)) {
|
|
486
487
|
for (const c of child) {
|
|
487
488
|
if (!shouldSkipChild(c)) {
|
|
488
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
489
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
489
490
|
}
|
|
490
491
|
}
|
|
491
492
|
} else {
|
|
492
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
493
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
493
494
|
}
|
|
494
495
|
}
|
|
495
496
|
}
|
package/dist/native.d.ts
CHANGED
package/dist/native.js
CHANGED
|
@@ -426,6 +426,7 @@
|
|
|
426
426
|
html += `</${tagName}>${newLine}`;
|
|
427
427
|
return html;
|
|
428
428
|
}
|
|
429
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
429
430
|
if (children && children.length > 0) {
|
|
430
431
|
const resolvedChildren = children.map((c) => {
|
|
431
432
|
const resolved = this.resolveStateValue(c);
|
|
@@ -441,11 +442,11 @@
|
|
|
441
442
|
if (Array.isArray(child)) {
|
|
442
443
|
for (const c of child) {
|
|
443
444
|
if (!shouldSkipChild(c)) {
|
|
444
|
-
html += this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
445
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
448
|
} else {
|
|
448
|
-
html += this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
449
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
449
450
|
}
|
|
450
451
|
}
|
|
451
452
|
html += indentStr;
|
|
@@ -455,11 +456,11 @@
|
|
|
455
456
|
if (Array.isArray(child)) {
|
|
456
457
|
for (const c of child) {
|
|
457
458
|
if (!shouldSkipChild(c)) {
|
|
458
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
459
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
} else {
|
|
462
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
463
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
466
|
}
|
package/dist/native.mjs
CHANGED
|
@@ -424,6 +424,7 @@ var DomNode = class {
|
|
|
424
424
|
html += `</${tagName}>${newLine}`;
|
|
425
425
|
return html;
|
|
426
426
|
}
|
|
427
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
427
428
|
if (children && children.length > 0) {
|
|
428
429
|
const resolvedChildren = children.map((c) => {
|
|
429
430
|
const resolved = this.resolveStateValue(c);
|
|
@@ -439,11 +440,11 @@ var DomNode = class {
|
|
|
439
440
|
if (Array.isArray(child)) {
|
|
440
441
|
for (const c of child) {
|
|
441
442
|
if (!shouldSkipChild(c)) {
|
|
442
|
-
html += this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
443
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent5 + 1 });
|
|
443
444
|
}
|
|
444
445
|
}
|
|
445
446
|
} else {
|
|
446
|
-
html += this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
447
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent5 + 1 });
|
|
447
448
|
}
|
|
448
449
|
}
|
|
449
450
|
html += indentStr;
|
|
@@ -453,11 +454,11 @@ var DomNode = class {
|
|
|
453
454
|
if (Array.isArray(child)) {
|
|
454
455
|
for (const c of child) {
|
|
455
456
|
if (!shouldSkipChild(c)) {
|
|
456
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
457
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
457
458
|
}
|
|
458
459
|
}
|
|
459
460
|
} else {
|
|
460
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
461
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
461
462
|
}
|
|
462
463
|
}
|
|
463
464
|
}
|
package/dist/render-context.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { V as VNode } from './server-
|
|
1
|
+
import { V as VNode } from './server-uMQvZAll.js';
|
|
2
2
|
import './http.js';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
import './ws.js';
|
|
5
5
|
import 'events';
|
|
6
6
|
import 'http';
|
|
7
7
|
import 'ws';
|
|
8
|
+
import './smtp-server.js';
|
|
9
|
+
import 'net';
|
|
10
|
+
import 'smtp-server';
|
|
8
11
|
|
|
9
12
|
type RenderRuntimeTarget = 'web' | 'desktop' | 'mobile' | 'unknown';
|
|
10
13
|
interface DesktopInteractionOutputOptions {
|
package/dist/router.cjs
CHANGED
|
@@ -452,6 +452,7 @@ var DomNode = class {
|
|
|
452
452
|
html += `</${tagName}>${newLine}`;
|
|
453
453
|
return html;
|
|
454
454
|
}
|
|
455
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
455
456
|
if (children && children.length > 0) {
|
|
456
457
|
const resolvedChildren = children.map((c) => {
|
|
457
458
|
const resolved = this.resolveStateValue(c);
|
|
@@ -467,11 +468,11 @@ var DomNode = class {
|
|
|
467
468
|
if (Array.isArray(child)) {
|
|
468
469
|
for (const c of child) {
|
|
469
470
|
if (!shouldSkipChild(c)) {
|
|
470
|
-
html += this.renderToString(c, { pretty, indent: indent + 1 });
|
|
471
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent + 1 });
|
|
471
472
|
}
|
|
472
473
|
}
|
|
473
474
|
} else {
|
|
474
|
-
html += this.renderToString(child, { pretty, indent: indent + 1 });
|
|
475
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent + 1 });
|
|
475
476
|
}
|
|
476
477
|
}
|
|
477
478
|
html += indentStr;
|
|
@@ -481,11 +482,11 @@ var DomNode = class {
|
|
|
481
482
|
if (Array.isArray(child)) {
|
|
482
483
|
for (const c of child) {
|
|
483
484
|
if (!shouldSkipChild(c)) {
|
|
484
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
485
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
485
486
|
}
|
|
486
487
|
}
|
|
487
488
|
} else {
|
|
488
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
489
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
489
490
|
}
|
|
490
491
|
}
|
|
491
492
|
}
|
package/dist/router.d.ts
CHANGED
package/dist/router.js
CHANGED
|
@@ -426,6 +426,7 @@
|
|
|
426
426
|
html += `</${tagName}>${newLine}`;
|
|
427
427
|
return html;
|
|
428
428
|
}
|
|
429
|
+
const isRawText = tagName === "script" || tagName === "style";
|
|
429
430
|
if (children && children.length > 0) {
|
|
430
431
|
const resolvedChildren = children.map((c) => {
|
|
431
432
|
const resolved = this.resolveStateValue(c);
|
|
@@ -441,11 +442,11 @@
|
|
|
441
442
|
if (Array.isArray(child)) {
|
|
442
443
|
for (const c of child) {
|
|
443
444
|
if (!shouldSkipChild(c)) {
|
|
444
|
-
html += this.renderToString(c, { pretty, indent: indent + 1 });
|
|
445
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty, indent: indent + 1 });
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
448
|
} else {
|
|
448
|
-
html += this.renderToString(child, { pretty, indent: indent + 1 });
|
|
449
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty, indent: indent + 1 });
|
|
449
450
|
}
|
|
450
451
|
}
|
|
451
452
|
html += indentStr;
|
|
@@ -455,11 +456,11 @@
|
|
|
455
456
|
if (Array.isArray(child)) {
|
|
456
457
|
for (const c of child) {
|
|
457
458
|
if (!shouldSkipChild(c)) {
|
|
458
|
-
html += this.renderToString(c, { pretty: false, indent: 0 });
|
|
459
|
+
html += isRawText && typeof c === "string" ? c : this.renderToString(c, { pretty: false, indent: 0 });
|
|
459
460
|
}
|
|
460
461
|
}
|
|
461
462
|
} else {
|
|
462
|
-
html += this.renderToString(child, { pretty: false, indent: 0 });
|
|
463
|
+
html += isRawText && typeof child === "string" ? child : this.renderToString(child, { pretty: false, indent: 0 });
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
466
|
}
|