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

@untool/yargs

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@untool/yargs - npm Package Compare versions

Comparing version 0.4.3 to 0.5.0

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

<a name="0.5.0"></a>
# [0.5.0](https://github.com/untool/untool/compare/v0.4.3...v0.5.0) (2018-05-07)
**Note:** Version bump only for package @untool/yargs
<a name="0.4.3"></a>

@@ -8,0 +16,0 @@ ## [0.4.3](https://github.com/untool/untool/compare/v0.4.2...v0.4.3) (2018-04-24)

14

mixin.core.js
/* eslint-disable no-console */
const chalk = require('chalk');
const { sync: { pipe, override } } = require('mixinable');
const { sync: { pipe, sequence, override } } = require('mixinable');

@@ -10,13 +10,12 @@ const { Mixin } = require('@untool/core');

registerCommands(yargs) {
yargs.option('log', {
return yargs.option('log', {
alias: 'l',
default: 'info',
describe: 'Define log level ()',
describe: 'Define log level',
type: 'string',
});
return yargs;
}
handleArguments(argv) {
const levels = ['debug', 'info', 'warn', 'error', 'silent'];
const index = levels.indexOf(argv.log || argv.l);
const index = levels.indexOf(argv.log);
this.levels = levels.slice(Math.max(index, 0), -1);

@@ -65,6 +64,3 @@ }

registerCommands: pipe,
handleArguments: function(functions, ...args) {
functions.forEach(fn => fn(...args));
return true;
},
handleArguments: sequence,
logDebug: override,

@@ -71,0 +67,0 @@ logInfo: override,

{
"name": "@untool/yargs",
"version": "0.4.3",
"version": "0.5.0",
"description": "untool yargs mixin",

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

"dependencies": {
"@untool/core": "^0.4.3",
"@untool/core": "^0.5.0",
"chalk": "^2.3.1",

@@ -31,0 +31,0 @@ "mixinable": "^2.0.0",

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