New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

base-cli-process

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-cli-process - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

lib/fields/help.js

2

index.js

@@ -48,3 +48,3 @@ 'use strict';

omitEmpty: true,
keys: ['run', 'toc', 'layout', 'tasks', 'options', 'data', 'plugins', 'related', 'reflinks']
keys: ['init', 'run', 'toc', 'layout', 'tasks', 'options', 'data', 'plugins', 'related', 'reflinks']
};

@@ -51,0 +51,0 @@

'use strict';
var util = require('util');
var debug = require('debug');

@@ -7,4 +8,4 @@ var field = debug('base:cli:process:field');

module.exports.field = function(key, val) {
field('normalizing ' + key + ', ' + val);
field('processing ' + key + ': ' + util.inspect(val, null, 10));
};
'use strict';
var utils = require('../utils');
var fns = require('../fns');

@@ -20,3 +20,3 @@ /**

* "verb": {
* "helpers": {
* "asyncHelpers": {
* "helper-foo": {},

@@ -28,10 +28,10 @@ * "helper-bar": {}

*
* // register a glob of helpers
* // register a glob of async helpers
* {
* "verb": {
* "helpers": ["foo/*.js"]
* "ayncHelper": ["foo/*.js"]
* }
* }
* ```
* @name helpers
* @name asyncHelpers
* @api public

@@ -41,8 +41,3 @@ */

module.exports = function(app) {
return function(val, key, config, next) {
if (utils.isString(val)) {
val = [utils.stripQuotes(val)];
}
app.config.process({asyncHelpers: val}, next);
};
return fns(app, 'asyncHelpers');
};

@@ -5,3 +5,5 @@ 'use strict';

var merge = require('merge-deep');
var debug = require('../debug');
var utils = require('../utils');
var isProcessed;

@@ -32,5 +34,6 @@ /**

return function(val, key, config, next) {
app.debug('command > %s: "%j"', key, val);
debug.field(key, val);
var name = app._name.toLowerCase();
if (utils.show(val)) {

@@ -70,3 +73,3 @@ var pkgConfig = {};

var show = utils.pick(merged, keys);
utils.timestamp('updated package.json config with', utils.formatValue(show));
app.pkg.logInfo('updated package.json config with', show);

@@ -73,0 +76,0 @@ // update options and `cache.config`

'use strict';
var path = require('path');
var debug = require('../debug');
var utils = require('../utils');

@@ -25,3 +26,3 @@

return function(val, key, config, next) {
app.debug('command > %s: "%j"', key, val);
debug.field(key, val);
app.cwd = path.resolve(val);

@@ -28,0 +29,0 @@

'use strict';
var debug = require('../debug');
var utils = require('../utils');

@@ -25,3 +26,3 @@

return function(val, key, config, next) {
app.debug('command > %s: "%j"', key, val);
debug.field(key, val);

@@ -28,0 +29,0 @@ if (utils.show(val)) {

'use strict';
var engines = require('./engines');
var fns = require('../fns');

@@ -13,3 +13,3 @@ /**

module.exports = function(app) {
return engines(app);
return fns(app, 'engines');
};
'use strict';
var utils = require('../utils');
var fns = require('../fns');

@@ -27,8 +27,3 @@ /**

module.exports = function(app) {
return function(val, key, config, next) {
if (utils.isString(val)) {
val = utils.stripQuotes(val);
}
app.config.process({engines: val}, next);
};
return fns(app, 'engines');
};
'use strict';
var utils = require('../utils');
var fns = require('../fns');

@@ -39,8 +39,3 @@ /**

module.exports = function(app) {
return function(val, key, config, next) {
if (utils.isString(val)) {
val = config[key] = [utils.stripQuotes(val)];
}
app.config.process({helpers: val}, next);
};
return fns(app, 'helpers');
};
'use strict';
var debug = require('../debug');
/**

@@ -16,3 +18,3 @@ * Merge options onto the `app.options` object. If the [base-option][] plugin

return function(val, key, config, next) {
app.debug('command > %s: "%j"', key, val);
debug.field(key, val);
app.option(val);

@@ -19,0 +21,0 @@ next();

@@ -25,7 +25,9 @@ 'use strict';

}
if (utils.isString(val)) {
val = utils.stripQuotes(val);
val = config[key] = [utils.stripQuotes(val)];
}
app.config.process({plugins: val}, next);
};
};
'use strict';
var debug = require('../debug');
module.exports = function(app) {
return function(val, key, config, next) {
app.debug('command > %s: "%j"', key, val);
debug.field(key, val);
next();
};
};
'use strict';
var debug = require('../debug');
module.exports = function(app) {
return function(val, key, config, next) {
app.debug('command > %s: "%j"', key, val);
debug.field(key, val);
next();
};
};
'use strict';
var debug = require('../debug');
module.exports = function(app) {
return function(val, key, config, next) {
app.debug('command > %s: "%j"', key, val);
debug.field(key, val);
if (config.run === false) {
config[key] = [];
}
next();
};
};
'use strict';
var fns = require('../fns');
module.exports = function(app) {
return function(val, key, config, next) {
if (!val) return next();
app.config.process({use: val}, next);
};
return fns(app, 'use');
};
{
"name": "base-cli-process",
"description": "Normalizers for common argv commands handled by the base-cli plugin. Also pre-processes the given object with base-cli-schema before calling `.process()`",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/jonschlinkert/base-cli-process",

@@ -31,3 +31,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"base-option": "^0.7.0",
"base-pkg": "^0.2.0",
"base-pkg": "^0.2.2",
"debug": "^2.2.0",

@@ -43,2 +43,3 @@ "export-files": "^2.1.1",

"os-homedir": "^1.0.1",
"pad-right": "^0.2.2",
"union-value": "^0.2.3"

@@ -45,0 +46,0 @@ },

@@ -79,2 +79,2 @@ # base-cli-process [![NPM version](https://img.shields.io/npm/v/base-cli-process.svg?style=flat)](https://www.npmjs.com/package/base-cli-process) [![NPM downloads](https://img.shields.io/npm/dm/base-cli-process.svg?style=flat)](https://npmjs.org/package/base-cli-process) [![Build Status](https://img.shields.io/travis/jonschlinkert/base-cli-process.svg?style=flat)](https://travis-ci.org/jonschlinkert/base-cli-process)

_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 15, 2016._
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 20, 2016._
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