@soos-io/api-client
Advanced tools
Comparing version 0.1.6 to 0.1.7-pre.1
@@ -49,9 +49,9 @@ export declare enum PackageManagerType { | ||
export declare enum LogLevel { | ||
PASS = 0, | ||
IGNORE = 1, | ||
INFO = 2, | ||
WARN = 3, | ||
FAIL = 4, | ||
DEBUG = 5, | ||
ERROR = 6 | ||
PASS = "PASS", | ||
IGNORE = "IGNORE", | ||
INFO = "INFO", | ||
WARN = "WARN", | ||
FAIL = "FAIL", | ||
DEBUG = "DEBUG", | ||
ERROR = "ERROR" | ||
} | ||
@@ -58,0 +58,0 @@ export declare enum OutputFormat { |
@@ -57,9 +57,9 @@ "use strict"; | ||
(function (LogLevel) { | ||
LogLevel[LogLevel["PASS"] = 0] = "PASS"; | ||
LogLevel[LogLevel["IGNORE"] = 1] = "IGNORE"; | ||
LogLevel[LogLevel["INFO"] = 2] = "INFO"; | ||
LogLevel[LogLevel["WARN"] = 3] = "WARN"; | ||
LogLevel[LogLevel["FAIL"] = 4] = "FAIL"; | ||
LogLevel[LogLevel["DEBUG"] = 5] = "DEBUG"; | ||
LogLevel[LogLevel["ERROR"] = 6] = "ERROR"; | ||
LogLevel["PASS"] = "PASS"; | ||
LogLevel["IGNORE"] = "IGNORE"; | ||
LogLevel["INFO"] = "INFO"; | ||
LogLevel["WARN"] = "WARN"; | ||
LogLevel["FAIL"] = "FAIL"; | ||
LogLevel["DEBUG"] = "DEBUG"; | ||
LogLevel["ERROR"] = "ERROR"; | ||
})(LogLevel || (exports.LogLevel = LogLevel = {})); | ||
@@ -66,0 +66,0 @@ var OutputFormat; |
@@ -24,3 +24,3 @@ "use strict"; | ||
logWithTimestamp(level, message, ...optionalParams) { | ||
if (level >= this.minLogLevel) { | ||
if (Object.keys(enums_1.LogLevel).indexOf(level) >= Object.keys(enums_1.LogLevel).indexOf(this.minLogLevel)) { | ||
const logLevelKey = enums_1.LogLevel[level]; | ||
@@ -27,0 +27,0 @@ const timestamp = this.getTimeStamp(); |
{ | ||
"name": "@soos-io/api-client", | ||
"version": "0.1.6", | ||
"version": "0.1.7-pre.1", | ||
"description": "This is the SOOS API Client for registered clients leveraging the various integrations to the SOOS platform.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -0,0 +0,0 @@ # [About SOOS](https://soos.io/) |
Sorry, the diff of this file is not supported yet
35015