@vercel/remix-builder 3.0.0 → 4.0.0
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 -25
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2442,9 +2442,9 @@ var require_semver2 = __commonJS({
|
|
|
2442
2442
|
}
|
|
2443
2443
|
});
|
|
2444
2444
|
|
|
2445
|
-
// ../../node_modules/.pnpm/path-to-regexp@6.
|
|
2445
|
+
// ../../node_modules/.pnpm/path-to-regexp@6.2.1/node_modules/path-to-regexp/dist/index.js
|
|
2446
2446
|
var require_dist = __commonJS({
|
|
2447
|
-
"../../node_modules/.pnpm/path-to-regexp@6.
|
|
2447
|
+
"../../node_modules/.pnpm/path-to-regexp@6.2.1/node_modules/path-to-regexp/dist/index.js"(exports) {
|
|
2448
2448
|
"use strict";
|
|
2449
2449
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2450
2450
|
exports.pathToRegexp = exports.tokensToRegexp = exports.regexpToFunction = exports.match = exports.tokensToFunction = exports.compile = exports.parse = void 0;
|
|
@@ -2536,7 +2536,8 @@ var require_dist = __commonJS({
|
|
|
2536
2536
|
options = {};
|
|
2537
2537
|
}
|
|
2538
2538
|
var tokens = lexer(str);
|
|
2539
|
-
var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a
|
|
2539
|
+
var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a;
|
|
2540
|
+
var defaultPattern = "[^".concat(escapeString(options.delimiter || "/#?"), "]+?");
|
|
2540
2541
|
var result = [];
|
|
2541
2542
|
var key = 0;
|
|
2542
2543
|
var i = 0;
|
|
@@ -2560,24 +2561,6 @@ var require_dist = __commonJS({
|
|
|
2560
2561
|
}
|
|
2561
2562
|
return result2;
|
|
2562
2563
|
};
|
|
2563
|
-
var isSafe = function(value2) {
|
|
2564
|
-
for (var _i = 0, delimiter_1 = delimiter; _i < delimiter_1.length; _i++) {
|
|
2565
|
-
var char2 = delimiter_1[_i];
|
|
2566
|
-
if (value2.indexOf(char2) > -1)
|
|
2567
|
-
return true;
|
|
2568
|
-
}
|
|
2569
|
-
return false;
|
|
2570
|
-
};
|
|
2571
|
-
var safePattern = function(prefix2) {
|
|
2572
|
-
var prev = result[result.length - 1];
|
|
2573
|
-
var prevText = prefix2 || (prev && typeof prev === "string" ? prev : "");
|
|
2574
|
-
if (prev && !prevText) {
|
|
2575
|
-
throw new TypeError('Must have text between two parameters, missing text after "'.concat(prev.name, '"'));
|
|
2576
|
-
}
|
|
2577
|
-
if (!prevText || isSafe(prevText))
|
|
2578
|
-
return "[^".concat(escapeString(delimiter), "]+?");
|
|
2579
|
-
return "(?:(?!".concat(escapeString(prevText), ")[^").concat(escapeString(delimiter), "])+?");
|
|
2580
|
-
};
|
|
2581
2564
|
while (i < tokens.length) {
|
|
2582
2565
|
var char = tryConsume("CHAR");
|
|
2583
2566
|
var name = tryConsume("NAME");
|
|
@@ -2596,7 +2579,7 @@ var require_dist = __commonJS({
|
|
|
2596
2579
|
name: name || key++,
|
|
2597
2580
|
prefix,
|
|
2598
2581
|
suffix: "",
|
|
2599
|
-
pattern: pattern ||
|
|
2582
|
+
pattern: pattern || defaultPattern,
|
|
2600
2583
|
modifier: tryConsume("MODIFIER") || ""
|
|
2601
2584
|
});
|
|
2602
2585
|
continue;
|
|
@@ -2619,7 +2602,7 @@ var require_dist = __commonJS({
|
|
|
2619
2602
|
mustConsume("CLOSE");
|
|
2620
2603
|
result.push({
|
|
2621
2604
|
name: name_1 || (pattern_1 ? key++ : ""),
|
|
2622
|
-
pattern: name_1 && !pattern_1 ?
|
|
2605
|
+
pattern: name_1 && !pattern_1 ? defaultPattern : pattern_1,
|
|
2623
2606
|
prefix,
|
|
2624
2607
|
suffix,
|
|
2625
2608
|
modifier: tryConsume("MODIFIER") || ""
|
|
@@ -2795,9 +2778,10 @@ var require_dist = __commonJS({
|
|
|
2795
2778
|
}
|
|
2796
2779
|
} else {
|
|
2797
2780
|
if (token.modifier === "+" || token.modifier === "*") {
|
|
2798
|
-
|
|
2781
|
+
route += "((?:".concat(token.pattern, ")").concat(token.modifier, ")");
|
|
2782
|
+
} else {
|
|
2783
|
+
route += "(".concat(token.pattern, ")").concat(token.modifier);
|
|
2799
2784
|
}
|
|
2800
|
-
route += "(".concat(token.pattern, ")").concat(token.modifier);
|
|
2801
2785
|
}
|
|
2802
2786
|
} else {
|
|
2803
2787
|
route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/remix-builder",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"homepage": "https://vercel.com/docs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@vercel/build-utils": "8.8.0",
|
|
29
29
|
"glob": "10.3.16",
|
|
30
30
|
"jest-junit": "16.0.0",
|
|
31
|
-
"path-to-regexp": "6.
|
|
31
|
+
"path-to-regexp": "6.2.1",
|
|
32
32
|
"semver": "7.5.2",
|
|
33
33
|
"vitest": "2.0.1"
|
|
34
34
|
},
|