Socket
Socket
Sign inDemoInstall

@black-flag/core

Package Overview
Dependencies
33
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 1.2.2

14

dist/src/discover.js

@@ -382,6 +382,6 @@ "use strict";

programs.router.command(['$0'], '[routed-1]', {}, async function () {
debug.extend('router*')('control reserved; calling HelperProgram::parseAsync');
debug.extend('router@')('control reserved; calling HelperProgram::parseAsync');
await programs.helper.parseAsync(context.state.rawArgv, (0, _util.wrapExecutionContext)(context));
}, [], false);
programs.helper.command_deferred(['$0'], config.description, makeVanillaYargsBuilder(programs.helper, config, 'first-pass'), async parsedArgv => {
programs.helper.command_deferred(['$0'], false, makeVanillaYargsBuilder(programs.helper, config, 'first-pass'), async parsedArgv => {
const debug_ = debug.extend('helper');

@@ -420,3 +420,3 @@ debug_('entered wrapper handler function for %O', config.name);

return function (message, error) {
const debug_ = debug.extend(`${descriptor}*`);
const debug_ = debug.extend(`${descriptor}@`);
debug_.message('entered failure handler for command %O', fullName);

@@ -487,3 +487,3 @@ const isProbablyVanillaYargsError = !error;

get(target, property, proxy) {
const isSymbolOrOwnProperty = typeof property === 'string' && ((0, _types.isSymbolObject)(property) || Object.hasOwn(vanillaYargs, property) || Object.hasOwn(Object.getPrototypeOf(vanillaYargs), property));
const isOwnProperty = Object.hasOwn(vanillaYargs, property) || Object.hasOwn(Object.getPrototypeOf(vanillaYargs), property);
if (['help', 'version'].includes(property)) {

@@ -535,5 +535,5 @@ return function () {

if (descriptor === 'router') {
if (isSymbolOrOwnProperty && !['parseAsync', 'command'].includes(property)) {
if (isOwnProperty && !['parseAsync', 'command'].includes(property)) {
return typeof target[property] === 'function' ? function () {
throw new _error.AssertionFailedError(_error.ErrorMessage.AssertionFailureInvocationNotAllowed(property));
throw new _error.AssertionFailedError(_error.ErrorMessage.AssertionFailureInvocationNotAllowed(String(property)));
} : void 'disabled by Black Flag (do not access routers directly)';

@@ -575,3 +575,3 @@ }

const value = target[property];
if (isSymbolOrOwnProperty && typeof value === 'function') {
if (typeof value === 'function') {
return function (...args) {

@@ -578,0 +578,0 @@ const returnValue = value.apply(target, args);

@@ -26,3 +26,3 @@ "use strict";

return (...args) => {
const debug_ = debug.extend('runProgram*');
const debug_ = debug.extend('runProgram@');
debug_('runProgram wrapper (curried) was invoked');

@@ -29,0 +29,0 @@ const {

{
"name": "@black-flag/core",
"version": "1.2.1",
"version": "1.2.2",
"description": "A declarative framework for building fluent, deeply hierarchical command line interfaces with yargs",

@@ -94,3 +94,3 @@ "keywords": [

"alpha-sort": "^5.0.0",
"core-js": "3.36.0",
"core-js": "3.36.1",
"debug": "^4.3.4",

@@ -100,12 +100,13 @@ "merge-descriptors": "^2.0.0",

"pkg-up": "^5.0.0",
"supports-color": "^8.1.1",
"yargs": "^17.7.2"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.1",
"@babel/cli": "^7.23.9",
"@babel/eslint-parser": "^7.23.10",
"@babel/plugin-proposal-export-default-from": "^7.23.3",
"@babel/preset-env": "^7.24.0",
"@babel/preset-typescript": "^7.23.3",
"@commitlint/cli": "^19.2.0",
"@arethetypeswrong/cli": "^0.15.2",
"@babel/cli": "^7.24.1",
"@babel/eslint-parser": "^7.24.1",
"@babel/plugin-proposal-export-default-from": "^7.24.1",
"@babel/preset-env": "^7.24.3",
"@babel/preset-typescript": "^7.24.1",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",

@@ -119,5 +120,5 @@ "@semantic-release/changelog": "^6.0.3",

"@types/merge-descriptors": "^1.0.3",
"@types/node": "^20.11.28",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@xunnamius/conventional-changelog-projector": "^1.2.1",

@@ -205,6 +206,6 @@ "@xunnamius/jest-types": "^1.1.3",

"tsconfig-replace-paths": "^0.0.14",
"type-fest": "^4.12.0",
"type-fest": "^4.13.1",
"typedoc": "^0.25.12",
"typedoc-plugin-markdown": "^3.17.1",
"typescript": "^5.4.2",
"typescript": "^5.4.3",
"unique-filename": "^3.0.0"

@@ -211,0 +212,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc