@netlify/build 35.3.0 → 35.3.2
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.
- package/lib/log/stream.d.ts +1 -1
- package/lib/log/stream.js +9 -3
- package/package.json +6 -6
package/lib/log/stream.d.ts
CHANGED
|
@@ -16,6 +16,6 @@ export declare const handleBuildCommandOutput: ({ stdout: commandStdout, stderr:
|
|
|
16
16
|
stdout: string;
|
|
17
17
|
stderr: string;
|
|
18
18
|
}, logs: Logs) => void;
|
|
19
|
-
export declare const pipePluginOutput: (childProcess: ChildProcess, logs: Logs, standardStreams: StandardStreams) =>
|
|
19
|
+
export declare const pipePluginOutput: (childProcess: ChildProcess, logs: Logs, standardStreams: StandardStreams) => LogsListeners | undefined;
|
|
20
20
|
export declare const unpipePluginOutput: (childProcess: ChildProcess, logs: Logs, listeners: LogsListeners, standardStreams: StandardStreams) => Promise<void>;
|
|
21
21
|
export {};
|
package/lib/log/stream.js
CHANGED
|
@@ -24,12 +24,17 @@ const pushBuildCommandOutput = function (output, logsArray) {
|
|
|
24
24
|
}
|
|
25
25
|
logsArray.push(output);
|
|
26
26
|
};
|
|
27
|
+
const pipedPluginProcesses = new WeakMap();
|
|
27
28
|
// Start plugin step output
|
|
28
29
|
export const pipePluginOutput = function (childProcess, logs, standardStreams) {
|
|
29
|
-
if (
|
|
30
|
-
return
|
|
30
|
+
if (pipedPluginProcesses.has(childProcess)) {
|
|
31
|
+
return pipedPluginProcesses.get(childProcess);
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
+
const listeners = !logsAreBuffered(logs)
|
|
34
|
+
? streamOutput(childProcess, standardStreams)
|
|
35
|
+
: pushOutputToLogs(childProcess, logs, standardStreams.outputFlusher);
|
|
36
|
+
pipedPluginProcesses.set(childProcess, listeners);
|
|
37
|
+
return listeners;
|
|
33
38
|
};
|
|
34
39
|
// Stop streaming/buffering plugin step output
|
|
35
40
|
export const unpipePluginOutput = async function (childProcess, logs, listeners, standardStreams) {
|
|
@@ -39,6 +44,7 @@ export const unpipePluginOutput = async function (childProcess, logs, listeners,
|
|
|
39
44
|
return unstreamOutput(childProcess, standardStreams);
|
|
40
45
|
}
|
|
41
46
|
unpushOutputToLogs(childProcess, listeners.stdoutListener, listeners.stderrListener);
|
|
47
|
+
pipedPluginProcesses.delete(childProcess);
|
|
42
48
|
};
|
|
43
49
|
// Usually, we stream stdout/stderr because it is more efficient
|
|
44
50
|
const streamOutput = function (childProcess, standardStreams) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "35.3.
|
|
3
|
+
"version": "35.3.2",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
"@bugsnag/js": "^8.0.0",
|
|
70
70
|
"@netlify/blobs": "^10.3.1",
|
|
71
71
|
"@netlify/cache-utils": "^6.0.4",
|
|
72
|
-
"@netlify/config": "^24.0.
|
|
73
|
-
"@netlify/edge-bundler": "14.8.
|
|
74
|
-
"@netlify/functions-utils": "^6.2.
|
|
72
|
+
"@netlify/config": "^24.0.9",
|
|
73
|
+
"@netlify/edge-bundler": "14.8.6",
|
|
74
|
+
"@netlify/functions-utils": "^6.2.13",
|
|
75
75
|
"@netlify/git-utils": "^6.0.2",
|
|
76
76
|
"@netlify/opentelemetry-utils": "^2.0.1",
|
|
77
77
|
"@netlify/plugins-list": "^6.80.0",
|
|
78
78
|
"@netlify/run-utils": "^6.0.2",
|
|
79
|
-
"@netlify/zip-it-and-ship-it": "14.1.
|
|
79
|
+
"@netlify/zip-it-and-ship-it": "14.1.13",
|
|
80
80
|
"@sindresorhus/slugify": "^2.0.0",
|
|
81
81
|
"ansi-escapes": "^7.0.0",
|
|
82
82
|
"ansis": "^4.1.0",
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"engines": {
|
|
153
153
|
"node": ">=18.14.0"
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "f1cca80e2c1860d689cb366ea7c0220fbc1ee014"
|
|
156
156
|
}
|