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

@clerc/core

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clerc/core - npm Package Compare versions

Comparing version 0.14.2 to 0.15.0

6

dist/index.d.ts

@@ -288,3 +288,7 @@ import * as _clerc_utils from '@clerc/utils';

declare const defineInspector: <C extends Clerc<{}>>(_cli: C, inspector: Inspector<C["_commands"]>) => Inspector<C["_commands"]>;
declare const defineCommand: <N extends string | typeof SingleCommand, O extends CommandOptions<[...P], A, F>, P extends string[] = string[], A extends MaybeArray<string> = MaybeArray<string>, F extends Dict<FlagOptions> = Dict<FlagOptions>>(c: CommandWithHandler<N, O & CommandOptions<[...P], A, F>>) => CommandWithHandler<N, O & CommandOptions<[...P], A, F>>;
declare const defineCommand: <N extends string | typeof SingleCommand, O extends CommandOptions<[...P], A, F>, P extends string[] = string[], A extends MaybeArray<string> = MaybeArray<string>, F extends Dict<FlagOptions> = Dict<FlagOptions>>(command: Command<N, O & CommandOptions<[...P], A, F>>, handler?: HandlerInCommand<Record<N, Command<N, O>> & Record<PropertyKey, never>, N> | undefined) => O & CommandOptions<[...P], A, F> & {
handler: HandlerInCommand<Record<N, Command<N, O>> & Record<PropertyKey, never>, N> | undefined;
name: N;
description: string;
};

@@ -291,0 +295,0 @@ declare class SingleCommandError extends Error {

2

dist/index.js

@@ -418,4 +418,4 @@ import { LiteEmit } from 'lite-emit';

const defineInspector = (_cli, inspector) => inspector;
const defineCommand = (c) => c;
const defineCommand = (command, handler) => ({ ...command, handler });
export { Clerc, CommandExistsError, CommandNameConflictError, CommonCommandExistsError, DescriptionNotSetError, MultipleCommandsMatchedError, NameNotSetError, NoCommandGivenError, NoSuchCommandError, ParentCommandExistsError, SingleCommand, SingleCommandAliasError, SingleCommandError, SubcommandExistsError, VersionNotSetError, compose, defineCommand, defineHandler, defineInspector, definePlugin, mapParametersToArguments, parseParameters, resolveArgv, resolveCommand, resolveFlattenCommands, resolveParametersBeforeFlag, resolveRootCommands, resolveSubcommandsByParent };
{
"name": "@clerc/core",
"version": "0.14.2",
"version": "0.15.0",
"author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",

@@ -53,3 +53,3 @@ "description": "Clerc core",

"type-flag": "^3.0.0",
"@clerc/utils": "0.14.2"
"@clerc/utils": "0.15.0"
},

@@ -56,0 +56,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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