@vercel/node 5.2.0 → 5.2.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/dist/index.js +15 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -70095,11 +70095,25 @@ var build = async ({
|
|
70095
70095
|
shouldAddSourcemapSupport,
|
70096
70096
|
awsLambdaHandler,
|
70097
70097
|
supportsResponseStreaming,
|
70098
|
-
maxDuration: staticConfig?.maxDuration
|
70098
|
+
maxDuration: staticConfig?.maxDuration,
|
70099
|
+
regions: normalizeRequestedRegions(
|
70100
|
+
staticConfig?.preferredRegion ?? staticConfig?.regions
|
70101
|
+
)
|
70099
70102
|
});
|
70100
70103
|
}
|
70101
70104
|
return { routes, output };
|
70102
70105
|
};
|
70106
|
+
function normalizeRequestedRegions(regions) {
|
70107
|
+
if (regions === "all") {
|
70108
|
+
return ["all"];
|
70109
|
+
} else if (regions === "auto" || regions === "default") {
|
70110
|
+
return void 0;
|
70111
|
+
}
|
70112
|
+
if (typeof regions === "string") {
|
70113
|
+
return [regions];
|
70114
|
+
}
|
70115
|
+
return regions;
|
70116
|
+
}
|
70103
70117
|
|
70104
70118
|
// src/prepare-cache.ts
|
70105
70119
|
var import_build_utils4 = require("@vercel/build-utils");
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/node",
|
3
|
-
"version": "5.2.
|
3
|
+
"version": "5.2.2",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
@@ -17,10 +17,10 @@
|
|
17
17
|
"@edge-runtime/primitives": "4.1.0",
|
18
18
|
"@edge-runtime/vm": "3.2.0",
|
19
19
|
"@types/node": "16.18.11",
|
20
|
-
"@vercel/build-utils": "10.6.
|
20
|
+
"@vercel/build-utils": "10.6.1",
|
21
21
|
"@vercel/error-utils": "2.0.3",
|
22
22
|
"@vercel/nft": "0.29.2",
|
23
|
-
"@vercel/static-config": "3.1.
|
23
|
+
"@vercel/static-config": "3.1.1",
|
24
24
|
"async-listen": "3.0.0",
|
25
25
|
"cjs-module-lexer": "1.2.3",
|
26
26
|
"edge-runtime": "2.5.9",
|