flaschenpost
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -9,7 +9,9 @@ 'use strict'; | ||
const cloner = function (value) { | ||
if (_.includes(clonedValues, value)) { | ||
if (_.isObject(value) && _.includes(clonedValues, value)) { | ||
return null; | ||
} | ||
clonedValues.push(value); | ||
if (_.isObject(value)) { | ||
clonedValues.push(value); | ||
} | ||
@@ -16,0 +18,0 @@ if (!_.isError(value)) { |
{ | ||
"name": "flaschenpost", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "flaschenpost is a logger for cloud-based applications.", | ||
@@ -21,2 +21,6 @@ "contributors": [ | ||
"email": "info@jonathanweiss.net" | ||
}, | ||
{ | ||
"name": "Joachim Häcker-Becker", | ||
"email": "joachim.haecker-becker@arcor.de" | ||
} | ||
@@ -30,3 +34,3 @@ ], | ||
"find-root": "1.0.0", | ||
"lodash": "4.13.1", | ||
"lodash": "4.14.2", | ||
"moment": "2.14.1", | ||
@@ -45,5 +49,6 @@ "processenv": "0.1.0", | ||
"nodeenv": "0.2.1", | ||
"roboter": "0.11.9", | ||
"sinon": "1.17.4", | ||
"supertest": "1.2.0" | ||
"roboter": "0.12.3", | ||
"roboter-server": "0.12.3", | ||
"sinon": "1.17.5", | ||
"supertest": "2.0.0" | ||
}, | ||
@@ -50,0 +55,0 @@ "repository": { |
@@ -70,2 +70,21 @@ 'use strict'; | ||
test('ignores non-objects on recursion check.', done => { | ||
const recursive = { | ||
foo: 'bar', | ||
bar: { | ||
foo: 'bar' | ||
} | ||
}; | ||
const actual = sanitize(recursive); | ||
assert.that(actual).is.equalTo({ | ||
foo: 'bar', | ||
bar: { | ||
foo: 'bar' | ||
} | ||
}); | ||
done(); | ||
}); | ||
test('returns a copy of the object.', done => { | ||
@@ -72,0 +91,0 @@ const data = { |
138225
1680
8
+ Addedlodash@4.14.2(transitive)
- Removedlodash@4.13.1(transitive)
Updatedlodash@4.14.2