@jayree/changelog
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -1,1 +0,2 @@ | ||
export default function printChangeLog(cacheDir: string, pluginRootPath: string): Promise<string | undefined>; | ||
import Debug from 'debug'; | ||
export default function printChangeLog(cacheDir: string, pluginRootPath: string, debug?: Debug.Debugger): Promise<string | undefined>; |
@@ -14,3 +14,2 @@ /* | ||
import compare from 'semver-compare'; | ||
const debug = Debug(`jayree:changelog`); | ||
// original from https://github.com/salesforcecli/plugin-info/blob/main/src/shared/parseReleaseNotes.ts | ||
@@ -61,3 +60,5 @@ const parseChangeLog = (notes, version, currentVersion) => { | ||
}; | ||
export default async function printChangeLog(cacheDir, pluginRootPath) { | ||
export default async function printChangeLog(cacheDir, pluginRootPath, debug) { | ||
if (!debug) | ||
debug = Debug(`jayree:changelog`); | ||
try { | ||
@@ -64,0 +65,0 @@ const { name, version } = (await fs.readJson(join(pluginRootPath, 'package.json'))); |
{ | ||
"name": "@jayree/changelog", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Parse a CHANGELOG.md file of a package and return the most recent entry", | ||
@@ -14,3 +14,3 @@ "main": "lib/index.js", | ||
"@types/marked-terminal": "^3.1.3", | ||
"@types/node": "^18.15.0", | ||
"@types/node": "^18.15.1", | ||
"@types/semver": "^7.3.13", | ||
@@ -17,0 +17,0 @@ "@types/semver-compare": "^1.0.1", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11691
91