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

rejoinder

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rejoinder - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

1

lib/Echo/Echo.js

@@ -10,3 +10,2 @@ #!/usr/bin/env node

require('../Utils/string.prototype');
var EmitStrategy = require('./EmitStrategy/EmitStrategy');

@@ -13,0 +12,0 @@

10

lib/Execute/Execute.js

@@ -10,5 +10,5 @@ #!/usr/bin/env node

var shell = require('shelljs');
var Echo = require('../Echo/Echo');
require('../Utils/string.prototype');
var shell = require('shelljs');
var Echo = require('../Echo/Echo');
var colors = require('../Utils/string.prototype').colors;

@@ -61,4 +61,4 @@ /**

{
var failmsg = 'FAILED!';
var successmsg = 'OK';
var failmsg = colors.red('FAILED!');
var successmsg = colors.green('OK');

@@ -65,0 +65,0 @@ // Echo message

@@ -26,5 +26,5 @@ #!/usr/bin/env node

*/
String.prototype.formatAsError = function()
String.prototype.formatAsError = function(dontIncludePrefix)
{
return colors.red(this);
return colors.red((!dontIncludePrefix ? 'ERROR: ' : '' ) + this);
};

@@ -38,5 +38,5 @@

*/
String.prototype.formatAsSuccess = function()
String.prototype.formatAsSuccess = function(dontIncludePrefix)
{
return colors.green(this);
return colors.green((!dontIncludePrefix ? 'SUCCESS: ' : '' ) + this);
};

@@ -50,5 +50,5 @@

*/
String.prototype.formatAsWarning = function()
String.prototype.formatAsWarning = function(dontIncludePrefix)
{
return colors.yellow(this);
return colors.yellow((!dontIncludePrefix ? 'WARNING: ' : '' ) + this);
};

@@ -62,5 +62,7 @@

*/
String.prototype.formatAsAction = function()
String.prototype.formatAsAction = function(dontIncludePrefix)
{
return colors.blue(this);
return colors.blue((!dontIncludePrefix ? 'ACTION: ' : '' ) + this);
};
module.exports.colors = colors;
{
"name": "rejoinder",
"version": "0.2.1",
"version": "0.2.2",
"description": "A generator of smart, pretty, and organized output for Node/JS scripts in the terminal",

@@ -5,0 +5,0 @@ "repository": {

@@ -13,3 +13,4 @@ #!/usr/bin/env node

var expects = require('chai').expect;
var expects = require('chai').expect;
var colors = require('../../lib/Utils/string.prototype').colors;
var Execute = require('../../lib/Execute/Execute');

@@ -89,3 +90,3 @@ var Echo = require('../../lib/Echo/Echo');

execute.now('return 0', 'describe');
expects(emission).to.equal('OK');
expects(emission).to.equal(colors.green('OK'));

@@ -97,3 +98,3 @@ result = execute.now('return 5');

result = execute.now('return 5', 'description');
expects(emission).to.equal('ERROR FAILED!');
expects(emission).to.equal('ERROR ' + colors.red('FAILED!'));

@@ -103,6 +104,6 @@ execute._echo.beVerbose = true;

execute.now('return 5');
expects(emission).to.equal('DEBUG FAILED!');
expects(emission).to.equal('DEBUG ' + colors.red('FAILED!'));
execute.now('return 0');
expects(emission).to.equal('DEBUG OK');
expects(emission).to.equal('DEBUG ' + colors.green('OK'));

@@ -109,0 +110,0 @@ expects(execute.totalSuccess).to.be.false;

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