node-karin 1.15.0 → 1.15.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # 更新日志
2
2
 
3
+ ## [1.15.1](https://github.com/KarinJS/Karin/compare/core-v1.15.0...core-v1.15.1) (2026-03-24)
4
+
5
+
6
+ ### 🐛 Bug Fixes
7
+
8
+ * ffmpeg initialization priority order ([#629](https://github.com/KarinJS/Karin/issues/629)) ([5510219](https://github.com/KarinJS/Karin/commit/5510219de2dc199d1dfe71dd024524b9cf45ff87))
9
+
3
10
  ## [1.15.0](https://github.com/KarinJS/Karin/compare/core-v1.14.4...core-v1.15.0) (2026-03-24)
4
11
 
5
12
 
package/dist/index.mjs CHANGED
@@ -7543,26 +7543,23 @@ var init_ffmpeg = __esm({
7543
7543
  ffprobePath2 = "ffprobe";
7544
7544
  ffplayPath2 = "ffplay";
7545
7545
  setTimeout(async () => {
7546
- const env3 = await exec("ffmpeg -version", { booleanResult: true });
7547
- if (!env3) {
7548
- try {
7549
- const name = "@karinjs/plugin-ffmpeg";
7550
- const plugin = await import(name);
7551
- const ffmpeg2 = plugin.default.ffmpegPath;
7552
- const ffprobe2 = plugin.default.ffprobePath;
7553
- const ffplay2 = plugin.default.ffplayPath;
7554
- ffmpegPath2 = ffmpeg2 ? `"${ffmpeg2}"` : ffmpegPath2;
7555
- ffprobePath2 = ffprobe2 ? `"${ffprobe2}"` : ffprobePath2;
7556
- ffplayPath2 = ffplay2 ? `"${ffplay2}"` : ffplayPath2;
7557
- } catch {
7558
- const cfg = await Promise.resolve().then(() => (init_config(), config_exports));
7559
- const ffmpeg2 = cfg.ffmpegPath();
7560
- const ffprobe2 = cfg.ffprobePath();
7561
- const ffplay2 = cfg.ffplayPath();
7562
- ffmpegPath2 = ffmpeg2 ? `"${ffmpeg2}"` : ffmpegPath2;
7563
- ffprobePath2 = ffprobe2 ? `"${ffprobe2}"` : ffprobePath2;
7564
- ffplayPath2 = ffplay2 ? `"${ffplay2}"` : ffplayPath2;
7565
- }
7546
+ try {
7547
+ const name = "@karinjs/plugin-ffmpeg";
7548
+ const plugin = await import(name);
7549
+ const ffmpeg2 = plugin.default.ffmpegPath;
7550
+ const ffprobe2 = plugin.default.ffprobePath;
7551
+ const ffplay2 = plugin.default.ffplayPath;
7552
+ ffmpegPath2 = ffmpeg2 ? `"${ffmpeg2}"` : ffmpegPath2;
7553
+ ffprobePath2 = ffprobe2 ? `"${ffprobe2}"` : ffprobePath2;
7554
+ ffplayPath2 = ffplay2 ? `"${ffplay2}"` : ffplayPath2;
7555
+ } catch {
7556
+ const cfg = await Promise.resolve().then(() => (init_config(), config_exports));
7557
+ const ffmpeg2 = cfg.ffmpegPath();
7558
+ const ffprobe2 = cfg.ffprobePath();
7559
+ const ffplay2 = cfg.ffplayPath();
7560
+ ffmpegPath2 = ffmpeg2 ? `"${ffmpeg2}"` : ffmpegPath2;
7561
+ ffprobePath2 = ffprobe2 ? `"${ffprobe2}"` : ffprobePath2;
7562
+ ffplayPath2 = ffplay2 ? `"${ffplay2}"` : ffplayPath2;
7566
7563
  }
7567
7564
  }, 1e3);
7568
7565
  ffmpeg = async (cmd, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "description": "Lightweight, efficient, concise, and stable robot framework.",
5
5
  "keywords": [
6
6
  "node",