clang-format
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -23,4 +23,8 @@ #!/usr/bin/env node | ||
function spawnClangFormat(args, done, stdio) { | ||
var extension = os.platform()=='win32' ? '.exe' : '' | ||
var nativeBinary = __dirname + '/bin/' + os.platform() + "_" + os.arch() + '/clang-format' + extension; | ||
var nativeBinary; | ||
if (os.platform() === 'win32') { | ||
nativeBinary = __dirname + '/bin/win32/clang-format.exe'; | ||
} else { | ||
nativeBinary = __dirname + '/bin/' + os.platform() + "_" + os.arch() + '/clang-format'; | ||
} | ||
if (!fs.existsSync(nativeBinary)) { | ||
@@ -27,0 +31,0 @@ message = "FATAL: This module doesn't bundle the clang-format executable for your platform. " + |
{ | ||
"name": "clang-format", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "node wrapper around clang-format", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
48
5283135