Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

windows-build-tools

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windows-build-tools - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

6

lib/install/index.js

@@ -15,3 +15,3 @@ 'use strict';

var _require3 = require('../utils/single-line-log'),
singleLineLog = _require3.singleLineLog;
createSingleLineLogger = _require3.createSingleLineLogger;

@@ -60,6 +60,6 @@ var _require4 = require('../logging'),

log('Status from the installers:');
var singleLineLogger = singleLineLog();
var singleLineLogger = createSingleLineLogger();
lastLinesInterval = setInterval(function () {
var updatedLog = ['Visual Studio Build Tools:'].concat(_toConsumableArray(vccLastLines), ['Python 2:'], _toConsumableArray(pythonLastLines));
singleLineLogger.write(updatedLog.join('\n'));
singleLineLogger(updatedLog.join('\n'));
}, 2500);

@@ -66,0 +66,0 @@ }

@@ -8,6 +8,5 @@ 'use strict';

var CLEAR_LINE = Buffer.from('1b5b304b', 'hex').toString();
var stream = process.stdout;
function singleLineLog() {
var stream = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : process.stdout;
function createSingleLineLogger() {
var write = stream.write;

@@ -21,7 +20,5 @@ var str = void 0;

if (stream === process.stderr || stream === process.stdout) {
process.on('exit', function () {
if (str !== null) stream.write('');
});
}
process.on('exit', function () {
if (str !== null) stream.write('');
});

@@ -58,2 +55,2 @@ var prevLineCount = 0;

module.exports = { singleLineLog: singleLineLog };
module.exports = { createSingleLineLogger: createSingleLineLogger };
{
"name": "windows-build-tools",
"version": "2.1.2",
"version": "2.1.3",
"description": "Install C++ Build Tools for Windows using npm",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -8,3 +8,3 @@ 'use strict'

const { getWorkDirectory } = require('../utils/get-work-dir')
const { singleLineLog } = require('../utils/single-line-log')
const { createSingleLineLogger } = require('../utils/single-line-log')
const { log } = require('../logging')

@@ -50,6 +50,6 @@ const launchInstaller = require('./launch')

log('Status from the installers:')
const singleLineLogger = singleLineLog()
const singleLineLogger = createSingleLineLogger()
lastLinesInterval = setInterval(() => {
const updatedLog = [ 'Visual Studio Build Tools:', ...vccLastLines, 'Python 2:', ...pythonLastLines ]
singleLineLogger.write(updatedLog.join('\n'))
singleLineLogger(updatedLog.join('\n'))
}, 2500)

@@ -56,0 +56,0 @@ }

@@ -8,4 +8,5 @@ 'use strict'

const CLEAR_LINE = Buffer.from('1b5b304b', 'hex').toString()
const stream = process.stdout
function singleLineLog (stream = process.stdout) {
function createSingleLineLogger () {
const write = stream.write

@@ -19,7 +20,5 @@ let str

if (stream === process.stderr || stream === process.stdout) {
process.on('exit', () => {
if (str !== null) stream.write('')
})
}
process.on('exit', () => {
if (str !== null) stream.write('')
})

@@ -56,2 +55,2 @@ let prevLineCount = 0

module.exports = { singleLineLog }
module.exports = { createSingleLineLogger }
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc