@wasm-fmt/clang-format 21.1.0 → 21.1.2

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.
Binary file
package/clang-format.wasm CHANGED
Binary file
package/git-clang-format CHANGED
@@ -419,7 +419,7 @@ def compute_diff(commits, files, staged, diff_common_commit):
419
419
  if len(commits) == 2:
420
420
  git_tool = "diff-tree"
421
421
  if diff_common_commit:
422
- commits = [f"{commits[0]}...{commits[1]}"]
422
+ extra_args += ["--merge-base"]
423
423
  elif staged:
424
424
  extra_args += ["--cached"]
425
425
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wasm-fmt/clang-format",
3
3
  "author": "magic-akari <akari.ccino@gamil.com>",
4
- "version": "21.1.0",
4
+ "version": "21.1.2",
5
5
  "description": "A wasm based clang-format",
6
6
  "main": "clang-format.js",
7
7
  "types": "clang-format.d.ts",