@vercel/gatsby-plugin-vercel-builder 2.0.68 → 2.0.69
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 +46 -59
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -790,17 +790,43 @@ var require_dist2 = __commonJS({
|
|
|
790
790
|
}
|
|
791
791
|
});
|
|
792
792
|
|
|
793
|
-
//
|
|
794
|
-
var
|
|
795
|
-
"
|
|
793
|
+
// ../routing-utils/dist/superstatic.js
|
|
794
|
+
var require_superstatic = __commonJS({
|
|
795
|
+
"../routing-utils/dist/superstatic.js"(exports, module2) {
|
|
796
796
|
"use strict";
|
|
797
|
-
Object.defineProperty
|
|
798
|
-
|
|
799
|
-
var
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
797
|
+
var __defProp2 = Object.defineProperty;
|
|
798
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
799
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
800
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
801
|
+
var __export2 = (target, all) => {
|
|
802
|
+
for (var name in all)
|
|
803
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
804
|
+
};
|
|
805
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
806
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
807
|
+
for (let key of __getOwnPropNames2(from))
|
|
808
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
809
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
810
|
+
}
|
|
811
|
+
return to;
|
|
812
|
+
};
|
|
813
|
+
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
814
|
+
var superstatic_exports = {};
|
|
815
|
+
__export2(superstatic_exports, {
|
|
816
|
+
collectHasSegments: () => collectHasSegments,
|
|
817
|
+
convertCleanUrls: () => convertCleanUrls,
|
|
818
|
+
convertHeaders: () => convertHeaders,
|
|
819
|
+
convertRedirects: () => convertRedirects,
|
|
820
|
+
convertRewrites: () => convertRewrites,
|
|
821
|
+
convertTrailingSlash: () => convertTrailingSlash,
|
|
822
|
+
getCleanUrls: () => getCleanUrls2,
|
|
823
|
+
pathToRegexp: () => pathToRegexp,
|
|
824
|
+
sourceToRegex: () => sourceToRegex
|
|
825
|
+
});
|
|
826
|
+
module2.exports = __toCommonJS2(superstatic_exports);
|
|
827
|
+
var import_url = require("url");
|
|
828
|
+
var import_path_to_regexp = require_dist();
|
|
829
|
+
var import_path_to_regexp_updated = require_dist2();
|
|
804
830
|
function cloneKeys(keys) {
|
|
805
831
|
if (typeof keys === "undefined") {
|
|
806
832
|
return void 0;
|
|
@@ -814,10 +840,10 @@ var require_dist3 = __commonJS({
|
|
|
814
840
|
}
|
|
815
841
|
function pathToRegexp(callerId, path2, keys, options) {
|
|
816
842
|
const newKeys = cloneKeys(keys);
|
|
817
|
-
const currentRegExp = (0,
|
|
843
|
+
const currentRegExp = (0, import_path_to_regexp.pathToRegexp)(path2, keys, options);
|
|
818
844
|
try {
|
|
819
845
|
const currentKeys = keys;
|
|
820
|
-
const newRegExp = (0,
|
|
846
|
+
const newRegExp = (0, import_path_to_regexp_updated.pathToRegexp)(path2, newKeys, options);
|
|
821
847
|
const isDiffRegExp = currentRegExp.toString() !== newRegExp.toString();
|
|
822
848
|
if (process.env.FORCE_PATH_TO_REGEXP_LOG || isDiffRegExp) {
|
|
823
849
|
const message = JSON.stringify({
|
|
@@ -846,45 +872,6 @@ var require_dist3 = __commonJS({
|
|
|
846
872
|
}
|
|
847
873
|
return currentRegExp;
|
|
848
874
|
}
|
|
849
|
-
exports.pathToRegexp = pathToRegexp;
|
|
850
|
-
}
|
|
851
|
-
});
|
|
852
|
-
|
|
853
|
-
// ../routing-utils/dist/superstatic.js
|
|
854
|
-
var require_superstatic = __commonJS({
|
|
855
|
-
"../routing-utils/dist/superstatic.js"(exports, module2) {
|
|
856
|
-
"use strict";
|
|
857
|
-
var __defProp2 = Object.defineProperty;
|
|
858
|
-
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
859
|
-
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
860
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
861
|
-
var __export2 = (target, all) => {
|
|
862
|
-
for (var name in all)
|
|
863
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
864
|
-
};
|
|
865
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
866
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
867
|
-
for (let key of __getOwnPropNames2(from))
|
|
868
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
869
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
870
|
-
}
|
|
871
|
-
return to;
|
|
872
|
-
};
|
|
873
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
874
|
-
var superstatic_exports = {};
|
|
875
|
-
__export2(superstatic_exports, {
|
|
876
|
-
collectHasSegments: () => collectHasSegments,
|
|
877
|
-
convertCleanUrls: () => convertCleanUrls,
|
|
878
|
-
convertHeaders: () => convertHeaders,
|
|
879
|
-
convertRedirects: () => convertRedirects,
|
|
880
|
-
convertRewrites: () => convertRewrites,
|
|
881
|
-
convertTrailingSlash: () => convertTrailingSlash,
|
|
882
|
-
getCleanUrls: () => getCleanUrls2,
|
|
883
|
-
sourceToRegex: () => sourceToRegex
|
|
884
|
-
});
|
|
885
|
-
module2.exports = __toCommonJS2(superstatic_exports);
|
|
886
|
-
var import_url = require("url");
|
|
887
|
-
var import_path_to_regexp = require_dist3();
|
|
888
875
|
var UN_NAMED_SEGMENT = "__UN_NAMED_SEGMENT__";
|
|
889
876
|
function getCleanUrls2(filePaths) {
|
|
890
877
|
const htmlFiles = filePaths.map(toRoute).filter((f) => f.endsWith(".html")).map((f) => ({
|
|
@@ -1040,7 +1027,7 @@ var require_superstatic = __commonJS({
|
|
|
1040
1027
|
}
|
|
1041
1028
|
function sourceToRegex(source) {
|
|
1042
1029
|
const keys = [];
|
|
1043
|
-
const r =
|
|
1030
|
+
const r = pathToRegexp("632", source, keys, {
|
|
1044
1031
|
strict: true,
|
|
1045
1032
|
sensitive: true,
|
|
1046
1033
|
delimiter: "/"
|
|
@@ -1113,9 +1100,9 @@ var require_superstatic = __commonJS({
|
|
|
1113
1100
|
const hashKeys = [];
|
|
1114
1101
|
const hostnameKeys = [];
|
|
1115
1102
|
try {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1103
|
+
pathToRegexp("528", pathname, pathnameKeys);
|
|
1104
|
+
pathToRegexp("834", hash || "", hashKeys);
|
|
1105
|
+
pathToRegexp("712", hostname || "", hostnameKeys);
|
|
1119
1106
|
} catch (_) {
|
|
1120
1107
|
}
|
|
1121
1108
|
destParams = new Set(
|
|
@@ -1223,7 +1210,7 @@ var require_append = __commonJS({
|
|
|
1223
1210
|
appendRoutesToPhase: () => appendRoutesToPhase2
|
|
1224
1211
|
});
|
|
1225
1212
|
module2.exports = __toCommonJS2(append_exports);
|
|
1226
|
-
var import_index =
|
|
1213
|
+
var import_index = require_dist3();
|
|
1227
1214
|
function appendRoutesToPhase2({
|
|
1228
1215
|
routes: prevRoutes,
|
|
1229
1216
|
newRoutes,
|
|
@@ -1291,7 +1278,7 @@ var require_merge = __commonJS({
|
|
|
1291
1278
|
mergeRoutes: () => mergeRoutes2
|
|
1292
1279
|
});
|
|
1293
1280
|
module2.exports = __toCommonJS2(merge_exports);
|
|
1294
|
-
var import_index =
|
|
1281
|
+
var import_index = require_dist3();
|
|
1295
1282
|
function getBuilderRoutesMapping(builds) {
|
|
1296
1283
|
const builderRoutes = {};
|
|
1297
1284
|
for (const { entrypoint, routes, use } of builds) {
|
|
@@ -1733,7 +1720,7 @@ var require_types = __commonJS({
|
|
|
1733
1720
|
});
|
|
1734
1721
|
|
|
1735
1722
|
// ../routing-utils/dist/index.js
|
|
1736
|
-
var
|
|
1723
|
+
var require_dist3 = __commonJS({
|
|
1737
1724
|
"../routing-utils/dist/index.js"(exports, module2) {
|
|
1738
1725
|
"use strict";
|
|
1739
1726
|
var __defProp2 = Object.defineProperty;
|
|
@@ -2107,7 +2094,7 @@ __export(src_exports, {
|
|
|
2107
2094
|
generateVercelBuildOutputAPI3Output: () => generateVercelBuildOutputAPI3Output
|
|
2108
2095
|
});
|
|
2109
2096
|
module.exports = __toCommonJS(src_exports);
|
|
2110
|
-
var import_routing_utils = __toESM(
|
|
2097
|
+
var import_routing_utils = __toESM(require_dist3());
|
|
2111
2098
|
var import_fs_extra4 = require("fs-extra");
|
|
2112
2099
|
|
|
2113
2100
|
// src/schemas.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/gatsby-plugin-vercel-builder",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.69",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@sinclair/typebox": "0.25.24",
|
|
17
|
-
"@vercel/build-utils": "9.
|
|
17
|
+
"@vercel/build-utils": "9.3.0",
|
|
18
18
|
"esbuild": "0.14.47",
|
|
19
19
|
"etag": "1.8.1",
|
|
20
20
|
"fs-extra": "11.1.0"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@types/jest": "27.5.1",
|
|
26
26
|
"@types/node": "14.18.33",
|
|
27
27
|
"@types/react": "18.0.26",
|
|
28
|
-
"@vercel/routing-utils": "5.0.
|
|
28
|
+
"@vercel/routing-utils": "5.0.4",
|
|
29
29
|
"jest-junit": "16.0.0",
|
|
30
30
|
"typescript": "4.9.5"
|
|
31
31
|
},
|