Comparing version 0.3.2 to 0.3.3
@@ -72,3 +72,3 @@ /** | ||
for (var key in data) { | ||
if (data.hasOwnProperty(key)) { | ||
if (typeof data.hasOwnProperty !== 'function' || data.hasOwnProperty(key)) { | ||
var value = data[key] | ||
@@ -75,0 +75,0 @@ if (/[^$\w\d]/.test(key)) { |
@@ -59,5 +59,1 @@ # Contributing to Cedar | ||
Cedar couldn't exist without you. | ||
Additionally, huge thanks go to [eBay](http://www.ebay.com) for employing | ||
and supporting [Cedar](http://lighter.io/cedar) project maintainers, | ||
and for being an epically awesome place to work (and play). |
@@ -49,3 +49,3 @@ var Base = require('./base') | ||
try { | ||
line = this.stringify(line, null, space, 0, 78, 3) | ||
line = this.stringify(line, null, space, 0, this.maxWidth, this.maxDepth) | ||
} catch (e) { | ||
@@ -95,2 +95,8 @@ line = e.stack | ||
// Max JSON stringify object depth. | ||
maxDepth: 3, | ||
// Max JSON stringify character width. | ||
maxWidth: 78, | ||
// Format a string with colors and optionally stack traces. | ||
@@ -97,0 +103,0 @@ format: function (string, type) { |
@@ -1,15 +0,21 @@ | ||
# ISC License | ||
# The MIT License | ||
Copyright (c) 2015, Sam Eubank | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
{ | ||
"name": "cedar", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "User-friendly logger.", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"exam": ">=1.2.2 <2" | ||
"exam": "2.1.1" | ||
}, | ||
@@ -28,3 +28,2 @@ "keywords": [ | ||
"report": "open coverage/lcov-report/index.html", | ||
"coveralls": "./node_modules/exam/exam-coveralls.js", | ||
"bench": "./node_modules/exam/exam.js test/bench" | ||
@@ -39,3 +38,3 @@ }, | ||
], | ||
"license": "ISC" | ||
"license": "MIT" | ||
} |
@@ -6,3 +6,3 @@ # <a href="http://lighter.io/cedar" style="font-size:40px;text-decoration:none"><img src="https://cdn.rawgit.com/lighterio/lighter.io/master/public/cedar.svg" style="width:90px;height:90px"> Cedar</a> | ||
[![Build](https://img.shields.io/travis/lighterio/cedar.svg)](//travis-ci.org/lighterio/cedar) | ||
[![Coverage](https://img.shields.io/coveralls/lighterio/cedar/master.svg)](//coveralls.io/r/lighterio/cedar) | ||
[![Coverage](https://img.shields.io/codecov/c/github/lighterio/cedar/master.svg)](//codecov.io/gh/lighterio/cedar) | ||
[![Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](//www.npmjs.com/package/standard) | ||
@@ -9,0 +9,0 @@ |
57656
1543