svelteesp32 1.2.3 → 1.2.5

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/file.js CHANGED
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.getFiles = void 0;
4
- const node_path_1 = require("node:path");
7
+ const node_path_1 = __importDefault(require("node:path"));
5
8
  const glob_1 = require("glob");
6
9
  const commandLine_1 = require("./commandLine");
7
10
  const getFiles = () => (0, glob_1.globSync)('**/*', { cwd: commandLine_1.cmdLine.sourcepath, nodir: true })
8
- .filter((filename) => !['.gz', '.brottli'].includes((0, node_path_1.extname)(filename)))
11
+ .filter((filename) => !['.gz', '.brottli'].includes(node_path_1.default.extname(filename)))
9
12
  .sort();
10
13
  exports.getFiles = getFiles;
package/dist/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const node_crypto_1 = require("node:crypto");
4
7
  const node_fs_1 = require("node:fs");
5
- const node_path_1 = require("node:path");
8
+ const node_path_1 = __importDefault(require("node:path"));
6
9
  const node_zlib_1 = require("node:zlib");
7
10
  const mime_types_1 = require("mime-types");
8
11
  const commandLine_1 = require("./commandLine");
@@ -24,7 +27,7 @@ for (const file of files) {
24
27
  const mime = (0, mime_types_1.lookup)(file) || 'text/plain';
25
28
  summary.filecount++;
26
29
  console.log(`[${file}]`);
27
- const rawContent = (0, node_fs_1.readFileSync)((0, node_path_1.join)(commandLine_1.cmdLine.sourcepath, file), { flag: 'r' });
30
+ const rawContent = (0, node_fs_1.readFileSync)(node_path_1.default.join(commandLine_1.cmdLine.sourcepath, file), { flag: 'r' });
28
31
  const md5 = (0, node_crypto_1.createHash)('md5').update(rawContent).digest('hex');
29
32
  summary.size += rawContent.length;
30
33
  if (commandLine_1.cmdLine['no-gzip']) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelteesp32",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
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,9 +38,7 @@
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-publish-patch": "npm run build && npm version patch && npm publish && npm run clean && git push",
43
- "npm-publish-minor": "npm run build && npm version minor && npm publish && npm run clean && git push"
41
+ "fix": "npm run format:fix && npm run lint:fix"
44
42
  },
45
43
  "keywords": [
46
44
  "svelte",
@@ -55,21 +53,20 @@
55
53
  ],
56
54
  "devDependencies": {
57
55
  "@types/mime-types": "^2.1.4",
58
- "@types/node": "^20.11.20",
59
- "@typescript-eslint/eslint-plugin": "^7.0.2",
60
- "@typescript-eslint/parser": "^7.0.2",
56
+ "@types/node": "^20.14.5",
57
+ "@typescript-eslint/eslint-plugin": "^7.13.1",
58
+ "@typescript-eslint/parser": "^7.13.1",
61
59
  "eslint": "^8.57.0",
62
60
  "eslint-config-prettier": "^9.1.0",
63
- "eslint-plugin-simple-import-sort": "^12.0.0",
64
- "eslint-plugin-sonarjs": "^0.24.0",
65
- "eslint-plugin-unicorn": "^51.0.1",
66
- "nodemon": "^3.1.0",
67
- "prettier": "^3.2.5",
61
+ "eslint-plugin-simple-import-sort": "^12.1.0",
62
+ "eslint-plugin-unicorn": "^54.0.0",
63
+ "nodemon": "^3.1.3",
64
+ "prettier": "^3.3.2",
68
65
  "ts-node": "^10.9.2",
69
- "typescript": "^5.3.3"
66
+ "typescript": "^5.4.5"
70
67
  },
71
68
  "dependencies": {
72
- "glob": "^10.3.10",
69
+ "glob": "^10.4.1",
73
70
  "handlebars": "^4.7.8",
74
71
  "mime-types": "^2.1.35",
75
72
  "ts-command-line-args": "^2.5.1"