@netlify/build 27.9.1 → 27.12.0-beta
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.12.0-beta",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./src/core/main.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@bugsnag/js": "^7.0.0",
|
|
59
|
-
"@netlify/edge-bundler": "^1.
|
|
59
|
+
"@netlify/edge-bundler": "^1.10.0",
|
|
60
60
|
"@netlify/cache-utils": "^4.0.0",
|
|
61
61
|
"@netlify/config": "^18.1.2",
|
|
62
62
|
"@netlify/functions-utils": "^4.2.2",
|
package/src/log/logger.js
CHANGED
|
@@ -113,11 +113,21 @@ export const logWarningSubHeader = function (logs, string, opts) {
|
|
|
113
113
|
const reduceLogLines = function (lines) {
|
|
114
114
|
return lines
|
|
115
115
|
.map((input) => {
|
|
116
|
+
if (input instanceof Error) {
|
|
117
|
+
return `${input.message} ${input.stack}`
|
|
118
|
+
}
|
|
119
|
+
|
|
116
120
|
if (typeof input === 'object') {
|
|
117
|
-
|
|
121
|
+
try {
|
|
122
|
+
return JSON.stringify(input)
|
|
123
|
+
} catch {
|
|
124
|
+
// Value could not be serialized to JSON, so we return the string
|
|
125
|
+
// representation.
|
|
126
|
+
return String(input)
|
|
127
|
+
}
|
|
118
128
|
}
|
|
119
129
|
|
|
120
|
-
return input
|
|
130
|
+
return String(input)
|
|
121
131
|
})
|
|
122
132
|
.join(' ')
|
|
123
133
|
}
|
|
@@ -147,5 +157,5 @@ export const getSystemLogger = function (logs, debug, systemLogFile) {
|
|
|
147
157
|
logError(logs, 'Could not write to system log file')
|
|
148
158
|
})
|
|
149
159
|
|
|
150
|
-
return (...args) => fileDescriptor.write(reduceLogLines(args))
|
|
160
|
+
return (...args) => fileDescriptor.write(`${reduceLogLines(args)}\n`)
|
|
151
161
|
}
|
|
@@ -14,7 +14,7 @@ import { validateEdgeFunctionsManifest } from './validate_manifest/validate_edge
|
|
|
14
14
|
const DENO_CLI_CACHE_DIRECTORY = '.netlify/plugins/deno-cli'
|
|
15
15
|
const IMPORT_MAP_FILENAME = 'edge-functions-import-map.json'
|
|
16
16
|
|
|
17
|
-
// eslint-disable-next-line max-statements
|
|
17
|
+
// eslint-disable-next-line complexity, max-statements
|
|
18
18
|
const coreStep = async function ({
|
|
19
19
|
buildDir,
|
|
20
20
|
constants: {
|
|
@@ -57,6 +57,7 @@ const coreStep = async function ({
|
|
|
57
57
|
distImportMapPath,
|
|
58
58
|
featureFlags,
|
|
59
59
|
importMaps: [importMap].filter(Boolean),
|
|
60
|
+
systemLogger: featureFlags.edge_functions_system_logger ? systemLog : undefined,
|
|
60
61
|
})
|
|
61
62
|
|
|
62
63
|
systemLog('Edge Functions manifest:', manifest)
|