svelteesp32 1.13.0 → 1.13.1
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/README.md +59 -28
- package/dist/commandLine.d.ts +1 -0
- package/dist/commandLine.js +13 -3
- package/dist/errorMessages.d.ts +4 -0
- package/dist/errorMessages.js +146 -0
- package/dist/file.js +6 -0
- package/dist/index.js +3 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -12,6 +12,23 @@ In order to be able to easily update OTA, it is important - from the users' poin
|
|
|
12
12
|
|
|
13
13
|
This npm package provides a solution for **inserting any JS client application into the ESP web server** (PsychicHttp and also ESPAsyncWebServer (https://github.com/ESP32Async/ESPAsyncWebServer) and ESP-IDF available, PsychicHttp is the default). For this, JS, html, css, font, assets, etc. files must be converted to binary byte array. Npm mode is easy to use and easy to **integrate into your CI/CD pipeline**.
|
|
14
14
|
|
|
15
|
+
**Quick Comparison:**
|
|
16
|
+
|
|
17
|
+
| Feature | SvelteESP32 | Traditional Filesystem (SPIFFS/LittleFS) |
|
|
18
|
+
| --------------------- | --------------------------------------- | ---------------------------------------- |
|
|
19
|
+
| **Single Binary OTA** | ✓ Everything embedded in firmware | ✗ Requires separate partition upload |
|
|
20
|
+
| **Gzip Compression** | ✓ Automatic build-time (>15% reduction) | Manual or runtime compression |
|
|
21
|
+
| **ETag Support** | ✓ Built-in MD5 ETags with 304 responses | Manual implementation required |
|
|
22
|
+
| **CI/CD Integration** | ✓ npm package, simple build step | Complex with upload_fs tools |
|
|
23
|
+
| **Memory Efficiency** | Flash only (PROGMEM/const arrays) | Flash partition + filesystem overhead |
|
|
24
|
+
| **Performance** | Direct byte array serving | Filesystem read overhead |
|
|
25
|
+
| **Setup Complexity** | Include header, call init function | Partition setup, upload tools, handlers |
|
|
26
|
+
|
|
27
|
+
**When to use:**
|
|
28
|
+
|
|
29
|
+
- **SvelteESP32**: Single-binary OTA updates, CI/CD pipelines, static web content that doesn't change at runtime
|
|
30
|
+
- **SPIFFS/LittleFS**: Dynamic content, user-uploadable files, configuration that changes at runtime
|
|
31
|
+
|
|
15
32
|
> Starting with version v1.13.0, RC files support npm package variable interpolation
|
|
16
33
|
|
|
17
34
|
> Starting with version v1.12.0, you can use RC file for configuration
|
|
@@ -309,6 +326,18 @@ At the same time, it can be an advantage that the content is cached by the brows
|
|
|
309
326
|
|
|
310
327
|
Typically, the entry point for web applications is the **index.htm or index.html** file. This does not need to be listed in the browser's address bar because web servers know that this file should be served by default. Svelteesp32 also does this: if there is an index.htm or index.html file, it sets it as the main file to be served. So using `http://esp_xxx.local` or just entering the `http://x.y.w.z/` IP address will serve this main file.
|
|
311
328
|
|
|
329
|
+
**Validation**: By default, svelteesp32 validates that an `index.html` or `index.htm` file exists in your source directory (in the root or any subdirectory). This ensures users won't get a 404 error when visiting your ESP32's root URL.
|
|
330
|
+
|
|
331
|
+
**Skipping Validation**: If you're building an API-only application (REST endpoints without a web UI) or using a different entry point (e.g., `main.html`), you can skip this validation with the `--no-index-check` flag:
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
# API-only application (no web UI)
|
|
335
|
+
npx svelteesp32 -e psychic -s ./dist -o ./output.h --no-index-check
|
|
336
|
+
|
|
337
|
+
# Custom entry point (users must visit /main.html explicitly)
|
|
338
|
+
npx svelteesp32 -e psychic -s ./dist -o ./output.h --no-index-check
|
|
339
|
+
```
|
|
340
|
+
|
|
312
341
|
### File Exclusion
|
|
313
342
|
|
|
314
343
|
The `--exclude` option allows you to exclude files from being embedded in the ESP32 firmware using glob patterns. This is useful for excluding source maps, documentation, and test files that shouldn't be part of the deployed application.
|
|
@@ -418,21 +447,22 @@ You can use the following c++ directives at the project level if you want to con
|
|
|
418
447
|
|
|
419
448
|
### Command line options
|
|
420
449
|
|
|
421
|
-
| Option
|
|
422
|
-
|
|
|
423
|
-
| `-s`
|
|
424
|
-
| `-e`
|
|
425
|
-
| `-o`
|
|
426
|
-
| `--exclude`
|
|
427
|
-
| `--etag`
|
|
428
|
-
| `--cachetime`
|
|
429
|
-
| `--gzip`
|
|
430
|
-
| `--created`
|
|
431
|
-
| `--version`
|
|
432
|
-
| `--espmethod`
|
|
433
|
-
| `--define`
|
|
434
|
-
| `--config`
|
|
435
|
-
|
|
|
450
|
+
| Option | Description | default |
|
|
451
|
+
| ------------------ | ------------------------------------------------------------------------------------ | ----------------------- |
|
|
452
|
+
| `-s` | **Source dist folder contains compiled web files** | (required) |
|
|
453
|
+
| `-e` | The engine for which the include file is created (psychic/psychic2/async/espidf) | psychic |
|
|
454
|
+
| `-o` | Generated output file with path | `svelteesp32.h` |
|
|
455
|
+
| `--exclude` | Exclude files matching glob pattern (repeatable or comma-separated) | Default system files |
|
|
456
|
+
| `--etag` | Use ETag header for cache (true/false/compiler) | false |
|
|
457
|
+
| `--cachetime` | Override no-cache response with a max-age=\<cachetime\> response (seconds) | 0 |
|
|
458
|
+
| `--gzip` | Compress content with gzip (true/false/compiler) | true |
|
|
459
|
+
| `--created` | Include creation time in generated header | false |
|
|
460
|
+
| `--version` | Include a version string in generated header, e.g. `--version=v$npm_package_version` | '' |
|
|
461
|
+
| `--espmethod` | Name of generated initialization method | `initSvelteStaticFiles` |
|
|
462
|
+
| `--define` | Prefix of c++ defines (e.g., SVELTEESP32_COUNT) | `SVELTEESP32` |
|
|
463
|
+
| `--config` | Use custom RC file path | `.svelteesp32rc.json` |
|
|
464
|
+
| `--no-index-check` | Skip validation for index.html/index.htm (for API-only or custom entry points) | false |
|
|
465
|
+
| `-h` | Show help | |
|
|
436
466
|
|
|
437
467
|
### Configuration File
|
|
438
468
|
|
|
@@ -479,19 +509,20 @@ npx svelteesp32 --config=.svelteesp32rc.prod.json
|
|
|
479
509
|
|
|
480
510
|
All CLI options can be specified in the RC file using long-form property names:
|
|
481
511
|
|
|
482
|
-
| RC Property
|
|
483
|
-
|
|
|
484
|
-
| `engine`
|
|
485
|
-
| `sourcepath`
|
|
486
|
-
| `outputfile`
|
|
487
|
-
| `etag`
|
|
488
|
-
| `gzip`
|
|
489
|
-
| `cachetime`
|
|
490
|
-
| `created`
|
|
491
|
-
| `version`
|
|
492
|
-
| `espmethod`
|
|
493
|
-
| `define`
|
|
494
|
-
| `exclude`
|
|
512
|
+
| RC Property | CLI Flag | Type | Example |
|
|
513
|
+
| -------------- | ------------------ | ------- | ------------------------------------------------ |
|
|
514
|
+
| `engine` | `-e` | string | `"psychic"`, `"psychic2"`, `"async"`, `"espidf"` |
|
|
515
|
+
| `sourcepath` | `-s` | string | `"./dist"` |
|
|
516
|
+
| `outputfile` | `-o` | string | `"./output.h"` |
|
|
517
|
+
| `etag` | `--etag` | string | `"true"`, `"false"`, `"compiler"` |
|
|
518
|
+
| `gzip` | `--gzip` | string | `"true"`, `"false"`, `"compiler"` |
|
|
519
|
+
| `cachetime` | `--cachetime` | number | `86400` |
|
|
520
|
+
| `created` | `--created` | boolean | `true`, `false` |
|
|
521
|
+
| `version` | `--version` | string | `"v1.0.0"` |
|
|
522
|
+
| `espmethod` | `--espmethod` | string | `"initSvelteStaticFiles"` |
|
|
523
|
+
| `define` | `--define` | string | `"SVELTEESP32"` |
|
|
524
|
+
| `exclude` | `--exclude` | array | `["*.map", "*.md"]` |
|
|
525
|
+
| `noIndexCheck` | `--no-index-check` | boolean | `true`, `false` |
|
|
495
526
|
|
|
496
527
|
#### CLI Override
|
|
497
528
|
|
package/dist/commandLine.d.ts
CHANGED
package/dist/commandLine.js
CHANGED
|
@@ -12,6 +12,7 @@ const node_fs_1 = require("node:fs");
|
|
|
12
12
|
const node_os_1 = require("node:os");
|
|
13
13
|
const node_path_1 = __importDefault(require("node:path"));
|
|
14
14
|
const consoleColor_1 = require("./consoleColor");
|
|
15
|
+
const errorMessages_1 = require("./errorMessages");
|
|
15
16
|
function showHelp() {
|
|
16
17
|
console.log(`
|
|
17
18
|
svelteesp32 - Svelte JS to ESP32 converter
|
|
@@ -57,7 +58,8 @@ RC File:
|
|
|
57
58
|
function validateEngine(value) {
|
|
58
59
|
if (value === 'psychic' || value === 'psychic2' || value === 'async' || value === 'espidf')
|
|
59
60
|
return value;
|
|
60
|
-
|
|
61
|
+
console.error((0, errorMessages_1.getInvalidEngineError)(value));
|
|
62
|
+
process.exit(1);
|
|
61
63
|
}
|
|
62
64
|
function validateTriState(value, name) {
|
|
63
65
|
if (value === 'true' || value === 'false' || value === 'compiler')
|
|
@@ -349,6 +351,10 @@ function parseArguments() {
|
|
|
349
351
|
result.created = true;
|
|
350
352
|
continue;
|
|
351
353
|
}
|
|
354
|
+
if (argument === '--no-index-check') {
|
|
355
|
+
result.noIndexCheck = true;
|
|
356
|
+
continue;
|
|
357
|
+
}
|
|
352
358
|
if (argument.startsWith('-') && !argument.startsWith('--')) {
|
|
353
359
|
const flag = argument.slice(1);
|
|
354
360
|
const nextArgument = arguments_[index + 1];
|
|
@@ -465,8 +471,12 @@ function formatConfiguration(cmdLine) {
|
|
|
465
471
|
return parts.join(' ');
|
|
466
472
|
}
|
|
467
473
|
exports.cmdLine = parseArguments();
|
|
468
|
-
if (!(0, node_fs_1.existsSync)(exports.cmdLine.sourcepath)
|
|
469
|
-
console.error(
|
|
474
|
+
if (!(0, node_fs_1.existsSync)(exports.cmdLine.sourcepath)) {
|
|
475
|
+
console.error((0, errorMessages_1.getSourcepathNotFoundError)(exports.cmdLine.sourcepath, 'not_found'));
|
|
476
|
+
process.exit(1);
|
|
477
|
+
}
|
|
478
|
+
if (!(0, node_fs_1.statSync)(exports.cmdLine.sourcepath).isDirectory()) {
|
|
479
|
+
console.error((0, errorMessages_1.getSourcepathNotFoundError)(exports.cmdLine.sourcepath, 'not_directory'));
|
|
470
480
|
process.exit(1);
|
|
471
481
|
}
|
|
472
482
|
console.log(`[SvelteESP32] Generate code for ${exports.cmdLine.engine} engine`);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getMissingIndexError(engine: string): string;
|
|
2
|
+
export declare function getInvalidEngineError(attempted: string): string;
|
|
3
|
+
export declare function getSourcepathNotFoundError(sourcepath: string, reason: 'not_found' | 'not_directory'): string;
|
|
4
|
+
export declare function getMaxUriHandlersHint(engine: string, routeCount: number): string;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getMissingIndexError = getMissingIndexError;
|
|
7
|
+
exports.getInvalidEngineError = getInvalidEngineError;
|
|
8
|
+
exports.getSourcepathNotFoundError = getSourcepathNotFoundError;
|
|
9
|
+
exports.getMaxUriHandlersHint = getMaxUriHandlersHint;
|
|
10
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
11
|
+
const consoleColor_1 = require("./consoleColor");
|
|
12
|
+
function getEngineName(engine) {
|
|
13
|
+
const names = {
|
|
14
|
+
psychic: 'PsychicHttpServer',
|
|
15
|
+
psychic2: 'PsychicHttpServer V2',
|
|
16
|
+
async: 'ESPAsyncWebServer',
|
|
17
|
+
espidf: 'ESP-IDF'
|
|
18
|
+
};
|
|
19
|
+
return names[engine] ?? engine;
|
|
20
|
+
}
|
|
21
|
+
function getMissingIndexError(engine) {
|
|
22
|
+
const hints = {
|
|
23
|
+
psychic: ` 1. Add an index.html file to your source directory
|
|
24
|
+
2. The file will automatically be set as the default route ("/")
|
|
25
|
+
3. PsychicHttpServer uses: server->defaultEndpoint = ...`,
|
|
26
|
+
psychic2: ` 1. Add an index.html file to your source directory
|
|
27
|
+
2. The file will automatically be set as the default route ("/")
|
|
28
|
+
3. PsychicHttpServer V2 uses: server->defaultEndpoint = ...`,
|
|
29
|
+
async: ` 1. Add an index.html file to your source directory
|
|
30
|
+
2. The file will automatically create a "/" route handler
|
|
31
|
+
3. ESPAsyncWebServer uses: server.on("/", HTTP_GET, ...)`,
|
|
32
|
+
espidf: ` 1. Add an index.html file to your source directory
|
|
33
|
+
2. The file will register both "/" and "/index.html" routes
|
|
34
|
+
3. ESP-IDF uses: httpd_register_uri_handler(server, &route_def_...)`
|
|
35
|
+
};
|
|
36
|
+
const hint = hints[engine] ?? hints['psychic'];
|
|
37
|
+
return ((0, consoleColor_1.redLog)('[ERROR] No index.html or index.htm found in source files') +
|
|
38
|
+
`
|
|
39
|
+
|
|
40
|
+
Why this matters:
|
|
41
|
+
Web applications typically need a default entry point. Without index.html,
|
|
42
|
+
users visiting http://your-esp32/ will get a 404 error.
|
|
43
|
+
|
|
44
|
+
How to fix (for ${getEngineName(engine)}):
|
|
45
|
+
${hint}
|
|
46
|
+
|
|
47
|
+
Alternative:
|
|
48
|
+
If you use a different entry point (e.g., main.html), you can add --no-index-check flag,
|
|
49
|
+
but users must navigate to http://your-esp32/main.html explicitly.`);
|
|
50
|
+
}
|
|
51
|
+
function getInvalidEngineError(attempted) {
|
|
52
|
+
return ((0, consoleColor_1.redLog)(`[ERROR] Invalid engine: '${attempted}'`) +
|
|
53
|
+
`
|
|
54
|
+
|
|
55
|
+
Valid engines are:
|
|
56
|
+
${(0, consoleColor_1.cyanLog)('• psychic')} - PsychicHttpServer (ESP32 only, fastest performance)
|
|
57
|
+
${(0, consoleColor_1.cyanLog)('• psychic2')} - PsychicHttpServer V2 (ESP32 only, modern API)
|
|
58
|
+
${(0, consoleColor_1.cyanLog)('• async')} - ESPAsyncWebServer (ESP32/ESP8266 compatible)
|
|
59
|
+
${(0, consoleColor_1.cyanLog)('• espidf')} - Native ESP-IDF web server (ESP32 only, no Arduino)
|
|
60
|
+
|
|
61
|
+
How to fix:
|
|
62
|
+
npx svelteesp32 --engine=psychic --sourcepath=./dist
|
|
63
|
+
|
|
64
|
+
Example RC file (.svelteesp32rc.json):
|
|
65
|
+
{
|
|
66
|
+
"engine": "psychic",
|
|
67
|
+
"sourcepath": "./dist"
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
Documentation: https://github.com/hpieroni/svelteesp32#readme`);
|
|
71
|
+
}
|
|
72
|
+
function getSourcepathNotFoundError(sourcepath, reason) {
|
|
73
|
+
if (reason === 'not_directory')
|
|
74
|
+
return ((0, consoleColor_1.redLog)(`[ERROR] Source path is not a directory: '${sourcepath}'`) +
|
|
75
|
+
`
|
|
76
|
+
|
|
77
|
+
The --sourcepath option must point to a directory containing your built web files,
|
|
78
|
+
not an individual file.
|
|
79
|
+
|
|
80
|
+
How to fix:
|
|
81
|
+
npx svelteesp32 --sourcepath=./dist --engine=psychic`);
|
|
82
|
+
const resolvedPath = node_path_1.default.resolve(sourcepath);
|
|
83
|
+
const currentDirectory = process.cwd();
|
|
84
|
+
return ((0, consoleColor_1.redLog)(`[ERROR] Source directory not found: '${sourcepath}'`) +
|
|
85
|
+
`
|
|
86
|
+
|
|
87
|
+
Why this matters:
|
|
88
|
+
SvelteESP32 needs your compiled web assets (HTML, CSS, JS) to convert them
|
|
89
|
+
into C++ header files for the ESP32.
|
|
90
|
+
|
|
91
|
+
How to fix:
|
|
92
|
+
1. Build your frontend application first:
|
|
93
|
+
• Svelte: npm run build
|
|
94
|
+
• React: npm run build
|
|
95
|
+
• Vue: npm run build
|
|
96
|
+
• Angular: ng build
|
|
97
|
+
|
|
98
|
+
2. Verify the build output directory exists:
|
|
99
|
+
${(0, consoleColor_1.cyanLog)(`ls -la ${sourcepath}`)}
|
|
100
|
+
|
|
101
|
+
3. Check your build tool configuration:
|
|
102
|
+
• Vite: vite.config.js → build.outDir
|
|
103
|
+
• Webpack: webpack.config.js → output.path
|
|
104
|
+
• Rollup: rollup.config.js → output.dir
|
|
105
|
+
|
|
106
|
+
4. Update your svelteesp32 command to match:
|
|
107
|
+
${(0, consoleColor_1.cyanLog)(`npx svelteesp32 --sourcepath=./build --engine=psychic`)}
|
|
108
|
+
|
|
109
|
+
Current directory: ${currentDirectory}
|
|
110
|
+
Attempted path: ${resolvedPath} (resolved)`);
|
|
111
|
+
}
|
|
112
|
+
function getMaxUriHandlersHint(engine, routeCount) {
|
|
113
|
+
const recommended = routeCount + 5;
|
|
114
|
+
const hints = {
|
|
115
|
+
psychic: `PsychicHttpServer server;
|
|
116
|
+
server.config.max_uri_handlers = ${recommended}; // Default is 8, you need at least ${routeCount}
|
|
117
|
+
initSvelteStaticFiles(&server);
|
|
118
|
+
server.listen(80);`,
|
|
119
|
+
psychic2: `PsychicHttpServer server;
|
|
120
|
+
server.config.max_uri_handlers = ${recommended}; // Default is 8, you need at least ${routeCount}
|
|
121
|
+
initSvelteStaticFiles(&server);
|
|
122
|
+
server.listen(80);`,
|
|
123
|
+
espidf: `httpd_config_t config = HTTPD_DEFAULT_CONFIG();
|
|
124
|
+
config.max_uri_handlers = ${recommended}; // Default is 8, you need at least ${routeCount}
|
|
125
|
+
httpd_handle_t server = NULL;
|
|
126
|
+
httpd_start(&server, &config);
|
|
127
|
+
initSvelteStaticFiles(server);`
|
|
128
|
+
};
|
|
129
|
+
const hint = hints[engine];
|
|
130
|
+
if (!hint)
|
|
131
|
+
return '';
|
|
132
|
+
return ((0, consoleColor_1.yellowLog)('[CONFIG TIP] max_uri_handlers configuration') +
|
|
133
|
+
`
|
|
134
|
+
|
|
135
|
+
Your generated code includes ${routeCount} routes. Make sure your server can handle them:
|
|
136
|
+
|
|
137
|
+
For ${getEngineName(engine)}:
|
|
138
|
+
${hint}
|
|
139
|
+
|
|
140
|
+
Recommended formula: max_uri_handlers = file_count + 5 (safety margin)
|
|
141
|
+
|
|
142
|
+
Runtime symptoms if too low:
|
|
143
|
+
• Routes not registered (HTTP 404 errors)
|
|
144
|
+
• ESP_ERR_HTTPD_HANDLERS_FULL error in logs
|
|
145
|
+
• Some files load, others don't (random behavior)`);
|
|
146
|
+
}
|
package/dist/file.js
CHANGED
|
@@ -11,6 +11,7 @@ const picomatch_1 = __importDefault(require("picomatch"));
|
|
|
11
11
|
const tinyglobby_1 = require("tinyglobby");
|
|
12
12
|
const commandLine_1 = require("./commandLine");
|
|
13
13
|
const consoleColor_1 = require("./consoleColor");
|
|
14
|
+
const errorMessages_1 = require("./errorMessages");
|
|
14
15
|
const findSimilarFiles = (files) => {
|
|
15
16
|
const contentComparer = new Map();
|
|
16
17
|
for (const [filename, content] of files.entries()) {
|
|
@@ -79,6 +80,11 @@ const getFiles = () => {
|
|
|
79
80
|
const duplicates = findSimilarFiles(result);
|
|
80
81
|
for (const sameFiles of duplicates)
|
|
81
82
|
console.log((0, consoleColor_1.yellowLog)(` ${sameFiles.join(', ')} files look like identical`));
|
|
83
|
+
const hasIndex = [...result.keys()].some((f) => f === 'index.html' || f === 'index.htm' || f.endsWith('/index.html') || f.endsWith('/index.htm'));
|
|
84
|
+
if (!hasIndex && !commandLine_1.cmdLine.noIndexCheck) {
|
|
85
|
+
console.error('\n' + (0, errorMessages_1.getMissingIndexError)(commandLine_1.cmdLine.engine));
|
|
86
|
+
process.exit(1);
|
|
87
|
+
}
|
|
82
88
|
return result;
|
|
83
89
|
};
|
|
84
90
|
exports.getFiles = getFiles;
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const mime_types_1 = require("mime-types");
|
|
|
11
11
|
const commandLine_1 = require("./commandLine");
|
|
12
12
|
const consoleColor_1 = require("./consoleColor");
|
|
13
13
|
const cppCode_1 = require("./cppCode");
|
|
14
|
+
const errorMessages_1 = require("./errorMessages");
|
|
14
15
|
const file_1 = require("./file");
|
|
15
16
|
const GZIP_MIN_SIZE = 1024;
|
|
16
17
|
const GZIP_MIN_REDUCTION_RATIO = 0.85;
|
|
@@ -82,3 +83,5 @@ const cppFile = (0, cppCode_1.getCppCode)(sources, filesByExtension);
|
|
|
82
83
|
(0, node_fs_1.writeFileSync)(commandLine_1.cmdLine.outputfile, cppFile, { flush: true, encoding: 'utf8' });
|
|
83
84
|
console.log(`${summary.filecount} files, ${Math.round(summary.size / 1024)}kB original size, ${Math.round(summary.gzipsize / 1024)}kB gzip size`);
|
|
84
85
|
console.log(`${commandLine_1.cmdLine.outputfile} ${Math.round(cppFile.length / 1024)}kB size`);
|
|
86
|
+
if (commandLine_1.cmdLine.engine === 'psychic' || commandLine_1.cmdLine.engine === 'psychic2' || commandLine_1.cmdLine.engine === 'espidf')
|
|
87
|
+
console.log('\n' + (0, errorMessages_1.getMaxUriHandlersHint)(commandLine_1.cmdLine.engine, sources.length));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelteesp32",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "Convert Svelte (or any frontend) JS application to serve it from ESP32 webserver (PsychicHttp)",
|
|
5
5
|
"author": "BCsabaEngine",
|
|
6
6
|
"license": "ISC",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
],
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/mime-types": "^3.0.1",
|
|
64
|
-
"@types/node": "^
|
|
64
|
+
"@types/node": "^25.0.0",
|
|
65
65
|
"@types/picomatch": "^4.0.2",
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
67
|
-
"@typescript-eslint/parser": "^8.
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^8.49.0",
|
|
67
|
+
"@typescript-eslint/parser": "^8.49.0",
|
|
68
68
|
"@vitest/coverage-v8": "^4.0.15",
|
|
69
69
|
"eslint": "^9.39.1",
|
|
70
70
|
"eslint-config-prettier": "^10.1.8",
|