@netlify/build 27.10.0 → 27.11.0
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.11.0",
|
|
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
|
}
|
|
@@ -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,7 +57,7 @@ const coreStep = async function ({
|
|
|
57
57
|
distImportMapPath,
|
|
58
58
|
featureFlags,
|
|
59
59
|
importMaps: [importMap].filter(Boolean),
|
|
60
|
-
systemLogger: systemLog,
|
|
60
|
+
systemLogger: featureFlags.edge_functions_system_logger ? systemLog : undefined,
|
|
61
61
|
})
|
|
62
62
|
|
|
63
63
|
systemLog('Edge Functions manifest:', manifest)
|