@vercel/build-utils 13.14.2 → 13.16.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.
- package/CHANGELOG.md +20 -0
- package/dist/collect-build-result/file-to-build-output-file.d.ts +26 -0
- package/dist/collect-build-result/file-to-build-output-file.js +54 -0
- package/dist/collect-build-result/get-content-type.d.ts +1 -0
- package/dist/collect-build-result/get-content-type.js +45 -0
- package/dist/collect-build-result/prerender-to-build-output-file.d.ts +23 -0
- package/dist/collect-build-result/prerender-to-build-output-file.js +85 -0
- package/dist/collect-build-result/validate-prerender.d.ts +8 -0
- package/dist/collect-build-result/validate-prerender.js +32 -0
- package/dist/collect-build-result/validate-regular-file.d.ts +9 -0
- package/dist/collect-build-result/validate-regular-file.js +42 -0
- package/dist/deserialize/create-functions-iterator.d.ts +8 -0
- package/dist/deserialize/create-functions-iterator.js +52 -0
- package/dist/deserialize/deserialize-edge-function.d.ts +5 -0
- package/dist/deserialize/deserialize-edge-function.js +47 -0
- package/dist/deserialize/deserialize-lambda.d.ts +22 -0
- package/dist/deserialize/deserialize-lambda.js +56 -0
- package/dist/deserialize/hydrate-files-map.d.ts +3 -0
- package/dist/deserialize/hydrate-files-map.js +55 -0
- package/dist/deserialize/maybe-read-json.d.ts +5 -0
- package/dist/deserialize/maybe-read-json.js +37 -0
- package/dist/deserialize/serialized-types.d.ts +28 -0
- package/dist/deserialize/serialized-types.js +16 -0
- package/dist/deserialize/validate-framework-version.d.ts +5 -0
- package/dist/deserialize/validate-framework-version.js +53 -0
- package/dist/framework-helpers.d.ts +1 -1
- package/dist/framework-helpers.js +2 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +8727 -105
- package/dist/lambda.js +5 -6
- package/dist/types.d.ts +7 -1
- package/package.json +3 -1
package/dist/lambda.js
CHANGED
|
@@ -210,12 +210,6 @@ class Lambda {
|
|
|
210
210
|
trigger.consumer.length > 0,
|
|
211
211
|
`${prefix}.consumer cannot be empty`
|
|
212
212
|
);
|
|
213
|
-
if (trigger.type === "queue/v2beta") {
|
|
214
|
-
(0, import_assert.default)(
|
|
215
|
-
experimentalTriggers.length === 1,
|
|
216
|
-
'"experimentalTriggers" can only have one item for queue/v2beta'
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
213
|
if (trigger.maxDeliveries !== void 0) {
|
|
220
214
|
(0, import_assert.default)(
|
|
221
215
|
typeof trigger.maxDeliveries === "number",
|
|
@@ -368,6 +362,11 @@ async function getLambdaOptionsFromFunction({
|
|
|
368
362
|
return trigger;
|
|
369
363
|
}
|
|
370
364
|
);
|
|
365
|
+
if (experimentalTriggers && experimentalTriggers.length > 1 && experimentalTriggers.some((t) => t.type === "queue/v2beta")) {
|
|
366
|
+
throw new Error(
|
|
367
|
+
`functions["${pattern}"].experimentalTriggers can only have one item for queue/v2beta`
|
|
368
|
+
);
|
|
369
|
+
}
|
|
371
370
|
return {
|
|
372
371
|
architecture: fn.architecture,
|
|
373
372
|
memory: fn.memory,
|
package/dist/types.d.ts
CHANGED
|
@@ -671,7 +671,13 @@ export interface ServiceMount {
|
|
|
671
671
|
export interface ExperimentalServiceConfig {
|
|
672
672
|
type?: ServiceType;
|
|
673
673
|
/**
|
|
674
|
-
*
|
|
674
|
+
* Path to the service's root directory relative to the project root.
|
|
675
|
+
* Should contain a manifest file (package.json, pyproject.toml, etc.).
|
|
676
|
+
* Defaults to ".".
|
|
677
|
+
*/
|
|
678
|
+
root?: string;
|
|
679
|
+
/**
|
|
680
|
+
* Service entrypoint, relative to the service root directory.
|
|
675
681
|
* Can be either a file path (runtime entrypoint) or a directory path
|
|
676
682
|
* (service workspace for framework-based services).
|
|
677
683
|
* @example "apps/web", "services/api/src/index.ts", "services/fastapi/main.py"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/build-utils",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.16.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"@types/glob": "7.2.0",
|
|
27
27
|
"@types/jest": "27.4.1",
|
|
28
28
|
"@types/js-yaml": "3.12.1",
|
|
29
|
+
"@types/mime-types": "2.1.0",
|
|
29
30
|
"@types/minimatch": "^5.1.2",
|
|
30
31
|
"@types/ms": "0.7.31",
|
|
31
32
|
"@types/multistream": "2.1.1",
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
"into-stream": "5.0.0",
|
|
46
47
|
"jest-junit": "16.0.0",
|
|
47
48
|
"js-yaml": "3.13.1",
|
|
49
|
+
"mime-types": "2.1.28",
|
|
48
50
|
"minimatch": "3.1.2",
|
|
49
51
|
"ms": "2.1.3",
|
|
50
52
|
"multistream": "2.1.1",
|