Skip to content

Commit

Permalink
commit: chore(all): update build
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jul 27, 2016
1 parent 5e7b67f commit 1253717
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion dist/amd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ define(['exports', './aurelia-logging'], function (exports, _aureliaLogging) {
value: true
});
Object.keys(_aureliaLogging).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
var _aureliaLogging = require('./aurelia-logging');

Object.keys(_aureliaLogging).forEach(function (key) {
if (key === "default") return;
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
Expand Down
47 changes: 24 additions & 23 deletions dist/system/aurelia-logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,30 @@ System.register([], function (_export, _context) {
return logger;
}

function getLogger(id) {
return loggers[id] || (loggers[id] = createLogger(id));
}

_export('getLogger', getLogger);

function addAppender(appender) {
appenders.push(appender);

if (appenders.length === 1) {
for (var key in loggers) {
connectLogger(loggers[key]);
}
}
}

_export('addAppender', addAppender);

function setLevel(level) {
currentLevel = level;
}

_export('setLevel', setLevel);

return {
setters: [],
execute: function () {
Expand All @@ -87,29 +111,6 @@ System.register([], function (_export, _context) {
appenders = [];
slice = Array.prototype.slice;
loggerConstructionKey = {};
function getLogger(id) {
return loggers[id] || (loggers[id] = createLogger(id));
}

_export('getLogger', getLogger);

function addAppender(appender) {
appenders.push(appender);

if (appenders.length === 1) {
for (var key in loggers) {
connectLogger(loggers[key]);
}
}
}

_export('addAppender', addAppender);

function setLevel(level) {
currentLevel = level;
}

_export('setLevel', setLevel);

_export('Logger', Logger = function () {
function Logger(id, key) {
Expand Down
2 changes: 1 addition & 1 deletion dist/system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ System.register(['./aurelia-logging'], function (_export, _context) {
var _exportObj = {};

for (var _key in _aureliaLogging) {
if (_key !== "default") _exportObj[_key] = _aureliaLogging[_key];
if (_key !== "default" && key !== "__esModule") _exportObj[_key] = _aureliaLogging[_key];
}

_export(_exportObj);
Expand Down

0 comments on commit 1253717

Please sign in to comment.