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

coffee

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffee - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

6

HISTORY.md
3.2.2 / 2016-06-15
==================
* style: use eslint-config-egg
* fix: catch resolve when process.env._ is not found
3.2.1 / 2016-02-26

@@ -3,0 +9,0 @@ ==================

18

index.js

@@ -15,6 +15,7 @@ 'use strict';

* fork a child process to test
* @param {String} modulePath
* @param {Array} args
* @param {String} modulePath - The module to run in the child
* @param {Array} args - List of string arguments
* @param {Object} opt - fork options
* @return {Coffee}
* @see https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options
* @return {Coffee} coffee instance
*/

@@ -26,6 +27,13 @@ exports.fork = function(modulePath, args, opt) {

args: args,
opt: opt
opt: opt,
});
};
/**
* spawn a child process to test
* @param {String} cmd - The command to run
* @param {Array} args - List of string arguments
* @param {Object} opt - spawn options
* @return {Coffee} coffee instance
*/
exports.spawn = function(cmd, args, opt) {

@@ -36,4 +44,4 @@ return new Coffee({

args: args,
opt: opt
opt: opt,
});
};

@@ -19,7 +19,12 @@ 'use strict';

dirs.push(process.cwd());
// depended by some tools
if (process.env._) {
var entryBin = require.resolve(process.env._);
dirs.push(path.join(entryBin, '..'));
dirs.push(path.join(entryBin, '../..'));
try {
if (process.env._) {
var entryBin = require.resolve(process.env._);
dirs.push(path.join(entryBin, '..'));
dirs.push(path.join(entryBin, '../..'));
}
} catch (_) {
// do nothing
}

@@ -26,0 +31,0 @@ // specified $PWD

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

return (typeof obj === 'string' ? obj.replace(/\n/g, '\\n') : obj) +
'(' + ({}).toString.call(obj).replace(/^\[object (.*)\]$/, '$1') + ')';
'(' + {}.toString.call(obj).replace(/^\[object (.*)\]$/, '$1') + ')';
};
{
"name": "coffee",
"version": "3.2.1",
"version": "3.2.2",
"description": "Test command line on nodejs",

@@ -12,3 +12,4 @@ "main": "index.js",

"autod": "2",
"eslint": "1",
"eslint": "2",
"eslint-config-egg": "^2.0.0",
"istanbul": "0",

@@ -38,3 +39,3 @@ "mm": "^1.3.5",

"test": "mocha -R spec -t 20000",
"cover": "rm -rf coverage && istanbul cover --report none --print none node_modules/mocha/bin/_mocha -- -R spec -t 20000",
"cover": "rm -rf coverage && istanbul cover --report none --print none node_modules/mocha/bin/_mocha -- -R spec -t 80000",
"cov": "npm run clean && npm run lint && npm run cover && istanbul report --root coverage text-summary json lcov",

@@ -41,0 +42,0 @@ "autod": "autod -e test/fixtures -f ~ -w",

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