diff --git a/package.json b/package.json index 631fd8ce796b0b6ada884250b088541fea04d114..d6acf394e9952f1acf935bb03eb6c1ac6bb83f50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "broken-links-inspector", - "version": "1.3.0", + "version": "1.3.1", "description": "Extract and recursively check all URLs reporting broken ones", "main": "dist/inspector.js", "types": "dist/inspector.d.ts", diff --git a/src/index.ts b/src/index.ts index 5aefed437ebdcdb457e575b1b4b71a3f383ee3dc..15d04fa845b26eb55d88b86b7af8ebe66d0f1f24 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,11 +7,11 @@ import { ConsoleReporter, JUnitReporter } from "./report" import fs from "fs/promises" commander - .version("1.2.0") + .version("1.3.1") .description("Extract and recursively check all URLs reporting broken ones\n\nDedicated to Daria Bogatova \u2665") commander - .command("inspect <url> <file://>") + .command("inspect <url>|<file://>") .description("Check links in the given URL or a text file") .option("-r, --recursive", "recursively check all links in all URLs within supplied host (ignored for file://)", false) .option("-t, --timeout <number>", "timeout in ms after which the link will be considered broken", (value: string, _) => parseInt(value), 2000)