@gedit/logger
Advanced tools
Comparing version 0.1.64 to 0.1.65
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -50,5 +50,10 @@ "use strict"; | ||
}; | ||
var __spread = (this && this.__spread) || function () { | ||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -69,3 +74,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
DispatchingLoggerClient = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], DispatchingLoggerClient); | ||
@@ -143,3 +148,3 @@ return DispatchingLoggerClient; | ||
var severity = (LogLevel.strings.get(logLevel) || 'unknown').toUpperCase(); | ||
console.apply(void 0, __spread([name + " " + severity + " " + message], params)); | ||
console.apply(void 0, __spreadArray(["".concat(name, " ").concat(severity, " ").concat(message)], __read(params), false)); | ||
} | ||
@@ -146,0 +151,0 @@ ConsoleLogger.log = log; |
@@ -51,3 +51,3 @@ "use strict"; | ||
LoggerWatcher = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], LoggerWatcher); | ||
@@ -54,0 +54,0 @@ return LoggerWatcher; |
@@ -45,5 +45,10 @@ "use strict"; | ||
}; | ||
var __spread = (this && this.__spread) || function () { | ||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -80,3 +85,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
return logger.log.apply(logger, __spread([logLevel, message], optionalParams)); | ||
return logger.log.apply(logger, __spreadArray([logLevel, message], __read(optionalParams), false)); | ||
}; | ||
@@ -162,3 +167,3 @@ console.error = log.bind(undefined, logger_protocol_1.LogLevel.ERROR); | ||
else if (arg2) { | ||
log.apply(void 0, __spread([arg2], params)); | ||
log.apply(void 0, __spreadArray([arg2], __read(params), false)); | ||
} | ||
@@ -178,3 +183,3 @@ }); | ||
} | ||
return this.log.apply(this, __spread([logger_protocol_1.LogLevel.TRACE, arg], params)); | ||
return this.log.apply(this, __spreadArray([logger_protocol_1.LogLevel.TRACE, arg], __read(params), false)); | ||
}; | ||
@@ -192,3 +197,3 @@ LoggerImpl.prototype.isDebug = function () { | ||
} | ||
return this.log.apply(this, __spread([logger_protocol_1.LogLevel.DEBUG, arg], params)); | ||
return this.log.apply(this, __spreadArray([logger_protocol_1.LogLevel.DEBUG, arg], __read(params), false)); | ||
}; | ||
@@ -206,3 +211,3 @@ LoggerImpl.prototype.isInfo = function () { | ||
} | ||
return this.log.apply(this, __spread([logger_protocol_1.LogLevel.INFO, arg], params)); | ||
return this.log.apply(this, __spreadArray([logger_protocol_1.LogLevel.INFO, arg], __read(params), false)); | ||
}; | ||
@@ -220,3 +225,3 @@ LoggerImpl.prototype.isWarn = function () { | ||
} | ||
return this.log.apply(this, __spread([logger_protocol_1.LogLevel.WARN, arg], params)); | ||
return this.log.apply(this, __spreadArray([logger_protocol_1.LogLevel.WARN, arg], __read(params), false)); | ||
}; | ||
@@ -234,3 +239,3 @@ LoggerImpl.prototype.isError = function () { | ||
} | ||
return this.log.apply(this, __spread([logger_protocol_1.LogLevel.ERROR, arg], params)); | ||
return this.log.apply(this, __spreadArray([logger_protocol_1.LogLevel.ERROR, arg], __read(params), false)); | ||
}; | ||
@@ -248,3 +253,3 @@ LoggerImpl.prototype.isFatal = function () { | ||
} | ||
return this.log.apply(this, __spread([logger_protocol_1.LogLevel.FATAL, arg], params)); | ||
return this.log.apply(this, __spreadArray([logger_protocol_1.LogLevel.FATAL, arg], __read(params), false)); | ||
}; | ||
@@ -275,7 +280,7 @@ LoggerImpl.prototype.child = function (name) { | ||
LoggerImpl = __decorate([ | ||
inversify_1.injectable(), | ||
__param(0, inversify_1.inject(logger_protocol_1.LoggerServer)), | ||
__param(1, inversify_1.inject(logger_watcher_1.LoggerWatcher)), | ||
__param(2, inversify_1.inject(exports.LoggerFactory)), | ||
__param(3, inversify_1.inject(exports.LoggerName)), | ||
(0, inversify_1.injectable)(), | ||
__param(0, (0, inversify_1.inject)(logger_protocol_1.LoggerServer)), | ||
__param(1, (0, inversify_1.inject)(logger_watcher_1.LoggerWatcher)), | ||
__param(2, (0, inversify_1.inject)(exports.LoggerFactory)), | ||
__param(3, (0, inversify_1.inject)(exports.LoggerName)), | ||
__metadata("design:paramtypes", [Object, logger_watcher_1.LoggerWatcher, Function, String]) | ||
@@ -282,0 +287,0 @@ ], LoggerImpl); |
{ | ||
"name": "@gedit/logger", | ||
"version": "0.1.64", | ||
"version": "0.1.65", | ||
"license": "MIT", | ||
@@ -12,6 +12,6 @@ "main": "lib/common/index", | ||
"dependencies": { | ||
"@gedit/application-common": "^0.1.61", | ||
"@gedit/connection": "^0.1.61", | ||
"@gedit/keyboard": "^0.1.64", | ||
"@gedit/utils": "^0.1.63" | ||
"@gedit/application-common": "^0.1.62", | ||
"@gedit/connection": "^0.1.62", | ||
"@gedit/keyboard": "^0.1.65", | ||
"@gedit/utils": "^0.1.64" | ||
}, | ||
@@ -33,3 +33,3 @@ "geditExtensions": [ | ||
}, | ||
"gitHead": "d4768cc579938358b825db53ce7c65445a131850" | ||
"gitHead": "db74e452a213a016b3be82938fe68df8fdde2e6b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66634
1113
Updated@gedit/connection@^0.1.62
Updated@gedit/keyboard@^0.1.65
Updated@gedit/utils@^0.1.64