change-image-suffix 2.1.5 → 2.1.7

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
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.1.7](https://github.com/GuoSirius/change-image-suffix/compare/v2.1.6...v2.1.7) (2026-05-25)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * add %1 to context menu bat commands so selected files are passed ([db6cf30](https://github.com/GuoSirius/change-image-suffix/commit/db6cf300839e12ec0229057b25299e50f37f4b6b))
11
+
12
+ ### [2.1.6](https://github.com/GuoSirius/change-image-suffix/compare/v2.1.5...v2.1.6) (2026-05-25)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * use inline shell sub-keys instead of ExtendedSubCommandsKey for context menu ([2f50376](https://github.com/GuoSirius/change-image-suffix/commit/2f50376a62a17bcf317530e0662f5b2d718d53d0))
18
+
19
+
20
+ ### Chores
21
+
22
+ * update local settings permissions and refresh lockfile ([71d0c1e](https://github.com/GuoSirius/change-image-suffix/commit/71d0c1e6124006e827a3c0d078f9cc47699a3f4c))
23
+
5
24
  ### [2.1.5](https://github.com/GuoSirius/change-image-suffix/compare/v2.1.4...v2.1.5) (2026-05-23)
6
25
 
7
26
 
package/dist/index.js CHANGED
@@ -134,16 +134,14 @@ endlocal
134
134
  const shellKey = `${REG_ROOT}${menu.subMenu}\\shell\\${fmt.verb}`;
135
135
  let cmd;
136
136
  if (menu.useBat) {
137
- // 文件右键:子命令传递格式参数,Windows 自动追加文件路径
138
- // 最终执行: cmd /c "bat" "格式" "文件路径"
139
- cmd = `"${batPath}" ${fmt.verb}`;
137
+ // bat 脚本接收格式参数,%1 为 Windows 传入的文件/目录路径
138
+ cmd = `"${batPath}" ${fmt.verb} "%1"`;
140
139
  }
141
140
  else {
142
141
  cmd = `"${cisCmd}" -t ${fmt.verb} ${menu.arg}`;
143
142
  }
144
143
  execSync(`reg add "${shellKey}" /ve /d "${fmt.label}" /f`, { stdio: 'ignore' });
145
144
  execSync(`reg add "${shellKey}" /v Icon /d "${iconPath}" /f`, { stdio: 'ignore' });
146
- // 直接调用 bat,不需要 cmd /c,Windows 会自动追加文件路径
147
145
  execSync(`reg add "${shellKey}\\command" /ve /d "${cmd}" /f`, { stdio: 'ignore' });
148
146
  }
149
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "change-image-suffix",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "type": "module",
5
5
  "description": "批量转换图片格式的CLI工具,支持递归搜索、深度限制、指定后缀、Windows右键菜单等功能",
6
6
  "main": "dist/index.js",