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.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 @@ },

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