From 08b760bdba80cf30355c1b135fdc4bc033c62d7b Mon Sep 17 00:00:00 2001 From: Philip Shurpik Date: Mon, 22 Feb 2016 16:31:54 +0200 Subject: [PATCH] adjusted serializable object properties count --- .jshintignore | 3 ++- lib/util/getSerializableError.js | 2 +- package.json | 2 +- test/mocha.opts | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.jshintignore b/.jshintignore index b512c09..3091757 100644 --- a/.jshintignore +++ b/.jshintignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +coverage \ No newline at end of file diff --git a/lib/util/getSerializableError.js b/lib/util/getSerializableError.js index bcf8e6a..a7f0594 100644 --- a/lib/util/getSerializableError.js +++ b/lib/util/getSerializableError.js @@ -26,7 +26,7 @@ function shouldSerialize(obj) { function _shouldSerialize(obj) { count++; - if (count >= 100) { + if (count >= 1000) { return false; } //default: stringify stuff that can not be run through Object.keys diff --git a/package.json b/package.json index 6f1b23d..30ab81a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Allan Ebdrup", "name": "nodeerrors", "description": "error handling module for node", - "version": "2.1.1", + "version": "2.1.2", "repository": { "type": "git", "url": "https://github.com/Muscula/nodeerrors" diff --git a/test/mocha.opts b/test/mocha.opts index 562bdd8..37ced7c 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -2,3 +2,4 @@ --reporter dot --ui bdd --recursive +--timeout 4000