🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

common-errors

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-errors - npm Package Compare versions

Comparing version

to
1.0.4

15

package.json

@@ -5,3 +5,3 @@ {

"description": "Common error classes and utility functions",
"version": "1.0.3",
"version": "1.0.4",
"repository": {

@@ -19,11 +19,10 @@ "type": "git",

"devDependencies": {
"mocha": "*",
"sinon": "*",
"supertest": "*",
"common-errors": "git://github.com/shutterstock/node-common-errors.git#global_extend.v1",
"bluebird": "^3.5.0",
"body-parser": "^1.17.2",
"common-errors": "git://github.com/shutterstock/node-common-errors.git#v1.0.2",
"express": "4.x.x",
"express3": "git://github.com/dfenster/express3.git",
"body-parser": "*",
"lodash": "3.10.1",
"bluebird": "^3.4.0"
"mocha": "^3.5.0",
"sinon": "^3.0.0",
"supertest": "^3.0.0"
},

@@ -30,0 +29,0 @@ "keywords": [

var errors = require('../');
var _ = require('lodash');
var assert = require('assert');

@@ -46,3 +45,3 @@

assert.ok(/logAnError/.test(stack[1]), 'we prepend the current stack trace');
var splitterIndex = _(stack).findIndex(function(item){return item == '===='});
var splitterIndex = stack.indexOf('====');
assert.ok(splitterIndex, 'we spit the stacks with "===="');

@@ -69,3 +68,3 @@ assert.ok(/Context\.<anonymous>/.test(stack.slice(splitterIndex)[1]), 'we keep the old stack trace');

assert.ok(/logAnError/.test(stack[1]), 'we prepend the current stack trace');
var splitterIndex = _(stack).findIndex(function(item){return item == '===='});
var splitterIndex = stack.indexOf('====');
assert.ok(splitterIndex, 'we spit the stacks with "===="');

@@ -88,3 +87,3 @@ assert.ok(/Context\.<anonymous>/.test(stack.slice(splitterIndex)[1]), 'we keep the old stack trace');

assert.ok(/logAnError/.test(stack[1]), 'we prepend the current stack trace');
var splitterIndex = _(stack).findIndex(function(item){return item == '===='});
var splitterIndex = stack.indexOf('====');
assert.ok(splitterIndex, 'we spit the stacks with "===="');

@@ -91,0 +90,0 @@ assert.ok(/Context\.<anonymous>/.test(stack.slice(splitterIndex)[1]), 'we keep the old stack trace');

@@ -23,3 +23,3 @@ var assert = require('assert');

beforeEach(function(){
sandbox.stub(console, 'error', function(message){ });
sandbox.stub(console, 'error').callsFake(function(message){ });
});

@@ -26,0 +26,0 @@

Sorry, the diff of this file is not supported yet