@netlify/build 29.20.5 → 29.20.7

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.
Files changed (155) hide show
  1. package/lib/core/bin.d.ts +2 -0
  2. package/lib/core/bin.js +2 -2
  3. package/lib/core/build.d.ts +84 -0
  4. package/lib/core/config.d.ts +65 -0
  5. package/lib/core/constants.d.ts +26 -0
  6. package/lib/core/dev.d.ts +18 -0
  7. package/lib/core/dry.d.ts +8 -0
  8. package/lib/core/feature_flags.d.ts +3 -0
  9. package/lib/core/flags.d.ts +230 -0
  10. package/lib/core/lingering.d.ts +7 -0
  11. package/lib/core/main.d.ts +14 -0
  12. package/lib/core/main.js +1 -3
  13. package/lib/core/missing_side_file.d.ts +9 -0
  14. package/lib/core/normalize_flags.d.ts +38 -0
  15. package/lib/core/report_metrics.d.ts +12 -0
  16. package/lib/core/severity.d.ts +38 -0
  17. package/lib/core/types.d.ts +83 -0
  18. package/lib/core/user_node_version.d.ts +1 -0
  19. package/lib/env/changes.d.ts +6 -0
  20. package/lib/env/main.d.ts +4 -0
  21. package/lib/env/metadata.d.ts +1 -0
  22. package/lib/error/api.d.ts +1 -0
  23. package/lib/error/build.d.ts +7 -0
  24. package/lib/error/cancel.d.ts +4 -0
  25. package/lib/error/colors.d.ts +1 -0
  26. package/lib/error/handle.d.ts +17 -0
  27. package/lib/error/info.d.ts +6 -0
  28. package/lib/error/monitor/location.d.ts +1 -0
  29. package/lib/error/monitor/normalize.d.ts +1 -0
  30. package/lib/error/monitor/print.d.ts +22 -0
  31. package/lib/error/monitor/report.d.ts +7 -0
  32. package/lib/error/monitor/start.d.ts +7 -0
  33. package/lib/error/parse/clean_stack.d.ts +5 -0
  34. package/lib/error/parse/location.d.ts +5 -0
  35. package/lib/error/parse/normalize.d.ts +1 -0
  36. package/lib/error/parse/parse.d.ts +39 -0
  37. package/lib/error/parse/plugin.d.ts +9 -0
  38. package/lib/error/parse/properties.d.ts +5 -0
  39. package/lib/error/parse/serialize_log.d.ts +14 -0
  40. package/lib/error/parse/serialize_status.d.ts +16 -0
  41. package/lib/error/parse/stack.d.ts +11 -0
  42. package/lib/error/report.d.ts +6 -0
  43. package/lib/error/type.d.ts +3 -0
  44. package/lib/index.d.ts +5 -0
  45. package/lib/index.js +6 -0
  46. package/lib/install/functions.d.ts +1 -0
  47. package/lib/install/local.d.ts +8 -0
  48. package/lib/install/main.d.ts +9 -0
  49. package/lib/install/missing.d.ts +12 -0
  50. package/lib/log/colors.d.ts +19 -0
  51. package/lib/log/description.d.ts +3 -0
  52. package/lib/log/header.d.ts +2 -0
  53. package/lib/log/header_func.d.ts +2 -0
  54. package/lib/log/logger.d.ts +32 -0
  55. package/lib/log/messages/compatibility.d.ts +6 -0
  56. package/lib/log/messages/config.d.ts +21 -0
  57. package/lib/log/messages/config.js +1 -0
  58. package/lib/log/messages/core.d.ts +12 -0
  59. package/lib/log/messages/core_steps.d.ts +21 -0
  60. package/lib/log/messages/dry.d.ts +18 -0
  61. package/lib/log/messages/install.d.ts +4 -0
  62. package/lib/log/messages/ipc.d.ts +7 -0
  63. package/lib/log/messages/mutations.d.ts +16 -0
  64. package/lib/log/messages/plugins.d.ts +8 -0
  65. package/lib/log/messages/status.d.ts +1 -0
  66. package/lib/log/messages/steps.d.ts +10 -0
  67. package/lib/log/serialize.d.ts +2 -0
  68. package/lib/log/stream.d.ts +10 -0
  69. package/lib/log/theme.d.ts +19 -0
  70. package/lib/plugins/child/diff.d.ts +2 -0
  71. package/lib/plugins/child/error.d.ts +2 -0
  72. package/lib/plugins/child/lazy.d.ts +1 -0
  73. package/lib/plugins/child/load.d.ts +14 -0
  74. package/lib/plugins/child/logic.d.ts +5 -0
  75. package/lib/plugins/child/main.d.ts +1 -0
  76. package/lib/plugins/child/run.d.ts +18 -0
  77. package/lib/plugins/child/status.d.ts +1 -0
  78. package/lib/plugins/child/typescript.d.ts +2 -0
  79. package/lib/plugins/child/utils.d.ts +32 -0
  80. package/lib/plugins/child/validate.d.ts +1 -0
  81. package/lib/plugins/compatibility.d.ts +33 -0
  82. package/lib/plugins/error.d.ts +4 -0
  83. package/lib/plugins/events.d.ts +5 -0
  84. package/lib/plugins/expected_version.d.ts +10 -0
  85. package/lib/plugins/internal.d.ts +1 -0
  86. package/lib/plugins/ipc.d.ts +10 -0
  87. package/lib/plugins/list.d.ts +9 -0
  88. package/lib/plugins/load.d.ts +9 -0
  89. package/lib/plugins/manifest/check.d.ts +10 -0
  90. package/lib/plugins/manifest/load.d.ts +7 -0
  91. package/lib/plugins/manifest/main.d.ts +18 -0
  92. package/lib/plugins/manifest/path.d.ts +5 -0
  93. package/lib/plugins/manifest/validate.d.ts +1 -0
  94. package/lib/plugins/node_version.d.ts +22 -0
  95. package/lib/plugins/options.d.ts +18 -0
  96. package/lib/plugins/pinned_version.d.ts +24 -0
  97. package/lib/plugins/resolve.d.ts +17 -0
  98. package/lib/plugins/spawn.d.ts +2 -0
  99. package/lib/plugins_core/add.d.ts +13 -0
  100. package/lib/plugins_core/build_command.d.ts +36 -0
  101. package/lib/plugins_core/deploy/buildbot_client.d.ts +12 -0
  102. package/lib/plugins_core/deploy/index.d.ts +30 -0
  103. package/lib/plugins_core/edge_functions/index.d.ts +27 -0
  104. package/lib/plugins_core/edge_functions/lib/error.d.ts +1 -0
  105. package/lib/plugins_core/edge_functions/validate_manifest/validate_edge_functions_manifest.d.ts +2 -0
  106. package/lib/plugins_core/functions/error.d.ts +1 -0
  107. package/lib/plugins_core/functions/feature_flags.d.ts +2 -0
  108. package/lib/plugins_core/functions/index.d.ts +53 -0
  109. package/lib/plugins_core/functions/utils.d.ts +11 -0
  110. package/lib/plugins_core/functions/zisi.d.ts +22 -0
  111. package/lib/plugins_core/functions_install/index.d.ts +6 -0
  112. package/lib/plugins_core/list.d.ts +8 -0
  113. package/lib/plugins_core/save_artifacts/index.d.ts +26 -0
  114. package/lib/plugins_core/secrets_scanning/index.d.ts +16 -0
  115. package/lib/plugins_core/secrets_scanning/utils.d.ts +67 -0
  116. package/lib/report/statsd.d.ts +29 -0
  117. package/lib/status/add.d.ts +9 -0
  118. package/lib/status/colors.d.ts +1 -0
  119. package/lib/status/load_error.d.ts +6 -0
  120. package/lib/status/report.d.ts +14 -0
  121. package/lib/status/success.d.ts +5 -0
  122. package/lib/steps/core_step.d.ts +50 -0
  123. package/lib/steps/error.d.ts +48 -0
  124. package/lib/steps/get.d.ts +8 -0
  125. package/lib/steps/plugin.d.ts +39 -0
  126. package/lib/steps/return.d.ts +55 -0
  127. package/lib/steps/run_core_steps.d.ts +5 -0
  128. package/lib/steps/run_step.d.ts +52 -0
  129. package/lib/steps/run_steps.d.ts +44 -0
  130. package/lib/steps/update_config.d.ts +23 -0
  131. package/lib/telemetry/main.d.ts +18 -0
  132. package/lib/time/aggregate.d.ts +1 -0
  133. package/lib/time/main.d.ts +16 -0
  134. package/lib/time/measure.d.ts +10 -0
  135. package/lib/time/report.d.ts +14 -0
  136. package/lib/tracing/main.d.ts +29 -0
  137. package/lib/utils/errors.d.ts +1 -0
  138. package/lib/utils/json.d.ts +7 -0
  139. package/lib/utils/omit.d.ts +1 -0
  140. package/lib/utils/package.d.ts +10 -0
  141. package/lib/utils/remove_falsy.d.ts +1 -0
  142. package/lib/utils/resolve.d.ts +8 -0
  143. package/lib/utils/runtime.d.ts +1 -0
  144. package/lib/utils/semver.d.ts +2 -0
  145. package/package.json +12 -15
  146. package/types/config/inputs.d.ts +1 -1
  147. package/types/config/netlify_config.d.ts +4 -4
  148. package/types/index.d.ts +7 -7
  149. package/types/netlify_event_handler.d.ts +2 -2
  150. package/types/netlify_plugin.d.ts +2 -2
  151. package/types/netlify_plugin_options.d.ts +5 -5
  152. package/types/options/netlify_plugin_cache_util.d.ts +1 -1
  153. package/types/options/netlify_plugin_run_util.d.ts +1 -1
  154. package/types/options/netlify_plugin_utils.d.ts +6 -6
  155. package/types/options/index.d.ts +0 -1
@@ -0,0 +1,6 @@
1
+ export function getNewEnvChanges(envBefore: any, netlifyConfig: any, netlifyConfigCopy: any): {
2
+ [x: string]: any;
3
+ };
4
+ export function setEnvChanges(envChanges: any, currentEnv?: NodeJS.ProcessEnv): {
5
+ [x: string]: string | undefined;
6
+ };
@@ -0,0 +1,4 @@
1
+ export declare const getChildEnv: ({ envOpt, env: allConfigEnv }: {
2
+ envOpt: any;
3
+ env: any;
4
+ }) => Partial<any>;
@@ -0,0 +1 @@
1
+ export function getEnvMetadata(childEnv?: NodeJS.ProcessEnv): Partial<NodeJS.ProcessEnv>;
@@ -0,0 +1 @@
1
+ export function addApiErrorHandlers(api: any): (Record<string, any> & Record<string, unknown>) | undefined;
@@ -0,0 +1,7 @@
1
+ export function jsonToError({ name, message, stack, ...errorProps }: {
2
+ [x: string]: any;
3
+ name: any;
4
+ message: any;
5
+ stack: any;
6
+ }): Error;
7
+ export function errorToJson(error: any): any;
@@ -0,0 +1,4 @@
1
+ export function cancelBuild({ api, deployId }: {
2
+ api: any;
3
+ deployId: any;
4
+ }): Promise<void>;
@@ -0,0 +1 @@
1
+ export function removeErrorColors(error: any): void;
@@ -0,0 +1,17 @@
1
+ import { ErrorParam } from '../core/types.js';
2
+ export declare const handleBuildError: (error: Error, { errorMonitor, netlifyConfig, childEnv, logs, debug, testOpts }: ErrorParam) => Promise<{
3
+ message: any;
4
+ stack: any;
5
+ errorProps: any;
6
+ errorInfo: any;
7
+ type: any;
8
+ severity: any;
9
+ title: any;
10
+ group: any;
11
+ stackType: any;
12
+ locationType: any;
13
+ showInBuildLog: any;
14
+ showErrorProps: any;
15
+ rawStack: any;
16
+ errorMetadata: any;
17
+ }>;
@@ -0,0 +1,6 @@
1
+ export function addDefaultErrorInfo(error: any, info: any): void;
2
+ export function addErrorInfo(error: any, info: any): void;
3
+ export function getErrorInfo(error: any): any[];
4
+ export function changeErrorType(error: any, oldType: any, newType: any): void;
5
+ export function isBuildError(error: any): boolean;
6
+ export const CUSTOM_ERROR_KEY: "customErrorInfo";
@@ -0,0 +1 @@
1
+ export function getLocationMetadata(location: any, envMetadata: any): any;
@@ -0,0 +1 @@
1
+ export function normalizeGroupingMessage(message: any, type: any): (string | RegExp)[];
@@ -0,0 +1,22 @@
1
+ export function printEventForTest({ name: errorClass, message: errorMessage }: {
2
+ name: any;
3
+ message: any;
4
+ }, { context, groupingHash, severity, unhandled, _metadata: { location, plugin: { packageName, homepage }, pluginPackageJson, tsConfig, env: { BUILD_ID }, other, }, }: {
5
+ context: any;
6
+ groupingHash: any;
7
+ severity: any;
8
+ unhandled: any;
9
+ _metadata: {
10
+ location: any;
11
+ plugin?: {
12
+ packageName: any;
13
+ homepage: any;
14
+ } | undefined;
15
+ pluginPackageJson: any;
16
+ tsConfig: any;
17
+ env?: {
18
+ BUILD_ID: any;
19
+ } | undefined;
20
+ other: any;
21
+ };
22
+ }, logs: any): void;
@@ -0,0 +1,7 @@
1
+ export function reportBuildError({ error, errorMonitor, childEnv, logs, testOpts }: {
2
+ error: any;
3
+ errorMonitor: any;
4
+ childEnv: any;
5
+ logs: any;
6
+ testOpts: any;
7
+ }): Promise<void>;
@@ -0,0 +1,7 @@
1
+ import type { ResolvedFlags } from '../../core/normalize_flags.js';
2
+ import { BufferedLogs } from '../../log/logger.js';
3
+ export declare const startErrorMonitor: (config: {
4
+ flags: ResolvedFlags;
5
+ logs?: BufferedLogs;
6
+ bugsnagKey?: string;
7
+ }) => any;
@@ -0,0 +1,5 @@
1
+ export function cleanStacks({ stack, rawStack, debug }: {
2
+ stack: any;
3
+ rawStack: any;
4
+ debug: any;
5
+ }): any;
@@ -0,0 +1,5 @@
1
+ export function getLocationInfo({ stack, location, locationType }: {
2
+ stack: any;
3
+ location: any;
4
+ locationType: any;
5
+ }): any;
@@ -0,0 +1 @@
1
+ export function normalizeError(error: any): any;
@@ -0,0 +1,39 @@
1
+ export function getFullErrorInfo({ error, colors, debug }: {
2
+ error: any;
3
+ colors: any;
4
+ debug: any;
5
+ }): {
6
+ title: any;
7
+ message: any;
8
+ tsConfigInfo: any;
9
+ pluginInfo: string | undefined;
10
+ locationInfo: any;
11
+ errorProps: string | undefined;
12
+ errorMetadata: any;
13
+ stack: any;
14
+ errorInfo: any;
15
+ type: any;
16
+ severity: any;
17
+ group: any;
18
+ stackType: any;
19
+ locationType: any;
20
+ showInBuildLog: any;
21
+ showErrorProps: any;
22
+ rawStack: any;
23
+ };
24
+ export function parseErrorInfo(error: any): {
25
+ message: any;
26
+ stack: any;
27
+ errorProps: any;
28
+ errorInfo: any;
29
+ type: any;
30
+ severity: any;
31
+ title: any;
32
+ group: any;
33
+ stackType: any;
34
+ locationType: any;
35
+ showInBuildLog: any;
36
+ showErrorProps: any;
37
+ rawStack: any;
38
+ errorMetadata: any;
39
+ };
@@ -0,0 +1,9 @@
1
+ export function getPluginInfo({ pluginPackageJson }: {
2
+ pluginPackageJson?: {} | undefined;
3
+ }, { packageName, loadedFrom }: {
4
+ packageName: any;
5
+ loadedFrom: any;
6
+ }): string | undefined;
7
+ export function getHomepage(pluginPackageJson?: {}, { loadedFrom }?: {
8
+ loadedFrom: any;
9
+ }): any;
@@ -0,0 +1,5 @@
1
+ export function getErrorProps({ errorProps, showErrorProps, colors }: {
2
+ errorProps: any;
3
+ showErrorProps: any;
4
+ colors: any;
5
+ }): string | undefined;
@@ -0,0 +1,14 @@
1
+ export function serializeLogError({ fullErrorInfo: { title, severity, message, pluginInfo, locationInfo, tsConfigInfo, errorProps }, }: {
2
+ fullErrorInfo: {
3
+ title: any;
4
+ severity: any;
5
+ message: any;
6
+ pluginInfo: any;
7
+ locationInfo: any;
8
+ tsConfigInfo: any;
9
+ errorProps: any;
10
+ };
11
+ }): {
12
+ title: any;
13
+ body: any;
14
+ };
@@ -0,0 +1,16 @@
1
+ export function serializeErrorStatus({ fullErrorInfo: { title, message, locationInfo, errorProps, errorMetadata }, state, }: {
2
+ fullErrorInfo: {
3
+ title: any;
4
+ message: any;
5
+ locationInfo: any;
6
+ errorProps: any;
7
+ errorMetadata: any;
8
+ };
9
+ state: any;
10
+ }): {
11
+ state: any;
12
+ title: any;
13
+ summary: any;
14
+ text: string | undefined;
15
+ extraData: any;
16
+ };
@@ -0,0 +1,11 @@
1
+ export function getStackInfo({ message, stack, stackType, rawStack, severity, debug }: {
2
+ message: any;
3
+ stack: any;
4
+ stackType: any;
5
+ rawStack: any;
6
+ severity: any;
7
+ debug: any;
8
+ }): {
9
+ message: any;
10
+ stack: any;
11
+ };
@@ -0,0 +1,6 @@
1
+ import { InputStatsDOptions } from '../report/statsd.js';
2
+ /**
3
+ * Record error rates of the build phase for monitoring.
4
+ * Sends to statsd daemon.
5
+ */
6
+ export declare const reportError: (error: Error, statsdOpts: InputStatsDOptions, framework?: string) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ export function getTypeInfo({ type }: {
2
+ type: any;
3
+ }): any;
package/lib/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ import { buildSite } from './core/main.js';
2
+ export type * from '../types/index.d.ts';
3
+ export { startDev } from './core/dev.js';
4
+ export { runCoreSteps } from './steps/run_core_steps.js';
5
+ export default buildSite;
package/lib/index.js ADDED
@@ -0,0 +1,6 @@
1
+ import { buildSite } from './core/main.js';
2
+ // actual main types
3
+ export { startDev } from './core/dev.js';
4
+ export { runCoreSteps } from './steps/run_core_steps.js';
5
+ // default export the buildSite function
6
+ export default buildSite;
@@ -0,0 +1 @@
1
+ export function installFunctionDependencies(functionsSrc: any, isLocal: any): Promise<void>;
@@ -0,0 +1,8 @@
1
+ export function installLocalPluginsDependencies({ plugins, pluginsOptions, buildDir, mode, logs }: {
2
+ plugins: any;
3
+ pluginsOptions: any;
4
+ buildDir: any;
5
+ mode: any;
6
+ logs: any;
7
+ }): Promise<void>;
8
+ export const LOCAL_INSTALL_PLUGIN_NAME: "@netlify/plugin-local-install-core";
@@ -0,0 +1,9 @@
1
+ export function installDependencies({ packageRoot, isLocal }: {
2
+ packageRoot: any;
3
+ isLocal: any;
4
+ }): Promise<void>;
5
+ export function addExactDependencies({ packageRoot, isLocal, packages }: {
6
+ packageRoot: any;
7
+ isLocal: any;
8
+ packages: any;
9
+ }): Promise<void>;
@@ -0,0 +1,12 @@
1
+ export function installMissingPlugins({ missingPlugins, autoPluginsDir, mode, logs }: {
2
+ missingPlugins: any;
3
+ autoPluginsDir: any;
4
+ mode: any;
5
+ logs: any;
6
+ }): Promise<void>;
7
+ export function installIntegrationPlugins({ integrations, autoPluginsDir, mode, logs }: {
8
+ integrations: any;
9
+ autoPluginsDir: any;
10
+ mode: any;
11
+ logs: any;
12
+ }): Promise<void>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Plugin child processes use `stdio: 'pipe'` so they are always
3
+ * non-interactive even if the parent is an interactive TTY. This means they
4
+ * would normally lose colors. If the parent has colors, we pass an environment
5
+ * variable to the child process to force colors.
6
+ */
7
+ export declare const getParentColorEnv: () => {
8
+ FORCE_COLOR?: undefined;
9
+ } | {
10
+ FORCE_COLOR: string;
11
+ };
12
+ /**
13
+ * Child processes and the buildbot relies on `FORCE_COLOR=1` to set colors.
14
+ * However `utils.inspect()` (used by `console.log()`) uses
15
+ * `process.stdout.hasColors` which is always `undefined` when the TTY is
16
+ * non-interactive. So we need to set `util.inspect.defaultOptions.colors`
17
+ * manually both in plugin processes.
18
+ */
19
+ export declare const setInspectColors: () => void;
@@ -0,0 +1,3 @@
1
+ export declare const getBuildCommandDescription: (buildCommandOrigin: any) => any;
2
+ /** Retrieve human-friendly plugin origin */
3
+ export declare const getPluginOrigin: (loadedFrom: 'package.json' | string, origin: string) => string;
@@ -0,0 +1,2 @@
1
+ /** Print a rectangular header */
2
+ export declare const getHeader: (message: string) => string;
@@ -0,0 +1,2 @@
1
+ /** Retrieve successful or error header depending on whether `error` exists */
2
+ export declare const getLogHeaderFunc: (error?: Error) => (logs: import("./logger.js").BufferedLogs | undefined, string: string, opts?: {}) => void;
@@ -0,0 +1,32 @@
1
+ export type BufferedLogs = {
2
+ stdout: string[];
3
+ stderr: string[];
4
+ };
5
+ /**
6
+ * When the `buffer` option is true, we return logs instead of printing them
7
+ * on the console. The logs are accumulated in a `logs` array variable.
8
+ */
9
+ export declare const getBufferLogs: (config: {
10
+ buffer?: boolean;
11
+ }) => BufferedLogs | undefined;
12
+ export declare const log: (logs: BufferedLogs | undefined, string: string, config?: {
13
+ indent?: boolean | undefined;
14
+ color?: ((string: string) => string) | undefined;
15
+ }) => void;
16
+ export declare const logError: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
17
+ export declare const logWarning: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
18
+ export declare const logMessage: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
19
+ export declare const logObject: (logs: BufferedLogs | undefined, object: any, opts: any) => void;
20
+ export declare const logArray: (logs: BufferedLogs | undefined, array: any, opts?: {}) => void;
21
+ export declare const logErrorArray: (logs: BufferedLogs | undefined, array: any, opts?: {}) => void;
22
+ export declare const logWarningArray: (logs: BufferedLogs | undefined, array: any, opts?: {}) => void;
23
+ export declare const logHeader: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
24
+ export declare const logErrorHeader: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
25
+ export declare const logSubHeader: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
26
+ export declare const logErrorSubHeader: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
27
+ export declare const logWarningSubHeader: (logs: BufferedLogs | undefined, string: string, opts?: {}) => void;
28
+ /**
29
+ * Builds a function for logging data to the system logger (i.e. hidden from
30
+ * the user-facing build logs)
31
+ */
32
+ export declare const getSystemLogger: (logs: BufferedLogs | undefined, debug: boolean, systemLogFile?: number) => (...args: any[]) => void;
@@ -0,0 +1,6 @@
1
+ import { BufferedLogs } from '../logger.js';
2
+ export declare const logRuntime: (logs: any, pluginOptions: any) => void;
3
+ export declare const logLoadingIntegration: (logs: any, pluginOptions: any) => void;
4
+ export declare const logLoadingPlugins: (logs: any, pluginsOptions: any, debug: any) => void;
5
+ export declare const logOutdatedPlugins: (logs: BufferedLogs, pluginsOptions: any) => void;
6
+ export declare const logIncompatiblePlugins: (logs: any, pluginsOptions: any) => void;
@@ -0,0 +1,21 @@
1
+ export function logFlags(logs: any, flags: any, { debug }: {
2
+ debug: any;
3
+ }): void;
4
+ export function logBuildDir(logs: any, buildDir: any): void;
5
+ export function logConfigPath(logs: any, configPath?: string): void;
6
+ export function logConfig({ logs, netlifyConfig, debug }: {
7
+ logs: any;
8
+ netlifyConfig: any;
9
+ debug: any;
10
+ }): void;
11
+ export function logConfigOnUpdate({ logs, netlifyConfig, debug }: {
12
+ logs: any;
13
+ netlifyConfig: any;
14
+ debug: any;
15
+ }): void;
16
+ export function logConfigOnError({ logs, netlifyConfig, severity }: {
17
+ logs: any;
18
+ netlifyConfig: any;
19
+ severity: any;
20
+ }): void;
21
+ export function logContext(logs: any, context: any): void;
@@ -51,6 +51,7 @@ const INTERNAL_FLAGS = [
51
51
  'systemLogFile',
52
52
  'timeline',
53
53
  'explicitSecretKeys',
54
+ 'edgeFunctionsBootstrapURL',
54
55
  ];
55
56
  const HIDDEN_FLAGS = [...SECURE_FLAGS, ...TEST_FLAGS, ...INTERNAL_FLAGS];
56
57
  const HIDDEN_DEBUG_FLAGS = [...SECURE_FLAGS, ...TEST_FLAGS];
@@ -0,0 +1,12 @@
1
+ import { BufferedLogs } from '../logger.js';
2
+ export declare const logBuildStart: (logs?: BufferedLogs) => void;
3
+ export declare const logBuildError: ({ error, netlifyConfig, logs, debug }: {
4
+ error: any;
5
+ netlifyConfig: any;
6
+ logs: any;
7
+ debug: any;
8
+ }) => void;
9
+ export declare const logBuildSuccess: (logs: any) => void;
10
+ export declare const logTimer: (logs: any, durationNs: any, timerName: any, systemLog: any) => void;
11
+ export declare const logMissingSideFile: (logs: any, sideFile: any, publish: any) => void;
12
+ export declare const logLingeringProcesses: (logs: any, commands: any) => void;
@@ -0,0 +1,21 @@
1
+ export function logBundleResults({ logs, results }: {
2
+ logs: any;
3
+ results?: any[] | undefined;
4
+ }): void;
5
+ export function logFunctionsNonExistingDir(logs: any, relativeFunctionsSrc: any): void;
6
+ export function logFunctionsToBundle({ logs, userFunctions, userFunctionsSrc, userFunctionsSrcExists, internalFunctions, internalFunctionsSrc, type, }: {
7
+ logs: any;
8
+ userFunctions: any;
9
+ userFunctionsSrc: any;
10
+ userFunctionsSrcExists: any;
11
+ internalFunctions: any;
12
+ internalFunctionsSrc: any;
13
+ type?: string | undefined;
14
+ }): void;
15
+ export function logSecretsScanSkipMessage(logs: any, msg: any): void;
16
+ export function logSecretsScanSuccessMessage(logs: any, msg: any): void;
17
+ export function logSecretsScanFailBuildMessage({ logs, scanResults, groupedResults }: {
18
+ logs: any;
19
+ scanResults: any;
20
+ groupedResults: any;
21
+ }): void;
@@ -0,0 +1,18 @@
1
+ export function logDryRunStart({ logs, eventWidth, stepsCount }: {
2
+ logs: any;
3
+ eventWidth: any;
4
+ stepsCount: any;
5
+ }): void;
6
+ export function logDryRunStep({ logs, step: { event, packageName, coreStepDescription }, index, netlifyConfig, eventWidth, stepsCount, }: {
7
+ logs: any;
8
+ step: {
9
+ event: any;
10
+ packageName: any;
11
+ coreStepDescription: any;
12
+ };
13
+ index: any;
14
+ netlifyConfig: any;
15
+ eventWidth: any;
16
+ stepsCount: any;
17
+ }): void;
18
+ export function logDryRunEnd(logs: any): void;
@@ -0,0 +1,4 @@
1
+ export function logInstallMissingPlugins(logs: any, packages: any): void;
2
+ export function logInstallIntegrations(logs: any, integrations: any): void;
3
+ export function logInstallLocalPluginsDeps(logs: any, localPluginsOptions: any): void;
4
+ export function logInstallFunctionDependencies(): void;
@@ -0,0 +1,7 @@
1
+ export function logSendingEventToChild(logs: any, verbose: any): void;
2
+ export function logSentEventToChild(logs: any, verbose: any): void;
3
+ export function logPluginMethodStart(verbose: any): void;
4
+ export function logPluginMethodEnd(verbose: any): void;
5
+ export function logSendingEventToParent(verbose: any, error: any): void;
6
+ export function logReceivedEventFromChild(logs: any, verbose: any): void;
7
+ export function logStepCompleted(logs: any, verbose: any): void;
@@ -0,0 +1,16 @@
1
+ export function logConfigMutations(logs: any, newConfigMutations: any, debug: any): void;
2
+ export function logConfigOnUpload({ logs, configPath, debug }: {
3
+ logs: any;
4
+ configPath: any;
5
+ debug: any;
6
+ }): Promise<void>;
7
+ export function logHeadersOnUpload({ logs, headersPath, debug }: {
8
+ logs: any;
9
+ headersPath: any;
10
+ debug: any;
11
+ }): Promise<void>;
12
+ export function logRedirectsOnUpload({ logs, redirectsPath, debug }: {
13
+ logs: any;
14
+ redirectsPath: any;
15
+ debug: any;
16
+ }): Promise<void>;
@@ -0,0 +1,8 @@
1
+ export function logPluginsFetchError(logs: any, message: any): void;
2
+ export function logPluginsList({ pluginsList, debug, logs }: {
3
+ pluginsList: any;
4
+ debug: any;
5
+ logs: any;
6
+ }): void;
7
+ export function logFailPluginWarning(methodName: any, event: any): void;
8
+ export function logDeploySuccess(logs: any): void;
@@ -0,0 +1 @@
1
+ export function logStatuses(logs: any, statuses: any): void;
@@ -0,0 +1,10 @@
1
+ export function logStepStart({ logs, event, packageName, coreStepDescription, error, netlifyConfig }: {
2
+ logs: any;
3
+ event: any;
4
+ packageName: any;
5
+ coreStepDescription: any;
6
+ error: any;
7
+ netlifyConfig: any;
8
+ }): void;
9
+ export function logBuildCommandStart(logs: any, buildCommand: any): void;
10
+ export function logStepSuccess(logs: any): void;
@@ -0,0 +1,2 @@
1
+ export function serializeObject(object: any): any;
2
+ export function serializeArray(array: any): any;
@@ -0,0 +1,10 @@
1
+ export function getBuildCommandStdio(logs: any): "pipe" | "inherit";
2
+ export function handleBuildCommandOutput({ stdout: commandStdout, stderr: commandStderr }: {
3
+ stdout: any;
4
+ stderr: any;
5
+ }, logs: any): void;
6
+ export function pipePluginOutput(childProcess: any, logs: any): void | {
7
+ stdoutListener: any;
8
+ stderrListener: any;
9
+ };
10
+ export function unpipePluginOutput(childProcess: any, logs: any, listeners: any): Promise<void>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Color theme. Please use this instead of requiring chalk directly,
3
+ * to ensure consistent colors.
4
+ */
5
+ export declare const THEME: {
6
+ header: import("chalk").ChalkInstance;
7
+ subHeader: import("chalk").ChalkInstance;
8
+ highlightWords: import("chalk").ChalkInstance;
9
+ errorHeader: import("chalk").ChalkInstance;
10
+ errorSubHeader: import("chalk").ChalkInstance;
11
+ errorLine: import("chalk").ChalkInstance;
12
+ errorHighlightWords: import("chalk").ChalkInstance;
13
+ warningHeader: import("chalk").ChalkInstance;
14
+ warningSubHeader: import("chalk").ChalkInstance;
15
+ warningLine: import("chalk").ChalkInstance;
16
+ warningHighlightWords: import("chalk").ChalkInstance;
17
+ dimWords: import("chalk").ChalkInstance;
18
+ none: (string: any) => any;
19
+ };
@@ -0,0 +1,2 @@
1
+ export function cloneNetlifyConfig(netlifyConfig: any): any;
2
+ export function getConfigMutations(netlifyConfig: any, netlifyConfigCopy: any, event: any): any;
@@ -0,0 +1,2 @@
1
+ export function handleError(error: any, verbose: any): Promise<void>;
2
+ export function handleProcessErrors(): void;
@@ -0,0 +1 @@
1
+ export function addLazyProp(object: any, propName: any, getFunc: any): void;
@@ -0,0 +1,14 @@
1
+ export declare const load: ({ pluginPath, inputs, packageJson, verbose }: {
2
+ pluginPath: any;
3
+ inputs: any;
4
+ packageJson: any;
5
+ verbose: any;
6
+ }) => Promise<{
7
+ events: string[];
8
+ context: {
9
+ methods: Partial<any>;
10
+ inputs: any;
11
+ packageJson: any;
12
+ verbose: any;
13
+ };
14
+ }>;
@@ -0,0 +1,5 @@
1
+ export function getLogic({ pluginPath, inputs, tsNodeService }: {
2
+ pluginPath: any;
3
+ inputs: any;
4
+ tsNodeService: any;
5
+ }): Promise<any>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ export function run({ event, error, constants, envChanges, featureFlags, netlifyConfig }: {
2
+ event: any;
3
+ error: any;
4
+ constants: any;
5
+ envChanges: any;
6
+ featureFlags: any;
7
+ netlifyConfig: any;
8
+ }, { methods, inputs, packageJson, verbose }: {
9
+ methods: any;
10
+ inputs: any;
11
+ packageJson: any;
12
+ verbose: any;
13
+ }): Promise<{
14
+ newEnvChanges: {
15
+ [x: string]: any;
16
+ };
17
+ configMutations: any;
18
+ }>;
@@ -0,0 +1 @@
1
+ export function show(runState: any, showArgs: any): void;
@@ -0,0 +1,2 @@
1
+ export function registerTypeScript(pluginPath: any): import("ts-node").Service | undefined;
2
+ export function addTsErrorInfo(error: any, tsNodeService: any): void;