Skip to content

Commit

Permalink
1.4.0: Updated i18nline
Browse files Browse the repository at this point in the history
  • Loading branch information
Download committed Nov 7, 2016
1 parent 134a9bd commit 53e90ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "preact-i18nline",
"version": "1.3.0",
"version": "1.4.0",
"description": "Keep your translations in line - with Preact!",
"main": "main.js",
"scripts": {
Expand Down Expand Up @@ -54,7 +54,7 @@
},
"dependencies": {
"extend": "^3.0.0",
"i18nline": "^1.3.0",
"i18nline": "^1.4.0",
"invariant": "2.2.1",
"preact": "^6.4.0",
"recast": "^0.10.0",
Expand Down
7 changes: 3 additions & 4 deletions util/createLogger.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
var extend = require('extend');

/* eslint-disable */
module.exports = function(name) {
var log = {name: name};
try {
log = require('ulog')(log.name);
} catch (e) {
function nop(){}
log = Object.assign(log, console, {
debug:nop,
log:nop
});
log = extend(log, console, {trace:nop, debug:nop, log:nop});
}
return log;
}
Expand Down

0 comments on commit 53e90ad

Please sign in to comment.