Remove erroneously committed test code.

This commit is contained in:
Jonathan Bernard 2021-07-23 00:15:32 -05:00
parent c8ed8b61da
commit b2d1b71a52
4 changed files with 2 additions and 7 deletions

2
dist/index.js vendored
View File

@ -7,7 +7,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./log-message"), exports);

2
dist/log-message.js vendored
View File

@ -12,8 +12,6 @@ var LogLevel;
LogLevel[LogLevel["ERROR"] = 6] = "ERROR";
LogLevel[LogLevel["FATAL"] = 7] = "FATAL";
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
const kv = 'WARN';
const TEST = LogLevel[kv];
function parseLogLevel(str, defaultLevel = LogLevel.INFO) {
if (Object.prototype.hasOwnProperty.call(LogLevel, str)) {
return LogLevel[str];

View File

@ -1,6 +1,6 @@
{
"name": "@jdbernard/logging",
"version": "1.1.1",
"version": "1.1.2",
"description": "Simple Javascript logging service.",
"main": "src/index.ts",
"module": "dist/index.js",

View File

@ -9,9 +9,6 @@ export enum LogLevel {
FATAL
}
const kv = 'WARN';
const TEST = LogLevel[kv];
export function parseLogLevel(str: string, defaultLevel = LogLevel.INFO): LogLevel {
if (Object.prototype.hasOwnProperty.call(LogLevel, str)) {
return LogLevel[<any>str] as unknown as LogLevel;