svelteesp32 1.5.0 → 1.5.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 CHANGED
@@ -13,9 +13,13 @@ In order to be able to easily update OTA, it is important - from the users' poin
13
13
  This npm package provides a solution for **inserting any JS client application into the ESP web server** (PsychicHttp and also ESPAsyncWebServer 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
15
  > Starting with version v1.5.0, PsychicHttp v2 is also supported.
16
+
16
17
  > Version v1.4.0 has a breaking change! --no-gzip changed to --gzip. Starting with this version c++ compiler directives are available to setup operation in project level.
18
+
17
19
  > Starting with version v1.3.0, c++ defines can be used.
20
+
18
21
  > Starting with version v1.2.0, ESP8266/ESP8285 is also supported.
22
+
19
23
  > Starting with version v1.1.0, the ETag header is also supported.
20
24
 
21
25
  ### Usage
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ for (const [originalFilename, content] of files) {
32
32
  const mime = (0, mime_types_1.lookup)(originalFilename) || 'text/plain';
33
33
  summary.filecount++;
34
34
  const filename = originalFilename.replace(/\\/g, '/');
35
- const dataname = filename.replace(/[./-]/g, '_');
35
+ const dataname = filename.replace(/[!&()+./@{}~-]/g, '_');
36
36
  let extension = node_path_1.default.extname(filename).toUpperCase();
37
37
  if (extension.startsWith('.'))
38
38
  extension = extension.slice(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelteesp32",
3
- "version": "1.5.0",
3
+ "version": "1.5.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",
@@ -55,10 +55,10 @@
55
55
  ],
56
56
  "devDependencies": {
57
57
  "@types/mime-types": "^2.1.4",
58
- "@types/node": "^22.5.2",
59
- "@typescript-eslint/eslint-plugin": "^8.3.0",
60
- "@typescript-eslint/parser": "^8.3.0",
61
- "eslint": "^9.9.1",
58
+ "@types/node": "^22.5.4",
59
+ "@typescript-eslint/eslint-plugin": "^8.4.0",
60
+ "@typescript-eslint/parser": "^8.4.0",
61
+ "eslint": "^9.10.0",
62
62
  "eslint-config-prettier": "^9.1.0",
63
63
  "eslint-plugin-simple-import-sort": "^12.1.1",
64
64
  "eslint-plugin-unicorn": "^55.0.0",