Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remark-clang-format

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-clang-format - npm Package Compare versions

Comparing version 2.3.3 to 2.4.0

19

code/format-code.js

@@ -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':

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc