svelteesp32 1.5.1 → 1.5.2
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/dist/cppCode.js +1 -0
- package/dist/index.js +1 -1
- package/package.json +12 -12
package/dist/cppCode.js
CHANGED
|
@@ -6,6 +6,7 @@ const commandLine_1 = require("./commandLine");
|
|
|
6
6
|
const psychicTemplate = `
|
|
7
7
|
//engine: PsychicHttpServer
|
|
8
8
|
//cmdline: {{{commandLine}}}
|
|
9
|
+
//You should use server.config.max_uri_handlers = {{fileCount}}; or higher value to proper handles all files
|
|
9
10
|
{{#if created }}
|
|
10
11
|
//created: {{now}}
|
|
11
12
|
{{/if}}
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ if (files.size === 0) {
|
|
|
27
27
|
}
|
|
28
28
|
console.log();
|
|
29
29
|
console.log('Translation to header file');
|
|
30
|
-
const longestFilename = [...files.keys()].reduce((p, c) => (c.length
|
|
30
|
+
const longestFilename = [...files.keys()].reduce((p, c) => Math.max(c.length, p), 0);
|
|
31
31
|
for (const [originalFilename, content] of files) {
|
|
32
32
|
const mime = (0, mime_types_1.lookup)(originalFilename) || 'text/plain';
|
|
33
33
|
summary.filecount++;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelteesp32",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
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",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"format:fix": "prettier --write .",
|
|
39
39
|
"lint:check": "eslint .",
|
|
40
40
|
"lint:fix": "eslint --fix .",
|
|
41
|
-
"fix": "npm run format:fix && npm run lint:fix",
|
|
42
|
-
"npm:reinstall": "rm -rf ./node_modules && rm -f ./package-lock.json && npm i"
|
|
41
|
+
"fix": "npm run format:fix && npm run lint:fix && npm run format:fix",
|
|
42
|
+
"npm:reinstall": "rm -rf ./node_modules && rm -f ./package-lock.json && npm i && npm i"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
45
|
"svelte",
|
|
@@ -55,18 +55,18 @@
|
|
|
55
55
|
],
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/mime-types": "^2.1.4",
|
|
58
|
-
"@types/node": "^22.
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
60
|
-
"@typescript-eslint/parser": "^8.
|
|
61
|
-
"eslint": "^9.
|
|
58
|
+
"@types/node": "^22.10.1",
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
60
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
61
|
+
"eslint": "^9.16.0",
|
|
62
62
|
"eslint-config-prettier": "^9.1.0",
|
|
63
63
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
64
|
-
"eslint-plugin-unicorn": "^
|
|
65
|
-
"nodemon": "^3.1.
|
|
66
|
-
"prettier": "^3.
|
|
64
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
65
|
+
"nodemon": "^3.1.7",
|
|
66
|
+
"prettier": "^3.4.2",
|
|
67
67
|
"ts-node": "^10.9.2",
|
|
68
|
-
"tsx": "^4.19.
|
|
69
|
-
"typescript": "^5.
|
|
68
|
+
"tsx": "^4.19.2",
|
|
69
|
+
"typescript": "^5.7.2"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"glob": "^11.0.0",
|