Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clipanion

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clipanion - npm Package Compare versions

Comparing version 2.0.0-rc.2 to 2.0.0-rc.3

1

lib/advanced/index.d.ts

@@ -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][];

11

lib/core/errors.js
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc