@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.
- package/lib/core/bin.d.ts +2 -0
- package/lib/core/bin.js +2 -2
- package/lib/core/build.d.ts +84 -0
- package/lib/core/config.d.ts +65 -0
- package/lib/core/constants.d.ts +26 -0
- package/lib/core/dev.d.ts +18 -0
- package/lib/core/dry.d.ts +8 -0
- package/lib/core/feature_flags.d.ts +3 -0
- package/lib/core/flags.d.ts +230 -0
- package/lib/core/lingering.d.ts +7 -0
- package/lib/core/main.d.ts +14 -0
- package/lib/core/main.js +1 -3
- package/lib/core/missing_side_file.d.ts +9 -0
- package/lib/core/normalize_flags.d.ts +38 -0
- package/lib/core/report_metrics.d.ts +12 -0
- package/lib/core/severity.d.ts +38 -0
- package/lib/core/types.d.ts +83 -0
- package/lib/core/user_node_version.d.ts +1 -0
- package/lib/env/changes.d.ts +6 -0
- package/lib/env/main.d.ts +4 -0
- package/lib/env/metadata.d.ts +1 -0
- package/lib/error/api.d.ts +1 -0
- package/lib/error/build.d.ts +7 -0
- package/lib/error/cancel.d.ts +4 -0
- package/lib/error/colors.d.ts +1 -0
- package/lib/error/handle.d.ts +17 -0
- package/lib/error/info.d.ts +6 -0
- package/lib/error/monitor/location.d.ts +1 -0
- package/lib/error/monitor/normalize.d.ts +1 -0
- package/lib/error/monitor/print.d.ts +22 -0
- package/lib/error/monitor/report.d.ts +7 -0
- package/lib/error/monitor/start.d.ts +7 -0
- package/lib/error/parse/clean_stack.d.ts +5 -0
- package/lib/error/parse/location.d.ts +5 -0
- package/lib/error/parse/normalize.d.ts +1 -0
- package/lib/error/parse/parse.d.ts +39 -0
- package/lib/error/parse/plugin.d.ts +9 -0
- package/lib/error/parse/properties.d.ts +5 -0
- package/lib/error/parse/serialize_log.d.ts +14 -0
- package/lib/error/parse/serialize_status.d.ts +16 -0
- package/lib/error/parse/stack.d.ts +11 -0
- package/lib/error/report.d.ts +6 -0
- package/lib/error/type.d.ts +3 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +6 -0
- package/lib/install/functions.d.ts +1 -0
- package/lib/install/local.d.ts +8 -0
- package/lib/install/main.d.ts +9 -0
- package/lib/install/missing.d.ts +12 -0
- package/lib/log/colors.d.ts +19 -0
- package/lib/log/description.d.ts +3 -0
- package/lib/log/header.d.ts +2 -0
- package/lib/log/header_func.d.ts +2 -0
- package/lib/log/logger.d.ts +32 -0
- package/lib/log/messages/compatibility.d.ts +6 -0
- package/lib/log/messages/config.d.ts +21 -0
- package/lib/log/messages/config.js +1 -0
- package/lib/log/messages/core.d.ts +12 -0
- package/lib/log/messages/core_steps.d.ts +21 -0
- package/lib/log/messages/dry.d.ts +18 -0
- package/lib/log/messages/install.d.ts +4 -0
- package/lib/log/messages/ipc.d.ts +7 -0
- package/lib/log/messages/mutations.d.ts +16 -0
- package/lib/log/messages/plugins.d.ts +8 -0
- package/lib/log/messages/status.d.ts +1 -0
- package/lib/log/messages/steps.d.ts +10 -0
- package/lib/log/serialize.d.ts +2 -0
- package/lib/log/stream.d.ts +10 -0
- package/lib/log/theme.d.ts +19 -0
- package/lib/plugins/child/diff.d.ts +2 -0
- package/lib/plugins/child/error.d.ts +2 -0
- package/lib/plugins/child/lazy.d.ts +1 -0
- package/lib/plugins/child/load.d.ts +14 -0
- package/lib/plugins/child/logic.d.ts +5 -0
- package/lib/plugins/child/main.d.ts +1 -0
- package/lib/plugins/child/run.d.ts +18 -0
- package/lib/plugins/child/status.d.ts +1 -0
- package/lib/plugins/child/typescript.d.ts +2 -0
- package/lib/plugins/child/utils.d.ts +32 -0
- package/lib/plugins/child/validate.d.ts +1 -0
- package/lib/plugins/compatibility.d.ts +33 -0
- package/lib/plugins/error.d.ts +4 -0
- package/lib/plugins/events.d.ts +5 -0
- package/lib/plugins/expected_version.d.ts +10 -0
- package/lib/plugins/internal.d.ts +1 -0
- package/lib/plugins/ipc.d.ts +10 -0
- package/lib/plugins/list.d.ts +9 -0
- package/lib/plugins/load.d.ts +9 -0
- package/lib/plugins/manifest/check.d.ts +10 -0
- package/lib/plugins/manifest/load.d.ts +7 -0
- package/lib/plugins/manifest/main.d.ts +18 -0
- package/lib/plugins/manifest/path.d.ts +5 -0
- package/lib/plugins/manifest/validate.d.ts +1 -0
- package/lib/plugins/node_version.d.ts +22 -0
- package/lib/plugins/options.d.ts +18 -0
- package/lib/plugins/pinned_version.d.ts +24 -0
- package/lib/plugins/resolve.d.ts +17 -0
- package/lib/plugins/spawn.d.ts +2 -0
- package/lib/plugins_core/add.d.ts +13 -0
- package/lib/plugins_core/build_command.d.ts +36 -0
- package/lib/plugins_core/deploy/buildbot_client.d.ts +12 -0
- package/lib/plugins_core/deploy/index.d.ts +30 -0
- package/lib/plugins_core/edge_functions/index.d.ts +27 -0
- package/lib/plugins_core/edge_functions/lib/error.d.ts +1 -0
- package/lib/plugins_core/edge_functions/validate_manifest/validate_edge_functions_manifest.d.ts +2 -0
- package/lib/plugins_core/functions/error.d.ts +1 -0
- package/lib/plugins_core/functions/feature_flags.d.ts +2 -0
- package/lib/plugins_core/functions/index.d.ts +53 -0
- package/lib/plugins_core/functions/utils.d.ts +11 -0
- package/lib/plugins_core/functions/zisi.d.ts +22 -0
- package/lib/plugins_core/functions_install/index.d.ts +6 -0
- package/lib/plugins_core/list.d.ts +8 -0
- package/lib/plugins_core/save_artifacts/index.d.ts +26 -0
- package/lib/plugins_core/secrets_scanning/index.d.ts +16 -0
- package/lib/plugins_core/secrets_scanning/utils.d.ts +67 -0
- package/lib/report/statsd.d.ts +29 -0
- package/lib/status/add.d.ts +9 -0
- package/lib/status/colors.d.ts +1 -0
- package/lib/status/load_error.d.ts +6 -0
- package/lib/status/report.d.ts +14 -0
- package/lib/status/success.d.ts +5 -0
- package/lib/steps/core_step.d.ts +50 -0
- package/lib/steps/error.d.ts +48 -0
- package/lib/steps/get.d.ts +8 -0
- package/lib/steps/plugin.d.ts +39 -0
- package/lib/steps/return.d.ts +55 -0
- package/lib/steps/run_core_steps.d.ts +5 -0
- package/lib/steps/run_step.d.ts +52 -0
- package/lib/steps/run_steps.d.ts +44 -0
- package/lib/steps/update_config.d.ts +23 -0
- package/lib/telemetry/main.d.ts +18 -0
- package/lib/time/aggregate.d.ts +1 -0
- package/lib/time/main.d.ts +16 -0
- package/lib/time/measure.d.ts +10 -0
- package/lib/time/report.d.ts +14 -0
- package/lib/tracing/main.d.ts +29 -0
- package/lib/utils/errors.d.ts +1 -0
- package/lib/utils/json.d.ts +7 -0
- package/lib/utils/omit.d.ts +1 -0
- package/lib/utils/package.d.ts +10 -0
- package/lib/utils/remove_falsy.d.ts +1 -0
- package/lib/utils/resolve.d.ts +8 -0
- package/lib/utils/runtime.d.ts +1 -0
- package/lib/utils/semver.d.ts +2 -0
- package/package.json +12 -15
- package/types/config/inputs.d.ts +1 -1
- package/types/config/netlify_config.d.ts +4 -4
- package/types/index.d.ts +7 -7
- package/types/netlify_event_handler.d.ts +2 -2
- package/types/netlify_plugin.d.ts +2 -2
- package/types/netlify_plugin_options.d.ts +5 -5
- package/types/options/netlify_plugin_cache_util.d.ts +1 -1
- package/types/options/netlify_plugin_run_util.d.ts +1 -1
- package/types/options/netlify_plugin_utils.d.ts +6 -6
- package/types/options/index.d.ts +0 -1
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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,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,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>;
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -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,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,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 @@
|
|
|
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 @@
|
|
|
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;
|