@netlify/build 29.22.0 → 29.22.1
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/logger.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const logErrorHeader: (logs: BufferedLogs | undefined, string: st
|
|
|
25
25
|
export declare const logSubHeader: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
|
|
26
26
|
export declare const logErrorSubHeader: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
|
|
27
27
|
export declare const logWarningSubHeader: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
|
|
28
|
+
export declare const reduceLogLines: (lines: any) => any;
|
|
28
29
|
/**
|
|
29
30
|
* Builds a function for logging data to the system logger (i.e. hidden from
|
|
30
31
|
* the user-facing build logs)
|
package/lib/log/logger.js
CHANGED
|
@@ -91,7 +91,7 @@ export const logWarningSubHeader = function (logs, string, opts = {}) {
|
|
|
91
91
|
};
|
|
92
92
|
// Combines an array of elements into a single string, separated by a space,
|
|
93
93
|
// and with basic serialization of non-string types
|
|
94
|
-
const reduceLogLines = function (lines) {
|
|
94
|
+
export const reduceLogLines = function (lines) {
|
|
95
95
|
return lines
|
|
96
96
|
.map((input) => {
|
|
97
97
|
if (input instanceof Error) {
|
|
@@ -2,6 +2,7 @@ import { promises as fs } from 'fs';
|
|
|
2
2
|
import { dirname, join, resolve } from 'path';
|
|
3
3
|
import { bundle, find } from '@netlify/edge-bundler';
|
|
4
4
|
import { pathExists } from 'path-exists';
|
|
5
|
+
import { log, reduceLogLines } from '../../log/logger.js';
|
|
5
6
|
import { logFunctionsToBundle } from '../../log/messages/core_steps.js';
|
|
6
7
|
import { tagBundlingError } from './lib/error.js';
|
|
7
8
|
import { validateEdgeFunctionsManifest } from './validate_manifest/validate_edge_functions_manifest.js';
|
|
@@ -40,6 +41,7 @@ const coreStep = async function ({ buildDir, constants: { EDGE_FUNCTIONS_DIST: d
|
|
|
40
41
|
distImportMapPath,
|
|
41
42
|
featureFlags,
|
|
42
43
|
importMapPaths: [userDefinedImportMap],
|
|
44
|
+
userLogger: (...args) => log(logs, reduceLogLines(args)),
|
|
43
45
|
systemLogger: featureFlags.edge_functions_system_logger ? systemLog : undefined,
|
|
44
46
|
internalSrcFolder: internalSrcPath,
|
|
45
47
|
bootstrapURL: edgeFunctionsBootstrapURL,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.22.
|
|
3
|
+
"version": "29.22.1",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@honeycombio/opentelemetry-node": "^0.5.0",
|
|
69
69
|
"@netlify/cache-utils": "^5.1.5",
|
|
70
70
|
"@netlify/config": "^20.9.0",
|
|
71
|
-
"@netlify/edge-bundler": "
|
|
71
|
+
"@netlify/edge-bundler": "9.2.0",
|
|
72
72
|
"@netlify/framework-info": "^9.8.10",
|
|
73
73
|
"@netlify/functions-utils": "^5.2.30",
|
|
74
74
|
"@netlify/git-utils": "^5.1.1",
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"engines": {
|
|
146
146
|
"node": "^14.16.0 || >=16.0.0"
|
|
147
147
|
},
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "fd6eae5bcec2dca540587be16e9bc84a58830dcf"
|
|
149
149
|
}
|