@soybeanjs/changelog 0.3.10 → 0.3.11
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2293,7 +2293,7 @@ async function createOptions(options) {
|
|
|
2293
2293
|
const isFromPrerelease = isPrerelease(opts.from);
|
|
2294
2294
|
if (!isPrerelease(newVersion) && isFromPrerelease) {
|
|
2295
2295
|
const allReleaseTags = opts.tags.filter((tag) => !isPrerelease(tag));
|
|
2296
|
-
opts.from = allReleaseTags[allReleaseTags.length -
|
|
2296
|
+
opts.from = allReleaseTags[allReleaseTags.length - 1];
|
|
2297
2297
|
}
|
|
2298
2298
|
return opts;
|
|
2299
2299
|
}
|
package/dist/index.js
CHANGED
|
@@ -357,7 +357,7 @@ async function createOptions(options) {
|
|
|
357
357
|
const isFromPrerelease = isPrerelease(opts.from);
|
|
358
358
|
if (!isPrerelease(newVersion) && isFromPrerelease) {
|
|
359
359
|
const allReleaseTags = opts.tags.filter((tag) => !isPrerelease(tag));
|
|
360
|
-
opts.from = allReleaseTags[allReleaseTags.length -
|
|
360
|
+
opts.from = allReleaseTags[allReleaseTags.length - 1];
|
|
361
361
|
}
|
|
362
362
|
return opts;
|
|
363
363
|
}
|