@vercel/hydrogen 3.0.0 → 4.0.3
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 +8 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -40,7 +40,8 @@ var build = async ({
|
|
|
40
40
|
workPath,
|
|
41
41
|
config,
|
|
42
42
|
meta = {},
|
|
43
|
-
service
|
|
43
|
+
service,
|
|
44
|
+
span
|
|
44
45
|
}) => {
|
|
45
46
|
const { installCommand, buildCommand } = config;
|
|
46
47
|
await (0, import_build_utils.download)(files, workPath, meta);
|
|
@@ -170,7 +171,12 @@ var build = async ({
|
|
|
170
171
|
regions: (() => {
|
|
171
172
|
try {
|
|
172
173
|
const project = new import_ts_morph.Project();
|
|
173
|
-
const config2 = (0, import_static_config.getConfig)(
|
|
174
|
+
const config2 = (0, import_static_config.getConfig)(
|
|
175
|
+
project,
|
|
176
|
+
edgeFunctionFiles["index.js"].fsPath,
|
|
177
|
+
void 0,
|
|
178
|
+
span
|
|
179
|
+
);
|
|
174
180
|
return config2?.regions;
|
|
175
181
|
} catch {
|
|
176
182
|
return void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/hydrogen",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"homepage": "https://vercel.com/docs",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"ts-morph": "12.0.0",
|
|
18
|
-
"@vercel/static-config": "3.4.
|
|
18
|
+
"@vercel/static-config": "3.4.3"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@vercel/build-utils": "14.
|
|
21
|
+
"@vercel/build-utils": "14.5.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "20.11.0",
|
|
25
25
|
"execa": "3.2.0",
|
|
26
26
|
"fs-extra": "11.1.0",
|
|
27
27
|
"vitest": "4.1.10",
|
|
28
|
-
"@vercel/build-utils": "14.
|
|
28
|
+
"@vercel/build-utils": "14.5.1"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "node ../../utils/build-builder.mjs",
|