remark-clang-format
Advanced tools
Comparing version 2.3.3 to 2.4.0
@@ -36,2 +36,21 @@ import { spawnSync as spawnSync } from 'child_process'; | ||
case 'python': | ||
case 'py': { | ||
const child = spawnSync('ruff', ['format', '-'], { | ||
input: node.value, | ||
}); | ||
if (child.stderr.length > 0) { | ||
console.warn('[remark-ruff] stderr: ', child.stderr.toString()); | ||
} | ||
if (!child.stdout) { | ||
console.warn('[remark-ruff] empty stdout'); | ||
console.warn('[remark-ruff] original code: ', node.value); | ||
console.warn('[remark-ruff] child info', child); | ||
// node value left untouched | ||
} else { | ||
node.value = child.stdout; | ||
} | ||
break; | ||
} | ||
case 'javascript': | ||
@@ -38,0 +57,0 @@ case 'typescript': |
{ | ||
"name": "remark-clang-format", | ||
"version": "2.3.3", | ||
"version": "2.4.0", | ||
"description": "run clang-format for code in markdown", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12996
224
2