n8n-nodes-ffmpeg-wasm 1.3.0 → 1.4.0

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
@@ -1,7 +1,7 @@
1
1
  # n8n-nodes-ffmpeg-wasm
2
2
 
3
3
  <p align="center">
4
- <img src="logo.png" alt="FFmpeg n8n Node Logo" width="200">
4
+ <img src="nodes/FFmpegWasm/ffmpeg.svg" alt="FFmpeg n8n Node Logo" width="128">
5
5
  </p>
6
6
 
7
7
  [![NPM Version](https://img.shields.io/npm/v/n8n-nodes-ffmpeg-wasm.svg)](https://www.npmjs.com/package/n8n-nodes-ffmpeg-wasm)
@@ -209,6 +209,10 @@ n8n-nodes-ffmpeg-wasm/
209
209
  - Expected with WASM. Use **Remux** for format changes without re-encoding.
210
210
  - Consider native FFmpeg for batch processing of large files.
211
211
 
212
+ **Icon not displaying in n8n**
213
+ - This was fixed in v1.2.9. The FFmpeg icon now displays correctly in the n8n node panel.
214
+ - If you're on an older version, please update to the latest version.
215
+
212
216
  ## Contributing
213
217
 
214
218
  Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
@@ -27,40 +27,15 @@ const MIME_TYPE_MAP = {
27
27
  ".m4a": "audio/mp4",
28
28
  ".wma": "audio/x-ms-wma",
29
29
  ".opus": "audio/opus",
30
- ".jpg": "image/jpeg",
31
30
  ".jpeg": "image/jpeg",
31
+ ".jpg": "image/jpeg",
32
32
  ".png": "image/png",
33
33
  ".gif": "image/gif",
34
34
  ".webp": "image/webp",
35
35
  ".bmp": "image/bmp",
36
36
  ".tiff": "image/tiff",
37
37
  };
38
- const EXTENSION_FROM_MIME = {
39
- "video/mp4": ".mp4",
40
- "video/webm": ".webm",
41
- "video/x-msvideo": ".avi",
42
- "video/quicktime": ".mov",
43
- "video/x-matroska": ".mkv",
44
- "video/x-flv": ".flv",
45
- "video/x-ms-wmv": ".wmv",
46
- "video/x-m4v": ".m4v",
47
- "video/3gpp": ".3gp",
48
- "video/mp2t": ".ts",
49
- "audio/mpeg": ".mp3",
50
- "audio/aac": ".aac",
51
- "audio/wav": ".wav",
52
- "audio/ogg": ".ogg",
53
- "audio/flac": ".flac",
54
- "audio/mp4": ".m4a",
55
- "audio/x-ms-wma": ".wma",
56
- "audio/opus": ".opus",
57
- "image/jpeg": ".jpg",
58
- "image/png": ".png",
59
- "image/gif": ".gif",
60
- "image/webp": ".webp",
61
- "image/bmp": ".bmp",
62
- "image/tiff": ".tiff",
63
- };
38
+ const EXTENSION_FROM_MIME = Object.fromEntries(Object.entries(MIME_TYPE_MAP).map(([ext, mime]) => [mime, ext]));
64
39
  function getMimeTypeFromExtension(ext) {
65
40
  const normalized = ext.startsWith(".")
66
41
  ? ext.toLowerCase()
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handleCustom = handleCustom;
4
4
  const helpers_1 = require("../helpers");
5
- const BLOCKED_PATTERNS = [/\.\.\//g, /\/\.\.\//g];
5
+ const BLOCKED_PATTERNS = [/\.\.\//, /\/\.\.\//];
6
6
  async function handleCustom(p) {
7
7
  const ffmpegArgs = p.ctx.getNodeParameter("ffmpegArgs", p.i);
8
8
  const outputExtension = p.ctx.getNodeParameter("outputExtension", p.i);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-ffmpeg-wasm",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "n8n community node for FFmpeg using ffmpeg.wasm - process audio and video files directly in your workflows",
5
5
  "keywords": [
6
6
  "n8n",