clang-format
Advanced tools
Comparing version 1.0.23 to 1.0.24
13
index.js
#!/usr/bin/env node | ||
'use strict'; | ||
var fs = require('fs'); | ||
@@ -8,2 +10,5 @@ var os = require('os'); | ||
var VERSION = require('./package.json').version; | ||
var LOCATION = __filename; | ||
/** | ||
@@ -32,3 +37,3 @@ * Start a child process running the native clang-format binary. | ||
// minimist & Co don't support single dash args, which we need to match binary clang-format. | ||
console.log('clang-format NPM version', exports.version, 'at', exports.location); | ||
console.log('clang-format NPM version', VERSION, 'at', LOCATION); | ||
process.exit(0); | ||
@@ -65,3 +70,3 @@ } | ||
try { | ||
exports.clangFormatLocation = resolve('clang-format', {basedir: basedir}); | ||
clangFormatLocation = resolve('clang-format', {basedir: basedir}); | ||
resolvedClangFormat = require(clangFormatLocation); | ||
@@ -90,6 +95,6 @@ } catch (e) { | ||
module.exports = clangFormat; | ||
module.exports.version = require('./package.json').version; | ||
module.exports.location = __filename; | ||
module.exports.version = VERSION; | ||
module.exports.location = LOCATION; | ||
module.exports.spawnClangFormat = spawnClangFormat; | ||
if (require.main === module) main(); |
{ | ||
"name": "clang-format", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"description": "node wrapper around clang-format", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -12,4 +12,4 @@ { | ||
"devDependencies": { | ||
"clang-format": ">=1.0.22" | ||
"clang-format": "1.0.22" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
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
4891790
90