@netlify/build 35.5.1 → 35.5.3
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 +2 -1
- package/lib/core/config.d.ts +3 -1
- package/lib/core/config.js +2 -1
- package/lib/log/messages/config.js +1 -0
- package/package.json +8 -8
package/lib/core/build.js
CHANGED
|
@@ -32,7 +32,7 @@ export const startBuild = function (flags) {
|
|
|
32
32
|
const errorMonitor = startErrorMonitor({ flags: { debug, systemLogFile, ...flagsA }, logs, bugsnagKey });
|
|
33
33
|
return { ...flagsA, debug, systemLogFile, errorMonitor, logs, timers };
|
|
34
34
|
};
|
|
35
|
-
const tExecBuild = async function ({ config, defaultConfig, cachedConfig, cachedConfigPath, outputConfigPath, cwd, packagePath, repositoryRoot, apiHost, token, siteId, accountId, context, branch, baseRelDir, env: envOpt, debug, systemLogFile, verbose, nodePath, functionsDistDir, edgeFunctionsDistDir, cacheDir, dry, mode, offline, deployId, buildId, testOpts, errorMonitor, errorParams, logs, timers, buildbotServerSocket, sendStatus, saveConfig, featureFlags, timeline, devCommand, quiet, explicitSecretKeys, enhancedSecretScan, edgeFunctionsBootstrapURL, eventHandlers, }) {
|
|
35
|
+
const tExecBuild = async function ({ config, defaultConfig, cachedConfig, cachedConfigPath, outputConfigPath, cwd, packagePath, repositoryRoot, apiHost, token, siteId, accountId, context, branch, baseRelDir, env: envOpt, debug, systemLogFile, verbose, nodePath, functionsDistDir, edgeFunctionsDistDir, cacheDir, dry, mode, offline, deployId, buildId, testOpts, errorMonitor, errorParams, logs, timers, buildbotServerSocket, sendStatus, saveConfig, featureFlags, timeline, devCommand, quiet, explicitSecretKeys, enhancedSecretScan, edgeFunctionsBootstrapURL, eventHandlers, skewProtectionToken, }) {
|
|
36
36
|
const configOpts = getConfigOpts({
|
|
37
37
|
config,
|
|
38
38
|
defaultConfig,
|
|
@@ -53,6 +53,7 @@ const tExecBuild = async function ({ config, defaultConfig, cachedConfig, cached
|
|
|
53
53
|
buildId,
|
|
54
54
|
testOpts,
|
|
55
55
|
featureFlags,
|
|
56
|
+
skewProtectionToken,
|
|
56
57
|
});
|
|
57
58
|
const { netlifyConfig, configPath, headersPath, redirectsPath, buildDir, repositoryRoot: repositoryRootA, packageJson, userNodeVersion, childEnv, context: contextA, branch: branchA, token: tokenA, api, siteInfo, timers: timersA, integrations, } = await loadConfig({
|
|
58
59
|
configOpts,
|
package/lib/core/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function getConfigOpts({ config, defaultConfig, cwd, repositoryRoot, packagePath, apiHost, token, siteId, accountId, context, branch, baseRelDir, envOpt, mode, offline, deployId, buildId, testOpts, featureFlags, }: {
|
|
1
|
+
export function getConfigOpts({ config, defaultConfig, cwd, repositoryRoot, packagePath, apiHost, token, siteId, accountId, context, branch, baseRelDir, envOpt, mode, offline, deployId, buildId, testOpts, featureFlags, skewProtectionToken, }: {
|
|
2
2
|
config: any;
|
|
3
3
|
defaultConfig: any;
|
|
4
4
|
cwd: any;
|
|
@@ -18,6 +18,7 @@ export function getConfigOpts({ config, defaultConfig, cwd, repositoryRoot, pack
|
|
|
18
18
|
buildId: any;
|
|
19
19
|
testOpts: any;
|
|
20
20
|
featureFlags: any;
|
|
21
|
+
skewProtectionToken: any;
|
|
21
22
|
}): {
|
|
22
23
|
config: any;
|
|
23
24
|
defaultConfig: any;
|
|
@@ -38,6 +39,7 @@ export function getConfigOpts({ config, defaultConfig, cwd, repositoryRoot, pack
|
|
|
38
39
|
env: any;
|
|
39
40
|
testOpts: any;
|
|
40
41
|
featureFlags: any;
|
|
42
|
+
skewProtectionToken: any;
|
|
41
43
|
};
|
|
42
44
|
export const loadConfig: ({ timers, ...opts }: {
|
|
43
45
|
[x: string]: any;
|
package/lib/core/config.js
CHANGED
|
@@ -14,7 +14,7 @@ import { getUserNodeVersion } from './user_node_version.js';
|
|
|
14
14
|
// the build
|
|
15
15
|
// - If plugins change the configuration, `configMutations` is used instead
|
|
16
16
|
// In both cases, almost all options should remain the same.
|
|
17
|
-
export const getConfigOpts = function ({ config, defaultConfig, cwd, repositoryRoot, packagePath, apiHost, token, siteId, accountId, context, branch, baseRelDir, envOpt, mode, offline, deployId, buildId, testOpts, featureFlags, }) {
|
|
17
|
+
export const getConfigOpts = function ({ config, defaultConfig, cwd, repositoryRoot, packagePath, apiHost, token, siteId, accountId, context, branch, baseRelDir, envOpt, mode, offline, deployId, buildId, testOpts, featureFlags, skewProtectionToken, }) {
|
|
18
18
|
return {
|
|
19
19
|
config,
|
|
20
20
|
defaultConfig,
|
|
@@ -35,6 +35,7 @@ export const getConfigOpts = function ({ config, defaultConfig, cwd, repositoryR
|
|
|
35
35
|
env: envOpt,
|
|
36
36
|
testOpts,
|
|
37
37
|
featureFlags,
|
|
38
|
+
skewProtectionToken,
|
|
38
39
|
};
|
|
39
40
|
};
|
|
40
41
|
// Retrieve configuration object
|
|
@@ -55,6 +55,7 @@ const INTERNAL_FLAGS = [
|
|
|
55
55
|
'edgeFunctionsBootstrapURL',
|
|
56
56
|
'eventHandlers',
|
|
57
57
|
'logger',
|
|
58
|
+
'skewProtectionToken',
|
|
58
59
|
];
|
|
59
60
|
const HIDDEN_FLAGS = [...SECURE_FLAGS, ...TEST_FLAGS, ...INTERNAL_FLAGS];
|
|
60
61
|
const HIDDEN_DEBUG_FLAGS = [...SECURE_FLAGS, ...TEST_FLAGS, 'eventHandlers', 'logger'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "35.5.
|
|
3
|
+
"version": "35.5.3",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -67,16 +67,16 @@
|
|
|
67
67
|
"license": "MIT",
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@bugsnag/js": "^8.0.0",
|
|
70
|
-
"@netlify/blobs": "^10.4.
|
|
70
|
+
"@netlify/blobs": "^10.4.2",
|
|
71
71
|
"@netlify/cache-utils": "^6.0.4",
|
|
72
|
-
"@netlify/config": "^24.1.
|
|
73
|
-
"@netlify/edge-bundler": "14.9.
|
|
74
|
-
"@netlify/functions-utils": "^6.2.
|
|
72
|
+
"@netlify/config": "^24.1.2",
|
|
73
|
+
"@netlify/edge-bundler": "14.9.1",
|
|
74
|
+
"@netlify/functions-utils": "^6.2.15",
|
|
75
75
|
"@netlify/git-utils": "^6.0.2",
|
|
76
76
|
"@netlify/opentelemetry-utils": "^2.0.1",
|
|
77
77
|
"@netlify/plugins-list": "^6.80.0",
|
|
78
78
|
"@netlify/run-utils": "^6.0.2",
|
|
79
|
-
"@netlify/zip-it-and-ship-it": "14.1.
|
|
79
|
+
"@netlify/zip-it-and-ship-it": "14.1.15",
|
|
80
80
|
"@sindresorhus/slugify": "^2.0.0",
|
|
81
81
|
"ansi-escapes": "^7.0.0",
|
|
82
82
|
"ansis": "^4.1.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"fdir": "^6.0.1",
|
|
86
86
|
"figures": "^6.0.0",
|
|
87
87
|
"filter-obj": "^6.0.0",
|
|
88
|
-
"hot-shots": "11.
|
|
88
|
+
"hot-shots": "11.3.0",
|
|
89
89
|
"indent-string": "^5.0.0",
|
|
90
90
|
"is-plain-obj": "^4.0.0",
|
|
91
91
|
"keep-func-props": "^6.0.0",
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"engines": {
|
|
153
153
|
"node": ">=18.14.0"
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "04af6b53e84241973f1c12296de64a4bb632a567"
|
|
156
156
|
}
|