Socket
Socket
Sign inDemoInstall

dry-underscore

Package Overview
Dependencies
1
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.23.1 to 0.23.2

35

lib/common.js

@@ -84,4 +84,4 @@ "use strict";

_.error.message = function(err, add_context, exit_on_error){
if(!_.isArray(err)){ return(_.error._message(err, add_context, exit_on_error)); }
_.error.message = function(err, add_context, exit_code){
if(!_.isArray(err)){ return(_.error._message(err, add_context, exit_code)); }

@@ -97,3 +97,3 @@ var error_messages = "";

error_messages += "\n";
error_messages += _.error._message(e, add_context, false);
error_messages += _.error._message(e, add_context);
error_messages += "\n";

@@ -104,12 +104,29 @@ });

if(err_count === 0){
message += "\nthere was an error array passed to _.error.message, but it didn't contain any errors: " + _.format(err);
message += "\nthere was an error array passed to _.error.message, but it didn't contain any errors: " + _.format(err) + "\n";
}else{
message += ", " + err_count + " errors encountered.\n" + error_messages;
}
message += "end error stack: " + uuid + (exit_on_error ? ", process exiting." : "")
message += "end error stack: " + uuid + (exit_code !== undefined ? ", process exiting with code: " + exit_code : "");
return(message);
};
_.error.print = function(err, exit_code, printer, add_context){
var message = _.error.message(err, add_context, exit_code);
if(!_.isFunction(printer)){ printer = _.stderr; }
printer(message);
if(exit_code !== undefined){
if(typeof process !== 'undefined') {
process.exit(exit_code);
}else{
printer("can't exit. process.exit doesn't exist.");
}
}
};
_.error._message = function(err, add_context, exit_on_error){
_.error._message = function(err, add_context, exit_code){

@@ -137,3 +154,3 @@ var error_message = _.string_builder();

error_message.add_line("end error: ", uuid, (exit_on_error ? ", process exiting." : ""));
error_message.add_line("end error: ", uuid, (exit_code !== undefined ? ", process exiting with code: " + exit_code : ""));

@@ -143,5 +160,5 @@ return(error_message.string());

_.deprecated = function(f_name, f){
_.deprecated = function(f_name, f, message){
return(function(){
console.log("WARNING: _." + f_name + "has been deprecated and will be removed in the next major version.");
console.log("WARNING: _." + f_name + "has been deprecated and will be removed in the next major version." + (message ? " " + message : "") );
return(f.apply(this, arguments));

@@ -148,0 +165,0 @@ });

{
"name": "dry-underscore",
"version": "0.23.1",
"version": "0.23.2",
"main": "./index/node.index.js",

@@ -29,7 +29,7 @@ "description": "The DRY Underscore Library",

, "express": "4.13.3"
, "mocha-phantomjs": "4.0.2"
, "phantomjs": ""
, "phantomjs-prebuilt": "2.1.15"
, "mocha-phantomjs-core": "2.1.2"
},
"dependencies":{
"tamejs" : ""
"tamejs" : "0.4.14"
, "formidable":""

@@ -36,0 +36,0 @@ , "tosource" : ""

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

test_server.start_server(function(){
_.shell("./node_modules/mocha-phantomjs/bin/mocha-phantomjs --reporter dot http://localhost:9999/index.html", function(code){
_.shell("./node_modules/phantomjs-prebuilt/bin/phantomjs ./node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js http://localhost:9999/index.html dot", function(code){
test_server.stop_server(function(){

@@ -16,0 +16,0 @@ if(code){ process.exit(code); }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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