@apphosting/common
Advanced tools
Comparing version 0.0.1 to 0.0.2-canary.854589c
@@ -16,14 +16,19 @@ "use strict"; | ||
}); | ||
let buildOutput = ""; | ||
let stdout = ""; | ||
let stderr = ""; | ||
child.stdout.on("data", (data) => { | ||
buildOutput += data.toString(); | ||
stdout += data.toString(); | ||
}); | ||
child.stderr.on("data", (data) => { | ||
stderr += data.toString(); | ||
}); | ||
// Re-connect the child process's stdout and stderr to the console so that | ||
// build messages and errors are still logged in Cloud Build. | ||
child.stdout.pipe(process.stdout); | ||
child.stderr.pipe(process.stderr); | ||
child.on("exit", (code) => { | ||
if (code !== 0) { | ||
reject(new Error(`Process exited with error code ${code}. Output: ${buildOutput}`)); | ||
reject(new Error(`Build process exited with error code ${code}.`)); | ||
} | ||
if (!buildOutput) { | ||
reject(new Error("Unable to locate build manifest with output paths.")); | ||
} | ||
resolve({ stdout: buildOutput }); | ||
resolve({ stdout: stdout, stderr: stderr }); | ||
}); | ||
@@ -30,0 +35,0 @@ }); |
{ | ||
"name": "@apphosting/common", | ||
"version": "0.0.1", | ||
"version": "0.0.2-canary.854589c", | ||
"description": "Shared library code for App Hosting framework adapters", | ||
@@ -5,0 +5,0 @@ "author": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3457
67
1