semantic-release-lerna 2.16.1 → 2.16.3
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 +16 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22309,6 +22309,7 @@ import fs2 from "node:fs";
|
|
|
22309
22309
|
import path8 from "node:path";
|
|
22310
22310
|
import { promisify as promisify4 } from "node:util";
|
|
22311
22311
|
var isNegativePattern = (pattern) => pattern[0] === "!";
|
|
22312
|
+
var normalizeAbsolutePatternToRelative = (pattern) => pattern.startsWith("/") ? pattern.slice(1) : pattern;
|
|
22312
22313
|
var bindFsMethod = (object, methodName) => {
|
|
22313
22314
|
const method = object?.[methodName];
|
|
22314
22315
|
return typeof method === "function" ? method.bind(object) : void 0;
|
|
@@ -22848,8 +22849,12 @@ var createFilterFunction = (isIgnored, cwd) => {
|
|
|
22848
22849
|
var unionFastGlobResults = (results, filter2) => results.flat().filter((fastGlobResult) => filter2(fastGlobResult));
|
|
22849
22850
|
var convertNegativePatterns = (patterns, options) => {
|
|
22850
22851
|
if (patterns.length > 0 && patterns.every((pattern) => isNegativePattern(pattern))) {
|
|
22852
|
+
if (options.expandNegationOnlyPatterns === false) {
|
|
22853
|
+
return [];
|
|
22854
|
+
}
|
|
22851
22855
|
patterns = ["**/*", ...patterns];
|
|
22852
22856
|
}
|
|
22857
|
+
patterns = patterns.map((pattern) => isNegativePattern(pattern) ? `!${normalizeAbsolutePatternToRelative(pattern.slice(1))}` : pattern);
|
|
22853
22858
|
const tasks = [];
|
|
22854
22859
|
while (patterns.length > 0) {
|
|
22855
22860
|
const index = patterns.findIndex((pattern) => isNegativePattern(pattern));
|
|
@@ -27997,13 +28002,11 @@ var normalizeDataURL = (urlString, { stripHash }) => {
|
|
|
27997
28002
|
if (!match2) {
|
|
27998
28003
|
throw new Error(`Invalid URL: ${urlString}`);
|
|
27999
28004
|
}
|
|
28000
|
-
|
|
28005
|
+
const { type: type2, data, hash } = match2.groups;
|
|
28001
28006
|
const mediaType = type2.split(";");
|
|
28002
|
-
|
|
28003
|
-
|
|
28004
|
-
if (mediaType[mediaType.length - 1] === "base64") {
|
|
28007
|
+
const isBase64 = mediaType.at(-1) === "base64";
|
|
28008
|
+
if (isBase64) {
|
|
28005
28009
|
mediaType.pop();
|
|
28006
|
-
isBase64 = true;
|
|
28007
28010
|
}
|
|
28008
28011
|
const mimeType = mediaType.shift()?.toLowerCase() ?? "";
|
|
28009
28012
|
const attributes = mediaType.map((attribute) => {
|
|
@@ -28016,16 +28019,15 @@ var normalizeDataURL = (urlString, { stripHash }) => {
|
|
|
28016
28019
|
}
|
|
28017
28020
|
return `${key}${value ? `=${value}` : ""}`;
|
|
28018
28021
|
}).filter(Boolean);
|
|
28019
|
-
const normalizedMediaType = [
|
|
28020
|
-
...attributes
|
|
28021
|
-
];
|
|
28022
|
+
const normalizedMediaType = [...attributes];
|
|
28022
28023
|
if (isBase64) {
|
|
28023
28024
|
normalizedMediaType.push("base64");
|
|
28024
28025
|
}
|
|
28025
28026
|
if (normalizedMediaType.length > 0 || mimeType && mimeType !== DATA_URL_DEFAULT_MIME_TYPE) {
|
|
28026
28027
|
normalizedMediaType.unshift(mimeType);
|
|
28027
28028
|
}
|
|
28028
|
-
|
|
28029
|
+
const hashPart = stripHash || !hash ? "" : `#${hash}`;
|
|
28030
|
+
return `data:${normalizedMediaType.join(";")},${isBase64 ? data.trim() : data}${hashPart}`;
|
|
28029
28031
|
};
|
|
28030
28032
|
function normalizeUrl(urlString, options) {
|
|
28031
28033
|
options = {
|
|
@@ -28111,11 +28113,11 @@ function normalizeUrl(urlString, options) {
|
|
|
28111
28113
|
options.removeDirectoryIndex = [/^index\.[a-z]+$/];
|
|
28112
28114
|
}
|
|
28113
28115
|
if (Array.isArray(options.removeDirectoryIndex) && options.removeDirectoryIndex.length > 0) {
|
|
28114
|
-
|
|
28115
|
-
const lastComponent = pathComponents
|
|
28116
|
-
if (testParameter(lastComponent, options.removeDirectoryIndex)) {
|
|
28117
|
-
pathComponents
|
|
28118
|
-
urlObject.pathname = pathComponents.
|
|
28116
|
+
const pathComponents = urlObject.pathname.split("/").filter(Boolean);
|
|
28117
|
+
const lastComponent = pathComponents.at(-1);
|
|
28118
|
+
if (lastComponent && testParameter(lastComponent, options.removeDirectoryIndex)) {
|
|
28119
|
+
pathComponents.pop();
|
|
28120
|
+
urlObject.pathname = pathComponents.length > 0 ? `/${pathComponents.join("/")}/` : "/";
|
|
28119
28121
|
}
|
|
28120
28122
|
}
|
|
28121
28123
|
if (options.removePath) {
|