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 1.9.2 to 1.9.3

12

index.js

@@ -19,9 +19,9 @@ 'use strict';

) {
const child = spawnSync('clang-format', { input: node.value });
if (child.stderr) {
console.warn('[remark-clang-format] stderr: ', String(child.stderr));
const child = spawnSync('clang-format', { input: node.value, shell: true });
if (child.stderr && String(child.stderr).length > 0) {
console.error('[remark-clang-format] stderr: ', String(child.stderr));
}
if (!child.stdout) {
console.warn('[remark-clang-format] empty stdout');
console.warn('code: ', String(node.value));
if (!child.stdout || String(child.stdout).length < 2) {
console.warning('[remark-clang-format] empty stdout');
console.warning('code: ', String(node.value));
} else {

@@ -28,0 +28,0 @@ node.value = child.stdout;

{
"name": "remark-clang-format",
"version": "1.9.2",
"version": "1.9.3",
"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