Socket
Socket
Sign inDemoInstall

prebuild-install

Package Overview
Dependencies
12
Maintainers
6
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.1.0 to 7.1.1

10

CHANGELOG.md
# Changelog
## [7.1.1] - 2022-06-07
### Changed
- Replace use of npmlog dependency with console.error ([#182](https://github.com/prebuild/prebuild-install/issues/182)) ([`4e2284c`](https://github.com/prebuild/prebuild-install/commit/4e2284c)) (Lovell Fuller).
- Ensure script output can be captured by tests ([#181](https://github.com/prebuild/prebuild-install/issues/181)) ([`d1853cb`](https://github.com/prebuild/prebuild-install/commit/d1853cb)) (Lovell Fuller).
## [7.1.0] - 2022-04-20

@@ -86,2 +94,4 @@

[7.1.1]: https://github.com/prebuild/prebuild-install/releases/tag/v7.1.1
[7.1.0]: https://github.com/prebuild/prebuild-install/releases/tag/v7.1.0

@@ -88,0 +98,0 @@

44

log.js

@@ -1,25 +0,33 @@

const log = require('npmlog')
const fs = require('fs')
const path = require('path')
const levels = {
silent: 0,
error: 1,
warn: 2,
notice: 3,
http: 4,
timing: 5,
info: 6,
verbose: 7,
silly: 8
}
module.exports = function (rc, env) {
log.heading = 'prebuild-install'
const level = rc.verbose
? 'verbose'
: env.npm_config_loglevel || 'notice'
if (rc.verbose) {
log.level = 'verbose'
} else {
log.level = env.npm_config_loglevel || 'notice'
const logAtLevel = function (messageLevel) {
return function (...args) {
if (levels[messageLevel] <= levels[level]) {
console.error(`prebuild-install ${messageLevel} ${args.join(' ')}`)
}
}
}
// Temporary workaround for npm 7 which swallows our output
if (process.env.npm_config_prebuild_install_logfile) {
const fp = path.resolve(process.env.npm_config_prebuild_install_logfile)
log.on('log', function (msg) {
// Only for tests, don't care about performance
fs.appendFileSync(fp, [log.heading, msg.level, msg.prefix, msg.message].join(' ') + '\n')
})
return {
error: logAtLevel('error'),
warn: logAtLevel('warn'),
http: logAtLevel('http'),
info: logAtLevel('info'),
level
}
return log
}
{
"name": "prebuild-install",
"version": "7.1.0",
"version": "7.1.1",
"description": "A command line tool to easily install prebuilt binaries for multiple version of node/iojs on a specific platform",

@@ -29,3 +29,2 @@ "scripts": {

"node-abi": "^3.3.0",
"npmlog": "^4.0.1",
"pump": "^3.0.0",

@@ -32,0 +31,0 @@ "rc": "^1.2.7",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc