@salesforce/core-bundle 8.5.6 → 8.5.7
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/lib/index.js +10 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -4664,7 +4664,7 @@ var require_package = __commonJS({
|
|
4664
4664
|
"package.json"(exports2, module2) {
|
4665
4665
|
module2.exports = {
|
4666
4666
|
name: "@salesforce/core-bundle",
|
4667
|
-
version: "8.5.
|
4667
|
+
version: "8.5.7",
|
4668
4668
|
description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
4669
4669
|
main: "lib/index",
|
4670
4670
|
types: "lib/index.d.ts",
|
@@ -123005,8 +123005,9 @@ var require_path_to_regexp = __commonJS({
|
|
123005
123005
|
var partial = prefix != null && next != null && next !== prefix;
|
123006
123006
|
var repeat = modifier === "+" || modifier === "*";
|
123007
123007
|
var optional = modifier === "?" || modifier === "*";
|
123008
|
-
var delimiter =
|
123008
|
+
var delimiter = prefix || defaultDelimiter;
|
123009
123009
|
var pattern = capture || group;
|
123010
|
+
var prevText = prefix || (typeof tokens[tokens.length - 1] === "string" ? tokens[tokens.length - 1] : "");
|
123010
123011
|
tokens.push({
|
123011
123012
|
name: name || key++,
|
123012
123013
|
prefix: prefix || "",
|
@@ -123015,7 +123016,7 @@ var require_path_to_regexp = __commonJS({
|
|
123015
123016
|
repeat,
|
123016
123017
|
partial,
|
123017
123018
|
asterisk: !!asterisk,
|
123018
|
-
pattern: pattern ? escapeGroup(pattern) : asterisk ? ".*" :
|
123019
|
+
pattern: pattern ? escapeGroup(pattern) : asterisk ? ".*" : restrictBacktrack(delimiter, prevText)
|
123019
123020
|
});
|
123020
123021
|
}
|
123021
123022
|
if (index < str.length) {
|
@@ -123026,6 +123027,12 @@ var require_path_to_regexp = __commonJS({
|
|
123026
123027
|
}
|
123027
123028
|
return tokens;
|
123028
123029
|
}
|
123030
|
+
function restrictBacktrack(delimiter, prevText) {
|
123031
|
+
if (!prevText || prevText.indexOf(delimiter) > -1) {
|
123032
|
+
return "[^" + escapeString(delimiter) + "]+?";
|
123033
|
+
}
|
123034
|
+
return escapeString(prevText) + "|(?:(?!" + escapeString(prevText) + ")[^" + escapeString(delimiter) + "])+?";
|
123035
|
+
}
|
123029
123036
|
function compile(str, options) {
|
123030
123037
|
return tokensToFunction(parse(str, options), options);
|
123031
123038
|
}
|