Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Marinho committed Sep 28, 2016
1 parent 3d97d90 commit 239b4e0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
# Changelog

## [v1.0.0](https://github.com/seegno/debugnyan/tree/v1.0.0) (2016-09-28)
[Full Changelog](https://github.com/seegno/debugnyan/compare/0.0.2...v1.0.0)

**Implemented enhancements:**

- Add .nyc\_output to .gitignore [\#91](https://github.com/seegno/debugnyan/pull/91) ([ruimarinho](https://github.com/ruimarinho))
- Add default module exports [\#90](https://github.com/seegno/debugnyan/pull/90) ([ruimarinho](https://github.com/ruimarinho))
- Update package scripts [\#54](https://github.com/seegno/debugnyan/pull/54) ([ruimarinho](https://github.com/ruimarinho))

**Merged pull requests:**

- Update linting rules [\#55](https://github.com/seegno/debugnyan/pull/55) ([ruimarinho](https://github.com/ruimarinho))
- Update dependencies [\#53](https://github.com/seegno/debugnyan/pull/53) ([ruimarinho](https://github.com/ruimarinho))

## [0.0.2](https://github.com/seegno/debugnyan/tree/0.0.2) (2015-12-31)
[Full Changelog](https://github.com/seegno/debugnyan/compare/0.0.1...0.0.2)

**Merged pull requests:**

- Update dev dependencies [\#31](https://github.com/seegno/debugnyan/pull/31) ([ruimarinho](https://github.com/ruimarinho))

## [0.0.1](https://github.com/seegno/debugnyan/tree/0.0.1) (2015-07-13)
19 changes: 11 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
'use strict';

var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; })();
Object.defineProperty(exports, "__esModule", {
value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
/**
* Module dependencies.
*/

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = debugnyan;

var _bunyan = require('bunyan');
Expand Down Expand Up @@ -43,13 +44,14 @@ function debugnyan(name, options, config) {

const root = _components[0];


config = Object.assign({
prefix: 'sub',
suffix: 'component'
}, config);

if (!loggers[root]) {
loggers[root] = _bunyan2.default.createLogger(Object.assign({}, options, { level, name: root }));
loggers[root] = _bunyan2.default.createLogger(Object.assign({}, options, { level: level, name: root }));
}

let child = loggers[root];
Expand All @@ -66,8 +68,8 @@ function debugnyan(name, options, config) {
}

options = Object.assign({}, options, {
level,
[`${ config.prefix.repeat(i - 1) }${ config.suffix }`]: current
[`${ config.prefix.repeat(i - 1) }${ config.suffix }`]: current,
level: level
});

child = next.child(options, true);
Expand All @@ -80,4 +82,5 @@ function debugnyan(name, options, config) {
}

return loggers[name];
}
}
module.exports = exports['default'];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "debugnyan",
"version": "0.0.2",
"version": "1.0.0",
"description": "A logging library that combines the simplicity and convenience of debug with the power of bunyan",
"keywords": [
"bridge",
Expand Down

0 comments on commit 239b4e0

Please sign in to comment.