Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions cli/lib/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,6 @@ class Npm extends EventEmitter {
// output to stdout in a progress bar compatible way
output (...msg) {
log.clearProgress()
// eslint-disable-next-line no-console
console.log(...msg)
log.showProgress()
}

Expand Down
7 changes: 0 additions & 7 deletions cli/node_modules/@colors/colors/lib/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ function applyStyle() {

colors.setTheme = function(theme) {
if (typeof theme === 'string') {
console.log('colors.setTheme now only accepts an object, not a string. ' +
'If you are trying to set a theme from a file, it is now your (the ' +
'caller\'s) responsibility to require the file. The old syntax ' +
'looked like colors.setTheme(__dirname + ' +
'\'/../themes/generic-logging.js\'); The new syntax looks like '+
'colors.setTheme(require(__dirname + ' +
'\'/../themes/generic-logging.js\'));');
return;
}
for (var style in theme) {
Expand Down
13 changes: 1 addition & 12 deletions cli/node_modules/@colors/colors/lib/extendStringPrototype.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ module['exports'] = function() {
];

Object.keys(theme).forEach(function(prop) {
if (stringPrototypeBlacklist.indexOf(prop) !== -1) {
console.log('warn: '.red + ('String.prototype' + prop).magenta +
' is probably something you don\'t want to override. ' +
'Ignoring style name');
} else {
if (stringPrototypeBlacklist.indexOf(prop) !== -1) {} else {
if (typeof(theme[prop]) === 'string') {
colors[prop] = colors[theme[prop]];
addProperty(prop, function() {
Expand All @@ -95,13 +91,6 @@ module['exports'] = function() {

colors.setTheme = function(theme) {
if (typeof theme === 'string') {
console.log('colors.setTheme now only accepts an object, not a string. ' +
'If you are trying to set a theme from a file, it is now your (the ' +
'caller\'s) responsibility to require the file. The old syntax ' +
'looked like colors.setTheme(__dirname + ' +
'\'/../themes/generic-logging.js\'); The new syntax looks like '+
'colors.setTheme(require(__dirname + ' +
'\'/../themes/generic-logging.js\'));');
return;
} else {
applyTheme(theme);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ Options:
(match = arg.match(/^-d([0-9]+|Infinity)/))) {
options.depth = +match[1]
} else if (arg === '-h' || arg === '--help') {
console.log(usage)
process.exit(0)
} else {
options.path = arg
Expand All @@ -232,7 +231,7 @@ Options:
}
const cwd = process.cwd()
module.exports(options)
.then(list => list.sort().forEach(p => console.log(relative(cwd, p))))
.then(list => list.sort().forEach(p => {}))
.catch(/* istanbul ignore next - pretty unusual */ er => {
console.error(er)
process.exit(1)
Expand Down
9 changes: 3 additions & 6 deletions cli/node_modules/@npmcli/run-script/lib/run-script-pkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,18 @@ const runScriptPkg = async options => {
!scripts.install &&
!scripts.preinstall &&
gypfile !== false &&
await isNodeGypPackage(path)
(await isNodeGypPackage(path))
) {
cmd = defaultGypInstallScript
} else if (event === 'start' && await isServerPackage(path)) {
} else if (event === 'start' && (await isServerPackage(path))) {
cmd = 'node server.js'
}

if (!cmd) {
return { code: 0, signal: null }
}

if (stdio === 'inherit' && banner !== false) {
// we're dumping to the parent's stdout, so print the banner
console.log(bruce(pkg._id, event, cmd, args))
}
if (stdio === 'inherit' && banner !== false) {}

const [spawnShell, spawnArgs, spawnOpts] = makeSpawnArgs({
event,
Expand Down
9 changes: 2 additions & 7 deletions cli/node_modules/init-package-json/lib/init-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,23 +117,18 @@ function init (dir, input, config, cb) {
var stringified = JSON.stringify(updateDeps(pkgWithExtras), null, 2) + '\n'
function write (writeYes) {
fs.writeFile(packageFile, stringified, 'utf8', function (writeFileErr) {
if (!writeFileErr && writeYes && !config.get('silent')) {
console.log('Wrote to %s:\n\n%s\n', packageFile, stringified)
}
if (!writeFileErr && writeYes && !config.get('silent')) {}
return cb(writeFileErr, pkgWithExtras)
})
}
if (ctx.yes) {
return write(true)
}
console.log('About to write to %s:\n\n%s\n', packageFile, stringified)
read({ prompt: 'Is this OK? ', default: 'yes' }, function (promptErr, ok) {
if (promptErr) {
return cb(promptErr)
}
if (!ok || ok.toLowerCase().charAt(0) !== 'y') {
console.log('Aborted.')
} else {
if (!ok || ok.toLowerCase().charAt(0) !== 'y') {} else {
return write()
}
})
Expand Down
8 changes: 3 additions & 5 deletions cli/node_modules/pacote/lib/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ const pretty = (conf, result) =>
let addedLogListener = false
const main = args => {
const conf = parse(args)
if (conf.help || conf.h) {
return console.log(usage())
}
if (conf.help || conf.h) {}

if (!addedLogListener) {
process.on('log', console.error)
Expand All @@ -99,11 +97,11 @@ const main = args => {

try {
return run(conf)
.then(result => result && console.log(pretty(conf, result)))
.then(result => {})
.catch(er => {
console.error(er)
process.exit(1)
})
});
} catch (er) {
console.error(er.message)
console.error(usage())
Expand Down
6 changes: 4 additions & 2 deletions cli/node_modules/qrcode-terminal/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ module.exports = {
output += border;
}

if (cb) cb(output);
else console.log(output);
if (cb)
cb(output);
else
{}
},

setErrorLevel: function (error) {
Expand Down
2 changes: 0 additions & 2 deletions cli/node_modules/retry/lib/retry_operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,10 @@ RetryOperation.prototype.attempt = function(fn, timeoutOps) {
};

RetryOperation.prototype.try = function(fn) {
console.log('Using RetryOperation.try() is deprecated');
this.attempt(fn);
};

RetryOperation.prototype.start = function(fn) {
console.log('Using RetryOperation.start() is deprecated');
this.attempt(fn);
};

Expand Down
2 changes: 0 additions & 2 deletions deps/npm/lib/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,6 @@ class Npm extends EventEmitter {
// output to stdout in a progress bar compatible way
output (...msg) {
log.clearProgress()
// eslint-disable-next-line no-console
console.log(...msg)
log.showProgress()
}

Expand Down
7 changes: 0 additions & 7 deletions deps/npm/node_modules/@colors/colors/lib/colors.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions deps/npm/node_modules/pacote/lib/bin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions deps/npm/node_modules/qrcode-terminal/lib/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions deps/npm/node_modules/retry/lib/retry_operation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions lib/internal/main/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ if (process.env.NODE_REPL_EXTERNAL_MODULE) {

const esmLoader = require('internal/process/esm_loader');
esmLoader.loadESM(() => {
console.log(`Welcome to Node.js ${process.version}.\n` +
'Type ".help" for more information.');

const cliRepl = require('internal/repl');
cliRepl.createInternalRepl(process.env, (err, repl) => {
if (err) {
Expand Down
3 changes: 2 additions & 1 deletion lib/internal/v8_prof_polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ let line = '';

{
const message = versionCheck(peekline(), process.versions.v8);
if (message) console.log(message);
if (message)
{}
}

function peekline() {
Expand Down
1 change: 0 additions & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ function log(...args) {
if (!console) {
console = require('internal/console/global');
}
console.log('%s - %s', timestamp(), format(...args));
}

/**
Expand Down
Loading