mirror of
https://github.com/nodejs/node.git
synced 2025-05-17 10:27:12 +00:00

PR-URL: https://github.com/nodejs/node/pull/35474 Reviewed-By: Ruy Adorno <ruyadorno@github.com> Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org> Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
23 lines
488 B
JavaScript
23 lines
488 B
JavaScript
const pkg = require('./package.json')
|
|
const ciDetect = require('@npmcli/ci-detect')
|
|
module.exports = {
|
|
isFromCI: ciDetect(),
|
|
log: require('./silentlog.js'),
|
|
maxSockets: 12,
|
|
method: 'GET',
|
|
registry: 'https://registry.npmjs.org/',
|
|
timeout: 5 * 60 * 1000, // 5 minutes
|
|
strictSSL: true,
|
|
noProxy: process.env.NOPROXY,
|
|
userAgent: `${pkg.name
|
|
}@${
|
|
pkg.version
|
|
}/node@${
|
|
process.version
|
|
}+${
|
|
process.arch
|
|
} (${
|
|
process.platform
|
|
})`
|
|
}
|