@vercel/redwood 2.4.11 → 2.4.12
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 +1 -40
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1483,7 +1483,6 @@ var require_schemas = __commonJS({
|
|
|
1483
1483
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
1484
1484
|
var schemas_exports = {};
|
|
1485
1485
|
__export2(schemas_exports, {
|
|
1486
|
-
bulkRedirectsSchema: () => bulkRedirectsSchema,
|
|
1487
1486
|
cleanUrlsSchema: () => cleanUrlsSchema,
|
|
1488
1487
|
hasSchema: () => hasSchema,
|
|
1489
1488
|
headersSchema: () => headersSchema,
|
|
@@ -2044,7 +2043,7 @@ var require_schemas = __commonJS({
|
|
|
2044
2043
|
required: ["source", "destination"],
|
|
2045
2044
|
properties: {
|
|
2046
2045
|
source: {
|
|
2047
|
-
description: "A pattern that matches each incoming pathname (excluding querystring).",
|
|
2046
|
+
description: "A pattern that matches each incoming pathname (excluding querystring) or a full URL including domain.",
|
|
2048
2047
|
type: "string",
|
|
2049
2048
|
maxLength: 4096
|
|
2050
2049
|
},
|
|
@@ -2126,44 +2125,6 @@ var require_schemas = __commonJS({
|
|
|
2126
2125
|
description: "When `false`, visiting a path that ends with a forward slash will respond with a `308` status code and redirect to the path without the trailing slash.",
|
|
2127
2126
|
type: "boolean"
|
|
2128
2127
|
};
|
|
2129
|
-
var bulkRedirectsSchema = {
|
|
2130
|
-
type: "array",
|
|
2131
|
-
description: "A list of bulk redirect definitions.",
|
|
2132
|
-
items: {
|
|
2133
|
-
type: "object",
|
|
2134
|
-
additionalProperties: false,
|
|
2135
|
-
required: ["source", "destination"],
|
|
2136
|
-
properties: {
|
|
2137
|
-
source: {
|
|
2138
|
-
description: "The exact URL path or pattern to match.",
|
|
2139
|
-
type: "string",
|
|
2140
|
-
maxLength: 2048
|
|
2141
|
-
},
|
|
2142
|
-
destination: {
|
|
2143
|
-
description: "The target URL path where traffic should be redirected.",
|
|
2144
|
-
type: "string",
|
|
2145
|
-
maxLength: 2048
|
|
2146
|
-
},
|
|
2147
|
-
permanent: {
|
|
2148
|
-
description: "A boolean to toggle between permanent and temporary redirect. When `true`, the status code is `308`. When `false` the status code is `307`.",
|
|
2149
|
-
type: "boolean"
|
|
2150
|
-
},
|
|
2151
|
-
statusCode: {
|
|
2152
|
-
description: "An optional integer to define the status code of the redirect.",
|
|
2153
|
-
type: "integer",
|
|
2154
|
-
enum: [301, 302, 307, 308]
|
|
2155
|
-
},
|
|
2156
|
-
sensitive: {
|
|
2157
|
-
description: "A boolean to toggle between case-sensitive and case-insensitive redirect. When `true`, the redirect is case-sensitive. When `false` the redirect is case-insensitive.",
|
|
2158
|
-
type: "boolean"
|
|
2159
|
-
},
|
|
2160
|
-
query: {
|
|
2161
|
-
description: "Whether the query string should be preserved by the redirect. The default is `false`.",
|
|
2162
|
-
type: "boolean"
|
|
2163
|
-
}
|
|
2164
|
-
}
|
|
2165
|
-
}
|
|
2166
|
-
};
|
|
2167
2128
|
}
|
|
2168
2129
|
});
|
|
2169
2130
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/redwood",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.12",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://vercel.com/docs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"directory": "packages/redwood"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@vercel/nft": "1.
|
|
16
|
+
"@vercel/nft": "1.5.0",
|
|
17
17
|
"semver": "6.3.1",
|
|
18
18
|
"ts-morph": "12.0.0",
|
|
19
19
|
"@vercel/static-config": "3.2.0"
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"execa": "3.2.0",
|
|
26
26
|
"fs-extra": "11.1.0",
|
|
27
27
|
"jest-junit": "16.0.0",
|
|
28
|
-
"@vercel/build-utils": "13.
|
|
29
|
-
"@vercel/routing-utils": "6.
|
|
28
|
+
"@vercel/build-utils": "13.10.0",
|
|
29
|
+
"@vercel/routing-utils": "6.1.1"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "node ../../utils/build-builder.mjs",
|