@netlify/config
Advanced tools
Comparing version 20.12.5 to 20.12.6
@@ -8,2 +8,4 @@ import process from 'process'; | ||
export const parseFlags = function () { | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore: `yargs` types are incorrect | ||
const { featureFlags: cliFeatureFlags = '', ...flags } = yargs(hideBin(process.argv)) | ||
@@ -10,0 +12,0 @@ .options(FLAGS) |
import figures from 'figures'; | ||
import { serializeObject } from './serialize.js'; | ||
import { THEME } from './theme.js'; | ||
export const logsAreBuffered = (logs) => { | ||
return logs !== undefined && 'stdout' in logs; | ||
}; | ||
// When the `buffer` option is true, we return logs instead of printing them | ||
@@ -17,3 +20,6 @@ // on the console. The logs are accumulated in a `logs` array variable. | ||
const stringB = color === undefined ? stringA : color(stringA); | ||
if (logs !== undefined) { | ||
if (logs && logs.outputFlusher) { | ||
logs.outputFlusher.flush(); | ||
} | ||
if (logsAreBuffered(logs)) { | ||
// `logs` is a stateful variable | ||
@@ -20,0 +26,0 @@ logs.stderr.push(stringB); |
{ | ||
"name": "@netlify/config", | ||
"version": "20.12.5", | ||
"version": "20.12.6", | ||
"description": "Netlify config module", | ||
@@ -97,3 +97,3 @@ "type": "module", | ||
}, | ||
"gitHead": "da347f8eeb873ba73faee6cfc99980eafdfedf5c" | ||
"gitHead": "cb01c052b7d990ee7d1dffa03afbae70f2cfd71d" | ||
} |
134849
2965