@vercel/build-utils 14.23.0 → 15.0.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/fs/node-version.js +0 -3
  3. package/dist/fs/stream-to-digest-async.d.ts +0 -1
  4. package/dist/fs/stream-to-digest-async.js +3 -8
  5. package/dist/index.d.ts +1 -28
  6. package/dist/index.js +11 -37
  7. package/dist/schedules.d.ts +4 -0
  8. package/dist/types.d.ts +5 -0
  9. package/package.json +3 -7
  10. package/dist/collect-build-result/file-to-build-output-file.d.ts +0 -26
  11. package/dist/collect-build-result/file-to-build-output-file.js +0 -54
  12. package/dist/collect-build-result/get-build-result-metadata.d.ts +0 -33
  13. package/dist/collect-build-result/get-build-result-metadata.js +0 -99
  14. package/dist/collect-build-result/get-content-type.d.ts +0 -1
  15. package/dist/collect-build-result/get-content-type.js +0 -45
  16. package/dist/collect-build-result/get-lambda-by-output-path.d.ts +0 -13
  17. package/dist/collect-build-result/get-lambda-by-output-path.js +0 -31
  18. package/dist/collect-build-result/get-prerender-chain.d.ts +0 -8
  19. package/dist/collect-build-result/get-prerender-chain.js +0 -44
  20. package/dist/collect-build-result/is-route-middleware.d.ts +0 -4
  21. package/dist/collect-build-result/is-route-middleware.js +0 -30
  22. package/dist/collect-build-result/prerender-to-build-output-file.d.ts +0 -23
  23. package/dist/collect-build-result/prerender-to-build-output-file.js +0 -85
  24. package/dist/collect-build-result/stream-with-extended-payload.d.ts +0 -5
  25. package/dist/collect-build-result/stream-with-extended-payload.js +0 -49
  26. package/dist/collect-build-result/validate-build-result.d.ts +0 -19
  27. package/dist/collect-build-result/validate-build-result.js +0 -139
  28. package/dist/collect-build-result/validate-prerender.d.ts +0 -8
  29. package/dist/collect-build-result/validate-prerender.js +0 -32
  30. package/dist/collect-build-result/validate-regular-file.d.ts +0 -8
  31. package/dist/collect-build-result/validate-regular-file.js +0 -42
  32. package/dist/collect-uncompressed-size.d.ts +0 -6
  33. package/dist/collect-uncompressed-size.js +0 -59
  34. package/dist/deserialize/create-functions-iterator.d.ts +0 -8
  35. package/dist/deserialize/create-functions-iterator.js +0 -52
  36. package/dist/deserialize/deserialize-build-output-types.d.ts +0 -56
  37. package/dist/deserialize/deserialize-build-output-types.js +0 -16
  38. package/dist/deserialize/deserialize-build-output.d.ts +0 -4
  39. package/dist/deserialize/deserialize-build-output.js +0 -296
  40. package/dist/deserialize/deserialize-edge-function.d.ts +0 -5
  41. package/dist/deserialize/deserialize-edge-function.js +0 -47
  42. package/dist/deserialize/deserialize-lambda.d.ts +0 -22
  43. package/dist/deserialize/deserialize-lambda.js +0 -56
  44. package/dist/deserialize/hydrate-files-map.d.ts +0 -3
  45. package/dist/deserialize/hydrate-files-map.js +0 -55
  46. package/dist/deserialize/maybe-read-json.d.ts +0 -5
  47. package/dist/deserialize/maybe-read-json.js +0 -37
  48. package/dist/deserialize/serialized-types.d.ts +0 -32
  49. package/dist/deserialize/serialized-types.js +0 -16
  50. package/dist/deserialize/validate-framework-version.d.ts +0 -6
  51. package/dist/deserialize/validate-framework-version.js +0 -63
  52. package/dist/finalize-lambda.d.ts +0 -77
  53. package/dist/finalize-lambda.js +0 -117
  54. package/dist/process-serverless/get-encrypted-env-file.d.ts +0 -11
  55. package/dist/process-serverless/get-encrypted-env-file.js +0 -47
  56. package/dist/process-serverless/get-lambda-environment.d.ts +0 -19
  57. package/dist/process-serverless/get-lambda-environment.js +0 -53
  58. package/dist/process-serverless/get-lambda-preload-scripts.d.ts +0 -22
  59. package/dist/process-serverless/get-lambda-preload-scripts.js +0 -43
  60. package/dist/process-serverless/get-lambda-supports-streaming.d.ts +0 -22
  61. package/dist/process-serverless/get-lambda-supports-streaming.js +0 -42
  62. package/dist/validate-lambda-size.d.ts +0 -45
  63. package/dist/validate-lambda-size.js +0 -117
@@ -1,139 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var validate_build_result_exports = {};
30
- __export(validate_build_result_exports, {
31
- SUPPORTED_AL2023_RUNTIMES: () => SUPPORTED_AL2023_RUNTIMES,
32
- validateBuildResult: () => validateBuildResult
33
- });
34
- module.exports = __toCommonJS(validate_build_result_exports);
35
- var import_minimatch = __toESM(require("minimatch"));
36
- var import_errors = require("../errors");
37
- const SUPPORTED_AL2023_RUNTIMES = [
38
- "nodejs20.x",
39
- "nodejs22.x",
40
- "nodejs24.x",
41
- "nodejs26.x",
42
- "provided.al2023",
43
- "python3.12",
44
- "python3.13",
45
- "python3.14",
46
- "ruby3.3",
47
- "bun1.4.x",
48
- "bun1.x",
49
- "executable"
50
- ];
51
- const DEFAULT_ENTRYPOINT = ".";
52
- const DEVELOPING_A_RUNTIME_URL = "https://github.com/vercel/vercel/blob/master/DEVELOPING_A_RUNTIME.md";
53
- function isSupportedAl2023Runtime(runtime) {
54
- return SUPPORTED_AL2023_RUNTIMES.some((supported) => supported === runtime);
55
- }
56
- async function validateBuildResult({
57
- allowInvalidRuntime = false,
58
- buildConfig,
59
- buildResponse,
60
- vercelBaseUrl
61
- }) {
62
- if (!("output" in buildResponse)) {
63
- throw new import_errors.NowBuildError({
64
- code: "NOW_SANDBOX_WORKER_BUILDER_ERROR",
65
- message: 'The result of "builder.build" must include an `output` property for "@vercel/vc-build".'
66
- });
67
- }
68
- if (!buildResponse.output || typeof buildResponse.output !== "object") {
69
- throw new import_errors.NowBuildError({
70
- code: "NOW_SANDBOX_WORKER_BUILDER_ERROR",
71
- message: 'The result of "builder.build" must be an object'
72
- });
73
- }
74
- const buildOutputMap = getAndVerifyOutputLambdasOrEdgeFuncs(buildResponse);
75
- const invalidRuntimes = [];
76
- for (const [name, entry] of Object.entries(buildOutputMap)) {
77
- let lambda;
78
- if (entry.type === "Prerender") {
79
- lambda = entry.lambda;
80
- } else if (entry.type === "Lambda") {
81
- lambda = entry;
82
- }
83
- if (!lambda)
84
- continue;
85
- if (!isSupportedAl2023Runtime(lambda.runtime)) {
86
- invalidRuntimes.push({ name, lambda });
87
- }
88
- }
89
- if (invalidRuntimes.length > 0 && !allowInvalidRuntime) {
90
- throw new import_errors.NowBuildError({
91
- code: "NOW_SANDBOX_WORKER_INVALID_RUNTIME",
92
- message: `The following Serverless Functions contain an invalid "runtime":
93
- ${invalidRuntimes.map(({ name, lambda }) => ` - ${name} (${lambda.runtime})`).join("\n")}`,
94
- link: getVercelUrl(
95
- "/docs/functions/runtimes#official-runtimes",
96
- vercelBaseUrl
97
- )
98
- });
99
- }
100
- const customFunctionConfiguration = getCustomFunctionConfigMaybe(buildConfig);
101
- if (customFunctionConfiguration?.runtime) {
102
- throw new import_errors.NowBuildError({
103
- code: "NOW_SANDBOX_WORKER_FUNCTION_RUNTIME_VERSION",
104
- message: `The Community Runtime ${customFunctionConfiguration.runtime} is not using version 3 of the Runtime API. If you are the Runtime author, see the docs by clicking "View Details" above.`,
105
- link: DEVELOPING_A_RUNTIME_URL
106
- });
107
- }
108
- return {
109
- buildOutputMap,
110
- customFunctionConfiguration
111
- };
112
- }
113
- function getCustomFunctionConfigMaybe(buildConfig) {
114
- const functions = buildConfig?.functions ?? buildConfig?.vercelConfig?.functions;
115
- if (!functions) {
116
- return;
117
- }
118
- for (const [funcPath, config] of Object.entries(functions)) {
119
- if (funcPath === DEFAULT_ENTRYPOINT || (0, import_minimatch.default)(DEFAULT_ENTRYPOINT, funcPath)) {
120
- return config;
121
- }
122
- }
123
- return void 0;
124
- }
125
- function getVercelUrl(path, vercelBaseUrl = "https://vercel.com") {
126
- const url = new URL(path, vercelBaseUrl);
127
- if (url.pathname === "/") {
128
- return url.href.slice(0, -1);
129
- }
130
- return url.href;
131
- }
132
- function getAndVerifyOutputLambdasOrEdgeFuncs(buildResponse) {
133
- return buildResponse.output;
134
- }
135
- // Annotate the CommonJS export names for ESM import in node:
136
- 0 && (module.exports = {
137
- SUPPORTED_AL2023_RUNTIMES,
138
- validateBuildResult
139
- });
@@ -1,8 +0,0 @@
1
- import type { Lambda } from '../lambda';
2
- interface PrerenderLike {
3
- lambda?: Lambda;
4
- }
5
- export declare function validatePrerender(prerender: PrerenderLike): asserts prerender is {
6
- lambda: Lambda;
7
- };
8
- export {};
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var validate_prerender_exports = {};
20
- __export(validate_prerender_exports, {
21
- validatePrerender: () => validatePrerender
22
- });
23
- module.exports = __toCommonJS(validate_prerender_exports);
24
- function validatePrerender(prerender) {
25
- if (typeof prerender.lambda === "undefined") {
26
- throw new Error(`Prerender "buildResult" is missing "lambda" property`);
27
- }
28
- }
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
31
- validatePrerender
32
- });
@@ -1,8 +0,0 @@
1
- import type FileFsRef from '../file-fs-ref';
2
- import { type Stats } from 'fs-extra';
3
- interface FileLike {
4
- fsPath?: string;
5
- }
6
- export declare function validateRegularFile(file: FileFsRef): Promise<Stats>;
7
- export declare function validateRegularFile<T extends object>(file: FileLike | T): Promise<Stats | null>;
8
- export {};
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var validate_regular_file_exports = {};
20
- __export(validate_regular_file_exports, {
21
- validateRegularFile: () => validateRegularFile
22
- });
23
- module.exports = __toCommonJS(validate_regular_file_exports);
24
- var import_errors = require("../errors");
25
- var import_fs_extra = require("fs-extra");
26
- async function validateRegularFile(file) {
27
- if ("fsPath" in file && typeof file.fsPath === "string") {
28
- const stat = await (0, import_fs_extra.lstat)(file.fsPath);
29
- if (!stat.isFile() && !stat.isDirectory() && !stat.isSymbolicLink()) {
30
- throw new import_errors.NowBuildError({
31
- message: `Output file path is actually not a (regular) file: \`${file.fsPath}\``,
32
- code: "OUTPUT_FILE_IS_NOT_REGULAR_FILE"
33
- });
34
- }
35
- return stat;
36
- }
37
- return null;
38
- }
39
- // Annotate the CommonJS export names for ESM import in node:
40
- 0 && (module.exports = {
41
- validateRegularFile
42
- });
@@ -1,6 +0,0 @@
1
- import type { Files } from './types';
2
- /**
3
- * Collects the total uncompressed size of a set of Lambda files.
4
- * Handles both FileBlob (in-memory) and FileFsRef (on-disk) file types.
5
- */
6
- export declare const collectUncompressedSize: (files: Files, ignoreFn?: (fileKey: string) => boolean) => Promise<number>;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var collect_uncompressed_size_exports = {};
20
- __export(collect_uncompressed_size_exports, {
21
- collectUncompressedSize: () => collectUncompressedSize
22
- });
23
- module.exports = __toCommonJS(collect_uncompressed_size_exports);
24
- var import_promises = require("fs/promises");
25
- const fileSizeCache = /* @__PURE__ */ new Map();
26
- const getFileSize = (path) => {
27
- if (!path)
28
- return Promise.resolve(0);
29
- const cached = fileSizeCache.get(path);
30
- if (cached) {
31
- return cached;
32
- }
33
- const promise = (0, import_promises.lstat)(path).then((stats) => stats.size);
34
- fileSizeCache.set(path, promise);
35
- return promise;
36
- };
37
- const collectUncompressedSize = async (files, ignoreFn) => {
38
- let size = 0;
39
- await Promise.all(
40
- Object.keys(files).map(async (fileKey) => {
41
- if (ignoreFn?.(fileKey)) {
42
- return;
43
- }
44
- const file = files[fileKey];
45
- if (file.type === "FileBlob") {
46
- size += file.data.length;
47
- } else if (file.type === "FileFsRef") {
48
- const fsRef = file;
49
- const curSize = fsRef.size ?? await getFileSize(fsRef.fsPath);
50
- size += curSize;
51
- }
52
- })
53
- );
54
- return size;
55
- };
56
- // Annotate the CommonJS export names for ESM import in node:
57
- 0 && (module.exports = {
58
- collectUncompressedSize
59
- });
@@ -1,8 +0,0 @@
1
- /**
2
- * Creates an async iterator that scans a directory for sub-directories
3
- * that end with the suffix `.func`.
4
- *
5
- * @param dir Absolute path to scan for `.func` directories
6
- * @param root The root directory from where the scanning started
7
- */
8
- export declare function createFunctionsIterator(dir: string, root?: string): AsyncIterable<string>;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var create_functions_iterator_exports = {};
20
- __export(create_functions_iterator_exports, {
21
- createFunctionsIterator: () => createFunctionsIterator
22
- });
23
- module.exports = __toCommonJS(create_functions_iterator_exports);
24
- var import_path = require("path");
25
- var import_fs_extra = require("fs-extra");
26
- const SUFFIX = ".func";
27
- async function* createFunctionsIterator(dir, root = dir) {
28
- let paths;
29
- try {
30
- paths = await (0, import_fs_extra.readdir)(dir);
31
- } catch (err) {
32
- if (err.code !== "ENOENT" && err.code !== "ENOTDIR") {
33
- throw err;
34
- }
35
- paths = [];
36
- }
37
- for (const path of paths) {
38
- const abs = (0, import_path.join)(dir, path);
39
- const s = await (0, import_fs_extra.stat)(abs);
40
- if (s.isDirectory()) {
41
- if (path.endsWith(SUFFIX)) {
42
- yield (0, import_path.relative)(root, abs.substring(0, abs.length - SUFFIX.length));
43
- } else {
44
- yield* createFunctionsIterator(abs, root);
45
- }
46
- }
47
- }
48
- }
49
- // Annotate the CommonJS export names for ESM import in node:
50
- 0 && (module.exports = {
51
- createFunctionsIterator
52
- });
@@ -1,56 +0,0 @@
1
- import type FileFsRef from '../file-fs-ref';
2
- import type { Lambda } from '../lambda';
3
- import type { Prerender } from '../prerender';
4
- import type { BuildResultV2Typical, Files } from '../types';
5
- import type { SerializedEdgeFunction, SerializedLambda, SerializedNodejsLambda, SerializedPrerender } from './serialized-types';
6
- export interface DeserializeBuildOutputPathOverride {
7
- contentType?: string;
8
- mode?: number;
9
- path?: string;
10
- }
11
- export interface DeserializeBuildOutputConfig<TFlags = unknown> {
12
- version?: 3;
13
- wildcard?: BuildResultV2Typical['wildcard'];
14
- images?: BuildResultV2Typical['images'];
15
- routes?: BuildResultV2Typical['routes'];
16
- afterCacheBypass?: BuildResultV2Typical['afterCacheBypass'];
17
- overrides?: Record<string, DeserializeBuildOutputPathOverride>;
18
- framework?: BuildResultV2Typical['framework'];
19
- crons?: BuildResultV2Typical['crons'];
20
- flags?: TFlags;
21
- deploymentId?: string;
22
- }
23
- export type DeserializeBuildOutputResult<TFlags = unknown, TMeta = unknown> = Omit<BuildResultV2Typical, 'flags'> & {
24
- flags?: TFlags;
25
- meta?: TMeta;
26
- };
27
- export type DeserializeBuildOutputLambdaOptions = {
28
- forceNodejsStreaming?: boolean;
29
- useOnlyStreamingLambda?: boolean;
30
- };
31
- export type GroupLambdasOptions = {
32
- force: 'all' | undefined;
33
- maxBundleSizeMb: number | undefined;
34
- debug: boolean | undefined;
35
- };
36
- export type DeserializeBuildOutputLambda<TLambda extends Lambda> = (files: Files, config: SerializedLambda | SerializedNodejsLambda, repoRootPath: string, fileFsRefsCache: Map<string, FileFsRef>, options?: DeserializeBuildOutputLambdaOptions) => Promise<TLambda>;
37
- export type GroupLambdas<TLambda extends Lambda> = (lambdas: Record<string, TLambda>, options: GroupLambdasOptions) => Promise<Record<string, TLambda>>;
38
- export type InspectSerializedLambda = (path: string, config: SerializedLambda | SerializedNodejsLambda, repoRootPath: string, hasServerActions: boolean) => Promise<boolean>;
39
- export interface DeserializeBuildOutputOptions<TMeta = unknown, TLambda extends Lambda = Lambda> {
40
- outputDir: string;
41
- repoRootPath: string;
42
- maxBundleSizeMb?: number;
43
- debugGroupLambdas?: boolean;
44
- useOnlyStreamingLambda?: boolean;
45
- forceNodejsStreaming?: boolean;
46
- deserializeLambda: DeserializeBuildOutputLambda<TLambda>;
47
- groupLambdas: GroupLambdas<TLambda>;
48
- inspectSerializedLambda?: InspectSerializedLambda;
49
- warn?: (message: string) => void;
50
- includeDeploymentId?: boolean;
51
- getMeta?: (hasServerActions: boolean) => TMeta;
52
- }
53
- export type DeserializeBuildOutputFiles = BuildResultV2Typical['output'];
54
- export type DeserializeBuildOutputPrerenderFallback = Prerender['fallback'];
55
- export type DeserializeBuildOutputSerializedConfig = SerializedEdgeFunction | SerializedLambda | SerializedNodejsLambda;
56
- export type DeserializeBuildOutputSerializedPrerender = SerializedPrerender;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var deserialize_build_output_types_exports = {};
16
- module.exports = __toCommonJS(deserialize_build_output_types_exports);
@@ -1,4 +0,0 @@
1
- import type { Lambda } from '../lambda';
2
- import type { DeserializeBuildOutputOptions, DeserializeBuildOutputResult } from './deserialize-build-output-types';
3
- export declare function validateDeploymentId(deploymentId?: string): void;
4
- export declare function deserializeBuildOutput<TFlags = unknown, TMeta = unknown, TLambda extends Lambda = Lambda>(options: DeserializeBuildOutputOptions<TMeta, TLambda>): Promise<DeserializeBuildOutputResult<TFlags, TMeta>>;