@netlify/build 29.42.4 → 29.42.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,4 +38,4 @@ export declare const reduceLogLines: (lines: any) => any;
38
38
  * the user-facing build logs)
39
39
  */
40
40
  export declare const getSystemLogger: (logs: BufferedLogs | undefined, debug: boolean, systemLogFile?: number) => (...args: any[]) => void;
41
- export declare const addOutputGate: (logs: Logs, outputFlusher: OutputFlusher) => Logs;
41
+ export declare const addOutputFlusher: (logs: Logs, outputFlusher: OutputFlusher) => Logs;
package/lib/log/logger.js CHANGED
@@ -144,7 +144,7 @@ systemLogFile) {
144
144
  });
145
145
  return (...args) => fileDescriptor.write(`${reduceLogLines(args)}\n`);
146
146
  };
147
- export const addOutputGate = (logs, outputFlusher) => {
147
+ export const addOutputFlusher = (logs, outputFlusher) => {
148
148
  if (logsAreBuffered(logs)) {
149
149
  return {
150
150
  ...logs,
@@ -1,10 +1,10 @@
1
1
  import { setEnvChanges } from '../env/changes.js';
2
2
  import { addErrorInfo, isBuildError } from '../error/info.js';
3
- import { addOutputGate } from '../log/logger.js';
3
+ import { addOutputFlusher } from '../log/logger.js';
4
4
  import { updateNetlifyConfig, listConfigSideFiles } from './update_config.js';
5
5
  // Fire a core step
6
6
  export const fireCoreStep = async function ({ coreStep, coreStepId, coreStepName, configPath, outputConfigPath, buildDir, repositoryRoot, packagePath, constants, buildbotServerSocket, events, logs, quiet, nodePath, childEnv, context, branch, envChanges, errorParams, configOpts, netlifyConfig, configMutations, headersPath, redirectsPath, featureFlags, debug, systemLog, saveConfig, userNodeVersion, explicitSecretKeys, edgeFunctionsBootstrapURL, deployId, outputFlusher, }) {
7
- const logsA = addOutputGate(logs, outputFlusher);
7
+ const logsA = outputFlusher ? addOutputFlusher(logs, outputFlusher) : logs;
8
8
  try {
9
9
  const configSideFiles = await listConfigSideFiles([headersPath, redirectsPath]);
10
10
  const childEnvA = setEnvChanges(envChanges, { ...childEnv });
@@ -1,6 +1,6 @@
1
1
  import { context, propagation } from '@opentelemetry/api';
2
2
  import { addErrorInfo } from '../error/info.js';
3
- import { addOutputGate } from '../log/logger.js';
3
+ import { addOutputFlusher } from '../log/logger.js';
4
4
  import { logStepCompleted } from '../log/messages/ipc.js';
5
5
  import { pipePluginOutput, unpipePluginOutput } from '../log/stream.js';
6
6
  import { callChild } from '../plugins/ipc.js';
@@ -13,7 +13,7 @@ export const firePluginStep = async function ({ event, childProcess, packageName
13
13
  const listeners = pipePluginOutput(childProcess, logs, outputFlusher);
14
14
  const otelCarrier = {};
15
15
  propagation.inject(context.active(), otelCarrier);
16
- const logsA = addOutputGate(logs, outputFlusher);
16
+ const logsA = addOutputFlusher(logs, outputFlusher);
17
17
  try {
18
18
  const configSideFiles = await listConfigSideFiles([headersPath, redirectsPath]);
19
19
  const { newEnvChanges, configMutations: newConfigMutations, status, } = await callChild({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.42.4",
3
+ "version": "29.42.6",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -72,7 +72,7 @@
72
72
  "@netlify/cache-utils": "^5.1.5",
73
73
  "@netlify/config": "^20.12.6",
74
74
  "@netlify/edge-bundler": "12.0.1",
75
- "@netlify/framework-info": "^9.8.12",
75
+ "@netlify/framework-info": "^9.8.13",
76
76
  "@netlify/functions-utils": "^5.2.59",
77
77
  "@netlify/git-utils": "^5.1.1",
78
78
  "@netlify/opentelemetry-utils": "^1.2.1",
@@ -165,5 +165,5 @@
165
165
  "engines": {
166
166
  "node": "^14.16.0 || >=16.0.0"
167
167
  },
168
- "gitHead": "41ec9c9c843d62360892999558e36e170ff9484e"
168
+ "gitHead": "be380af1c62fd62a202bbca551a30f290b0d3f99"
169
169
  }