@wasm-fmt/clang-format 18.1.5 → 18.1.6

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.
@@ -204,7 +204,7 @@ if (!empty(values.lines)) {
204
204
  await writeFile(file, formatted, { encoding: "utf-8" });
205
205
  }
206
206
  } else {
207
- console.log(formatted);
207
+ process.stdout.write(formatted);
208
208
  }
209
209
  process.exit(0);
210
210
  }
@@ -256,7 +256,7 @@ format_range: {
256
256
  await writeFile(file, formatted, { encoding: "utf-8" });
257
257
  }
258
258
  } else {
259
- console.log(formatted);
259
+ process.stdout.write(formatted);
260
260
  }
261
261
 
262
262
  process.exit(0);
@@ -275,7 +275,7 @@ for (const [file_no, file] of fileNames.entries()) {
275
275
  await writeFile(file, formatted, { encoding: "utf-8" });
276
276
  }
277
277
  } else {
278
- console.log(formatted);
278
+ process.stdout.write(formatted);
279
279
  }
280
280
  }
281
281
 
package/clang-format.wasm CHANGED
Binary file
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": "18.1.5",
4
+ "version": "18.1.6",
5
5
  "description": "A wasm based clang-format",
6
6
  "main": "clang-format.js",
7
7
  "types": "clang-format.d.ts",