@netlify/build 29.42.5 → 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,4 +1,4 @@
1
- import { PackageJson } from 'read-pkg-up';
1
+ import { PackageJson } from 'read-package-up';
2
2
  import { FeatureFlags } from '../core/feature_flags.js';
3
3
  import { SystemLogger } from '../plugins_core/types.js';
4
4
  import { PluginVersion } from './list.js';
@@ -1,4 +1,4 @@
1
- import { PackageJson } from 'read-pkg-up';
1
+ import { PackageJson } from 'read-package-up';
2
2
  /**
3
3
  * Load plugin's `manifest.yml`
4
4
  */
@@ -1,4 +1,4 @@
1
- import { PackageJson } from 'read-pkg-up';
1
+ import { PackageJson } from 'read-package-up';
2
2
  export declare const getPluginsOptions: any;
3
3
  /**
4
4
  * Retrieve information about @netlify/build when an error happens there and not
@@ -1,4 +1,4 @@
1
- import { PackageJson } from 'read-pkg-up';
1
+ import { PackageJson } from 'read-package-up';
2
2
  import { type PluginVersion } from './list.js';
3
3
  type ConditionContext = {
4
4
  nodeVersion: string;
@@ -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({
@@ -1,4 +1,4 @@
1
- import type { PackageJson } from 'read-pkg-up';
1
+ import type { PackageJson } from 'read-package-up';
2
2
  export type RootPackageJson = {
3
3
  name: string;
4
4
  version: string;
@@ -1,4 +1,4 @@
1
- import { Options, PackageJson } from 'read-pkg-up';
1
+ import { Options, PackageJson } from 'read-package-up';
2
2
  type PackageResult = {
3
3
  packageJson: PackageJson;
4
4
  packageDir?: string;
@@ -1,5 +1,5 @@
1
1
  import { dirname } from 'path';
2
- import { readPackageUp } from 'read-pkg-up';
2
+ import { readPackageUp } from 'read-package-up';
3
3
  /**
4
4
  * Retrieve `package.json` from a specific directory
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.42.5",
3
+ "version": "29.42.6",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -111,7 +111,7 @@
111
111
  "pkg-dir": "^7.0.0",
112
112
  "pretty-ms": "^8.0.0",
113
113
  "ps-list": "^8.0.0",
114
- "read-pkg-up": "^9.1.0",
114
+ "read-package-up": "^11.0.0",
115
115
  "readdirp": "^3.4.0",
116
116
  "resolve": "^2.0.0-next.1",
117
117
  "rfdc": "^1.3.0",
@@ -165,5 +165,5 @@
165
165
  "engines": {
166
166
  "node": "^14.16.0 || >=16.0.0"
167
167
  },
168
- "gitHead": "9260347bbb405cdb44a5e52c3e619ab43f1354ac"
168
+ "gitHead": "be380af1c62fd62a202bbca551a30f290b0d3f99"
169
169
  }