@netlify/build 35.5.1 → 35.5.2

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
@@ -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,
@@ -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;
@@ -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.1",
3
+ "version": "35.5.2",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -152,5 +152,5 @@
152
152
  "engines": {
153
153
  "node": ">=18.14.0"
154
154
  },
155
- "gitHead": "53fb9a92fe3083c9a82c524291d162d257bc5cce"
155
+ "gitHead": "793ba2826bdf12a8a3ea4897d06de2db81cf4da0"
156
156
  }