Skip to content

Commit

Permalink
Bump version number, fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
anigenero committed Apr 25, 2017
1 parent 480a503 commit a6893eb
Show file tree
Hide file tree
Showing 11 changed files with 149 additions and 59 deletions.
27 changes: 25 additions & 2 deletions dist/es5/formatter.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions dist/es5/index.js

Large diffs are not rendered by default.

39 changes: 31 additions & 8 deletions dist/es5/log4js2.js

Large diffs are not rendered by default.

26 changes: 24 additions & 2 deletions dist/es6/formatter.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions dist/es6/index.js

Large diffs are not rendered by default.

38 changes: 30 additions & 8 deletions dist/es6/log4js2.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/log4js2.es5.min.js

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions dist/log4js2.es6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "log4js2",
"version": "1.0.1",
"version": "1.0.2",
"scripts": {
"build": "gulp build",
"test": "gulp test"
Expand Down
4 changes: 2 additions & 2 deletions src/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ let _formatters = {
'F|file' : _formatFile,
'K|map|MAP' : _formatMapMessage,
'L|line' : _formatLineNumber,
'column': _formatColumn,
'column' : _formatColumn,
'm|msg|message' : _formatLogMessage,
'M|method' : _formatMethodName,
'n' : _formatLineSeparator,
Expand Down Expand Up @@ -471,7 +471,7 @@ let _getFileDetails = function (logEvent) {

logEvent.column = fileParts.pop();
logEvent.lineNumber = fileParts.pop();

if (typeof define !== 'undefined') {
let path = require('path');
let appDir = path.dirname(require.main.filename);
Expand Down
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,15 @@ export function getLogger(context) {
}

// determine the context
if (typeof context != 'string') {
if (typeof context !== 'string') {

if (typeof context == 'function') {
if (typeof context === 'function') {
context = utility.getFunctionName(context);
} else if (typeof context == 'object') {
} else if (typeof context === 'object') {

context = utility.getFunctionName(context.constructor);

if (context == 'Object') {
if (context === 'Object') {
context = 'anonymous';
}

Expand Down

0 comments on commit a6893eb

Please sign in to comment.