Comparing version 2.0.0-rc.2 to 2.0.0-rc.3
@@ -0,2 +1,3 @@ | ||
export { UsageError } from '../core'; | ||
export { Cli, CommandFactory, DefaultContext } from './Cli'; | ||
export { Command } from './Command'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("../core"); | ||
exports.UsageError = core_1.UsageError; | ||
var Cli_1 = require("./Cli"); | ||
@@ -4,0 +6,0 @@ exports.Cli = Cli_1.Cli; |
@@ -7,2 +7,6 @@ import { Definition } from './Command'; | ||
}; | ||
export declare class UsageError extends Error { | ||
clipanion: ErrorMeta; | ||
constructor(message: string); | ||
} | ||
export declare class UnknownSyntaxError extends Error { | ||
@@ -9,0 +13,0 @@ readonly definitions: [Definition, string | null][]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const pretty_1 = require("./pretty"); | ||
function getTokenName(name) { | ||
if (name === null) { | ||
return `<eol>`; | ||
class UsageError extends Error { | ||
constructor(message) { | ||
super(message); | ||
this.clipanion = { type: `usage` }; | ||
} | ||
else { | ||
return `"${name}"`; | ||
} | ||
} | ||
exports.UsageError = UsageError; | ||
class UnknownSyntaxError extends Error { | ||
@@ -13,0 +12,0 @@ constructor(definitions) { |
export { Cli } from './Cli'; | ||
export { Command, Definition } from './Command'; | ||
export { ErrorMeta } from './errors'; | ||
export { ErrorMeta, UsageError } from './errors'; | ||
export { Parsed } from './helpers'; | ||
export { prettyCommand, prettyMarkdownish } from './pretty'; |
@@ -7,4 +7,6 @@ "use strict"; | ||
exports.Command = Command_1.Command; | ||
var errors_1 = require("./errors"); | ||
exports.UsageError = errors_1.UsageError; | ||
var pretty_1 = require("./pretty"); | ||
exports.prettyCommand = pretty_1.prettyCommand; | ||
exports.prettyMarkdownish = pretty_1.prettyMarkdownish; |
{ | ||
"name": "clipanion", | ||
"version": "2.0.0-rc.2", | ||
"version": "2.0.0-rc.3", | ||
"main": "lib/advanced", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
50272
1199