@soybeanjs/changelog 0.0.1 → 0.0.2
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.cjs +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -236,11 +236,11 @@ async function getGitCommitsAndResolvedAuthors(commits, github, resolvedLogins)
|
|
|
236
236
|
const map = /* @__PURE__ */ new Map();
|
|
237
237
|
for await (const commit of commits) {
|
|
238
238
|
const resolvedAuthors = [];
|
|
239
|
-
for await (const [index, author] of
|
|
239
|
+
for await (const [index, author] of commit.authors.entries()) {
|
|
240
240
|
const { email, name } = author;
|
|
241
241
|
if (email && name) {
|
|
242
242
|
const commitHashes = [];
|
|
243
|
-
if (index ===
|
|
243
|
+
if (index === 0) {
|
|
244
244
|
commitHashes.push(commit.shortHash);
|
|
245
245
|
}
|
|
246
246
|
const resolvedAuthor = {
|
|
@@ -298,7 +298,7 @@ function createDefaultOptions() {
|
|
|
298
298
|
to: "",
|
|
299
299
|
tags: [],
|
|
300
300
|
tagDateMap: /* @__PURE__ */ new Map(),
|
|
301
|
-
capitalize:
|
|
301
|
+
capitalize: false,
|
|
302
302
|
emoji: true,
|
|
303
303
|
titles: {
|
|
304
304
|
breakingChanges: "\u{1F6A8} Breaking Changes"
|
|
@@ -524,6 +524,9 @@ async function getTotalChangelogMarkdown(options, showProgress = true) {
|
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
526
|
const tags = getFromToTags(opts.tags);
|
|
527
|
+
if (tags.length === 0) {
|
|
528
|
+
return getChangelogMarkdown(opts);
|
|
529
|
+
}
|
|
527
530
|
bar?.start(tags.length, 0);
|
|
528
531
|
let markdown = "";
|
|
529
532
|
const resolvedLogins = /* @__PURE__ */ new Map();
|
package/dist/index.mjs
CHANGED
|
@@ -229,11 +229,11 @@ async function getGitCommitsAndResolvedAuthors(commits, github, resolvedLogins)
|
|
|
229
229
|
const map = /* @__PURE__ */ new Map();
|
|
230
230
|
for await (const commit of commits) {
|
|
231
231
|
const resolvedAuthors = [];
|
|
232
|
-
for await (const [index, author] of
|
|
232
|
+
for await (const [index, author] of commit.authors.entries()) {
|
|
233
233
|
const { email, name } = author;
|
|
234
234
|
if (email && name) {
|
|
235
235
|
const commitHashes = [];
|
|
236
|
-
if (index ===
|
|
236
|
+
if (index === 0) {
|
|
237
237
|
commitHashes.push(commit.shortHash);
|
|
238
238
|
}
|
|
239
239
|
const resolvedAuthor = {
|
|
@@ -291,7 +291,7 @@ function createDefaultOptions() {
|
|
|
291
291
|
to: "",
|
|
292
292
|
tags: [],
|
|
293
293
|
tagDateMap: /* @__PURE__ */ new Map(),
|
|
294
|
-
capitalize:
|
|
294
|
+
capitalize: false,
|
|
295
295
|
emoji: true,
|
|
296
296
|
titles: {
|
|
297
297
|
breakingChanges: "\u{1F6A8} Breaking Changes"
|
|
@@ -517,6 +517,9 @@ async function getTotalChangelogMarkdown(options, showProgress = true) {
|
|
|
517
517
|
);
|
|
518
518
|
}
|
|
519
519
|
const tags = getFromToTags(opts.tags);
|
|
520
|
+
if (tags.length === 0) {
|
|
521
|
+
return getChangelogMarkdown(opts);
|
|
522
|
+
}
|
|
520
523
|
bar?.start(tags.length, 0);
|
|
521
524
|
let markdown = "";
|
|
522
525
|
const resolvedLogins = /* @__PURE__ */ new Map();
|