Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tcort/markdown-link-check
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.13.1
Choose a base ref
...
head repository: tcort/markdown-link-check
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.13.2
Choose a head ref
  • 4 commits
  • 6 files changed
  • 1 contributor

Commits on Nov 5, 2024

  1. fix(reporters): don't register on exit handler unless reporter is sel…

    …ected
    tcort committed Nov 5, 2024
    Copy the full SHA
    e7c73af View commit details
  2. Copy the full SHA
    c6bd140 View commit details
  3. Copy the full SHA
    13088be View commit details
  4. 3.13.2

    tcort committed Nov 5, 2024
    Copy the full SHA
    3e23d62 View commit details
Showing with 15 additions and 11 deletions.
  1. +4 −0 CHANGELOG.md
  2. +2 −2 markdown-link-check
  3. +2 −2 package-lock.json
  4. +1 −1 package.json
  5. +2 −2 reporters/index.js
  6. +4 −4 reporters/junit.js
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## Version 3.13.2

- fix: MODULE_NOT_FOUND error #368

## Version 3.13.1

- fix: MODULE_NOT_FOUND error #368
4 changes: 2 additions & 2 deletions markdown-link-check
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ const pkg = require('./package.json');
const { Command } = require('commander');
const program = new Command();
const { ProxyAgent } = require('proxy-agent');
const reporters = require('./reporters');
const reporters = require('./reporters/index.js');

class Input {
constructor(filenameForOutput, stream, opts) {
@@ -49,7 +49,7 @@ function loadAllMarkdownFiles(rootFolder = '.') {
}

function commaSeparatedReportersList(value) {
return value.split(',').map((reporter) => reporters[reporter] ?? reporters.eefault);
return value.split(',').map((reporter) => reporters[reporter] ?? reporters.default);
}

function getInputs() {
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "markdown-link-check",
"version": "3.13.1",
"version": "3.13.2",
"description": "checks the all of the hyperlinks in a markdown text to determine if they are alive or dead",
"bin": {
"markdown-link-check": "markdown-link-check"
4 changes: 2 additions & 2 deletions reporters/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

module.exports = {
default: require('./default'),
junit: require('./junit'),
default: require('./default.js'),
junit: require('./junit.js'),
};
8 changes: 4 additions & 4 deletions reporters/junit.js
Original file line number Diff line number Diff line change
@@ -28,9 +28,9 @@ module.exports = async function junitReporter(err, results, opts, filenameForOut
}
}
}
process.on('exit', () => {
writeFileSync('junit.xml', doc.end({ prettyPrint: true }) + '\n');
console.error('\nWrote junit.xml');
});
};

process.on('exit', () => {
writeFileSync('junit.xml', doc.end({ prettyPrint: true }) + '\n');
console.error('\nWrote junit.xml');
})