remark-clang-format
Advanced tools
Comparing version 1.9.3 to 1.9.4
12
index.js
@@ -19,9 +19,9 @@ 'use strict'; | ||
) { | ||
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)); | ||
const child = spawnSync('clang-format', { input: node.value }); | ||
if (child.stderr) { | ||
console.warn('[remark-clang-format] stderr: ', child.stderr); | ||
} | ||
if (!child.stdout || String(child.stdout).length < 2) { | ||
console.warning('[remark-clang-format] empty stdout'); | ||
console.warning('code: ', String(node.value)); | ||
if (!child.stdout) { | ||
console.warn('[remark-clang-format] empty stdout'); | ||
console.warn('code: ', node.value); | ||
} else { | ||
@@ -28,0 +28,0 @@ node.value = child.stdout; |
{ | ||
"name": "remark-clang-format", | ||
"version": "1.9.3", | ||
"version": "1.9.4", | ||
"description": "run clang-format for code in markdown", | ||
@@ -25,2 +25,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"clang-format": "=1.6.0", | ||
"unist-util-visit": "^1.4.1" | ||
@@ -27,0 +28,0 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6350
2
3
+ Addedclang-format@=1.6.0