@netlify/build 29.39.2 → 29.41.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/lib/core/build.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { supportedRuntimes } from '@netlify/framework-info';
|
|
2
|
+
import { addAttributesToActiveSpan } from '@netlify/opentelemetry-utils';
|
|
2
3
|
import { getErrorInfo } from '../error/info.js';
|
|
3
4
|
import { startErrorMonitor } from '../error/monitor/start.js';
|
|
4
5
|
import { getBufferLogs, getSystemLogger } from '../log/logger.js';
|
|
@@ -276,6 +277,15 @@ const initAndRunBuild = async function ({ pluginsOptions, netlifyConfig, configO
|
|
|
276
277
|
context,
|
|
277
278
|
systemLog,
|
|
278
279
|
});
|
|
280
|
+
if (pluginsOptionsA?.length) {
|
|
281
|
+
const buildPlugins = {};
|
|
282
|
+
for (const plugin of pluginsOptionsA) {
|
|
283
|
+
if (plugin?.pluginPackageJson?.name) {
|
|
284
|
+
buildPlugins[`build.plugins['${plugin.pluginPackageJson.name}']`] = plugin?.pluginPackageJson?.version ?? 'N/A';
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
addAttributesToActiveSpan(buildPlugins);
|
|
288
|
+
}
|
|
279
289
|
errorParams.pluginsOptions = pluginsOptionsA;
|
|
280
290
|
const { childProcesses, timers: timersB } = await startPlugins({
|
|
281
291
|
pluginsOptions: pluginsOptionsA,
|
|
@@ -2,6 +2,7 @@ import { createReadStream, promises as fs, existsSync } from 'node:fs';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { createInterface } from 'node:readline';
|
|
4
4
|
import { fdir } from 'fdir';
|
|
5
|
+
import { minimatch } from 'minimatch';
|
|
5
6
|
/**
|
|
6
7
|
* Determine if the user disabled scanning via env var
|
|
7
8
|
* @param env current envars
|
|
@@ -101,7 +102,12 @@ export async function getFilePathsToScan({ env, base }) {
|
|
|
101
102
|
return files;
|
|
102
103
|
}
|
|
103
104
|
// omit paths are relative path substrings.
|
|
104
|
-
const omitPathMatches = (relativePath, omitPaths) =>
|
|
105
|
+
const omitPathMatches = (relativePath, omitPaths) => {
|
|
106
|
+
return omitPaths.some((oPath) => {
|
|
107
|
+
// check if the substring matches or glob pattern
|
|
108
|
+
return relativePath.startsWith(oPath) || minimatch(relativePath, oPath, { dot: true });
|
|
109
|
+
});
|
|
110
|
+
};
|
|
105
111
|
/**
|
|
106
112
|
* Given the env vars, the current keys, paths, etc. Look across the provided files to find the values
|
|
107
113
|
* of the secrets based on the keys provided. It will process files separately in different read streams.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.
|
|
3
|
+
"version": "29.41.0",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"@bugsnag/js": "^7.0.0",
|
|
71
71
|
"@netlify/blobs": "^7.3.0",
|
|
72
72
|
"@netlify/cache-utils": "^5.1.5",
|
|
73
|
-
"@netlify/config": "^20.12.
|
|
74
|
-
"@netlify/edge-bundler": "
|
|
73
|
+
"@netlify/config": "^20.12.2",
|
|
74
|
+
"@netlify/edge-bundler": "12.0.0",
|
|
75
75
|
"@netlify/framework-info": "^9.8.11",
|
|
76
76
|
"@netlify/functions-utils": "^5.2.54",
|
|
77
77
|
"@netlify/git-utils": "^5.1.1",
|
|
78
|
-
"@netlify/opentelemetry-utils": "^1.
|
|
78
|
+
"@netlify/opentelemetry-utils": "^1.2.0",
|
|
79
79
|
"@netlify/plugins-list": "^6.77.0",
|
|
80
80
|
"@netlify/run-utils": "^5.1.1",
|
|
81
81
|
"@netlify/zip-it-and-ship-it": "9.31.3",
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
"log-process-errors": "^8.0.0",
|
|
98
98
|
"map-obj": "^5.0.0",
|
|
99
99
|
"memoize-one": "^6.0.0",
|
|
100
|
+
"minimatch": "^9.0.4",
|
|
100
101
|
"node-fetch": "^3.3.2",
|
|
101
102
|
"os-name": "^5.0.0",
|
|
102
103
|
"p-event": "^5.0.0",
|
|
@@ -164,5 +165,5 @@
|
|
|
164
165
|
"engines": {
|
|
165
166
|
"node": "^14.16.0 || >=16.0.0"
|
|
166
167
|
},
|
|
167
|
-
"gitHead": "
|
|
168
|
+
"gitHead": "cf765526c7970810cc1812ac0b2b3d9bb11ea926"
|
|
168
169
|
}
|