semantic-release-lerna 2.18.0 → 2.18.1
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 +17 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -402,7 +402,7 @@ var require_parse = __commonJS({
|
|
|
402
402
|
"use strict";
|
|
403
403
|
var path26 = __require("path");
|
|
404
404
|
var resolveCommand = require_resolveCommand();
|
|
405
|
-
var
|
|
405
|
+
var escape3 = require_escape();
|
|
406
406
|
var readShebang = require_readShebang();
|
|
407
407
|
var isWin = process.platform === "win32";
|
|
408
408
|
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
@@ -426,8 +426,8 @@ var require_parse = __commonJS({
|
|
|
426
426
|
if (parsed.options.forceShell || needsShell) {
|
|
427
427
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
428
428
|
parsed.command = path26.normalize(parsed.command);
|
|
429
|
-
parsed.command =
|
|
430
|
-
parsed.args = parsed.args.map((arg) =>
|
|
429
|
+
parsed.command = escape3.command(parsed.command);
|
|
430
|
+
parsed.args = parsed.args.map((arg) => escape3.argument(arg, needsDoubleEscapeMetaChars));
|
|
431
431
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
432
432
|
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
|
|
433
433
|
parsed.command = process.env.comspec || "cmd.exe";
|
|
@@ -31173,8 +31173,11 @@ function* filterRevertedCommitsSync(commits) {
|
|
|
31173
31173
|
|
|
31174
31174
|
// node_modules/conventional-commits-parser/dist/regex.js
|
|
31175
31175
|
var nomatchRegex = /(?!.*)/;
|
|
31176
|
+
function escape2(string) {
|
|
31177
|
+
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
31178
|
+
}
|
|
31176
31179
|
function join(parts, joiner) {
|
|
31177
|
-
return parts.map((val) => val.trim()).filter(Boolean).join(joiner);
|
|
31180
|
+
return parts.map((val) => escape2(val.trim())).filter(Boolean).join(joiner);
|
|
31178
31181
|
}
|
|
31179
31182
|
function getNotesRegex(noteKeywords, notesPattern) {
|
|
31180
31183
|
if (!noteKeywords) {
|
|
@@ -31274,7 +31277,7 @@ var defaultOptions = {
|
|
|
31274
31277
|
"scope",
|
|
31275
31278
|
"subject"
|
|
31276
31279
|
],
|
|
31277
|
-
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)
|
|
31280
|
+
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
|
|
31278
31281
|
revertCorrespondence: ["header", "hash"],
|
|
31279
31282
|
fieldPattern: /^-(.*?)-$/
|
|
31280
31283
|
};
|
|
@@ -31532,6 +31535,15 @@ var CommitParser = class {
|
|
|
31532
31535
|
commit.notes.forEach((note) => {
|
|
31533
31536
|
note.text = trimNewLines(note.text);
|
|
31534
31537
|
});
|
|
31538
|
+
const referencesSet = /* @__PURE__ */ new Set();
|
|
31539
|
+
commit.references = commit.references.filter((reference) => {
|
|
31540
|
+
const uid = `${reference.action} ${reference.raw}`.toLocaleLowerCase();
|
|
31541
|
+
const ok = !referencesSet.has(uid);
|
|
31542
|
+
if (ok) {
|
|
31543
|
+
referencesSet.add(uid);
|
|
31544
|
+
}
|
|
31545
|
+
return ok;
|
|
31546
|
+
});
|
|
31535
31547
|
}
|
|
31536
31548
|
/**
|
|
31537
31549
|
* Parse commit message string into an object.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semantic-release-lerna",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.1",
|
|
4
4
|
"description": "semantic-release plugin to publish lerna monorepo packages to npm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"npm",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@semantic-release/error": "^4.0.0",
|
|
42
42
|
"conventional-changelog-angular": "^7.0.0 || ^8.0.0",
|
|
43
43
|
"conventional-changelog-writer": "^7.0.0 || ^8.0.0",
|
|
44
|
-
"cosmiconfig": "^9.0.
|
|
44
|
+
"cosmiconfig": "^9.0.1",
|
|
45
45
|
"libnpmversion": "^8.0.3",
|
|
46
46
|
"registry-auth-token": "^5.1.1"
|
|
47
47
|
},
|