@vercel/gatsby-plugin-vercel-builder 2.2.22 → 2.2.24
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 +9 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -818,7 +818,7 @@ var require_superstatic = __commonJS({
|
|
|
818
818
|
convertCleanUrls: () => convertCleanUrls,
|
|
819
819
|
convertHeaders: () => convertHeaders,
|
|
820
820
|
convertRedirects: () => convertRedirects,
|
|
821
|
-
convertRewrites: () =>
|
|
821
|
+
convertRewrites: () => convertRewrites2,
|
|
822
822
|
convertTrailingSlash: () => convertTrailingSlash,
|
|
823
823
|
getCleanUrls: () => getCleanUrls2,
|
|
824
824
|
pathToRegexp: () => pathToRegexp,
|
|
@@ -934,7 +934,7 @@ var require_superstatic = __commonJS({
|
|
|
934
934
|
}
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function convertRewrites2(rewrites, internalParamNames) {
|
|
938
938
|
return rewrites.map((r) => {
|
|
939
939
|
const { src, segments } = sourceToRegex2(r.source);
|
|
940
940
|
const hasSegments = collectHasSegments(r.has);
|
|
@@ -952,7 +952,7 @@ var require_superstatic = __commonJS({
|
|
|
952
952
|
if (typeof r.destination === "string") {
|
|
953
953
|
route = { src, dest: interpolate(r.destination), check: true };
|
|
954
954
|
} else {
|
|
955
|
-
const destination = { ...r.destination };
|
|
955
|
+
const destination = { ...r.destination, type: "service" };
|
|
956
956
|
if (typeof destination.path === "string") {
|
|
957
957
|
destination.path = interpolate(destination.path);
|
|
958
958
|
}
|
|
@@ -1615,13 +1615,13 @@ var require_schemas = __commonJS({
|
|
|
1615
1615
|
pattern: "^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$"
|
|
1616
1616
|
};
|
|
1617
1617
|
var serviceDestinationSchema = {
|
|
1618
|
-
description: "A service-targeted destination that delegates routing into a named service from `services`.",
|
|
1618
|
+
description: "A service-targeted destination that delegates routing into a named service from `services`. Identified by the presence of `service`.",
|
|
1619
1619
|
type: "object",
|
|
1620
1620
|
additionalProperties: false,
|
|
1621
|
-
required: ["
|
|
1621
|
+
required: ["service"],
|
|
1622
1622
|
properties: {
|
|
1623
1623
|
type: {
|
|
1624
|
-
description: "
|
|
1624
|
+
description: "Optional explicit format marker. The destination shape is identified by the `service` property, so `type` is no longer required. When present it must be `service`.",
|
|
1625
1625
|
type: "string",
|
|
1626
1626
|
enum: ["service"]
|
|
1627
1627
|
},
|
|
@@ -2391,6 +2391,7 @@ var require_dist3 = __commonJS({
|
|
|
2391
2391
|
__export2(src_exports2, {
|
|
2392
2392
|
appendRoutesToPhase: () => import_append.appendRoutesToPhase,
|
|
2393
2393
|
compilePathToRegexpTemplate: () => import_superstatic2.compilePathToRegexpTemplate,
|
|
2394
|
+
convertRewrites: () => import_superstatic2.convertRewrites,
|
|
2394
2395
|
getCleanUrls: () => import_superstatic2.getCleanUrls,
|
|
2395
2396
|
getOwnershipGuard: () => import_service_route_ownership.getOwnershipGuard,
|
|
2396
2397
|
getTransformedRoutes: () => getTransformedRoutes2,
|
|
@@ -2445,6 +2446,8 @@ var require_dist3 = __commonJS({
|
|
|
2445
2446
|
if (typeof route.destination === "string") {
|
|
2446
2447
|
route.dest = route.destination;
|
|
2447
2448
|
delete route.destination;
|
|
2449
|
+
} else if (typeof route.destination.service === "string") {
|
|
2450
|
+
route.destination = { ...route.destination, type: "service" };
|
|
2448
2451
|
}
|
|
2449
2452
|
}
|
|
2450
2453
|
if (route.statusCode !== void 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/gatsby-plugin-vercel-builder",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.24",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"esbuild": "0.27.0",
|
|
18
18
|
"etag": "1.8.1",
|
|
19
19
|
"fs-extra": "11.1.0",
|
|
20
|
-
"@vercel/build-utils": "13.32.
|
|
20
|
+
"@vercel/build-utils": "13.32.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/etag": "1.8.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@types/node": "20.11.0",
|
|
26
26
|
"@types/react": "18.0.26",
|
|
27
27
|
"vitest": "2.0.3",
|
|
28
|
-
"@vercel/routing-utils": "6.
|
|
28
|
+
"@vercel/routing-utils": "6.4.0"
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"scripts": {
|