Remove erroneously committed test code.
This commit is contained in:
parent
c8ed8b61da
commit
b2d1b71a52
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -7,7 +7,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
}));
|
}));
|
||||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
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 });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
__exportStar(require("./log-message"), exports);
|
__exportStar(require("./log-message"), exports);
|
||||||
|
2
dist/log-message.js
vendored
2
dist/log-message.js
vendored
@ -12,8 +12,6 @@ var LogLevel;
|
|||||||
LogLevel[LogLevel["ERROR"] = 6] = "ERROR";
|
LogLevel[LogLevel["ERROR"] = 6] = "ERROR";
|
||||||
LogLevel[LogLevel["FATAL"] = 7] = "FATAL";
|
LogLevel[LogLevel["FATAL"] = 7] = "FATAL";
|
||||||
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
|
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
|
||||||
const kv = 'WARN';
|
|
||||||
const TEST = LogLevel[kv];
|
|
||||||
function parseLogLevel(str, defaultLevel = LogLevel.INFO) {
|
function parseLogLevel(str, defaultLevel = LogLevel.INFO) {
|
||||||
if (Object.prototype.hasOwnProperty.call(LogLevel, str)) {
|
if (Object.prototype.hasOwnProperty.call(LogLevel, str)) {
|
||||||
return LogLevel[str];
|
return LogLevel[str];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@jdbernard/logging",
|
"name": "@jdbernard/logging",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"description": "Simple Javascript logging service.",
|
"description": "Simple Javascript logging service.",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"module": "dist/index.js",
|
"module": "dist/index.js",
|
||||||
|
@ -9,9 +9,6 @@ export enum LogLevel {
|
|||||||
FATAL
|
FATAL
|
||||||
}
|
}
|
||||||
|
|
||||||
const kv = 'WARN';
|
|
||||||
const TEST = LogLevel[kv];
|
|
||||||
|
|
||||||
export function parseLogLevel(str: string, defaultLevel = LogLevel.INFO): LogLevel {
|
export function parseLogLevel(str: string, defaultLevel = LogLevel.INFO): LogLevel {
|
||||||
if (Object.prototype.hasOwnProperty.call(LogLevel, str)) {
|
if (Object.prototype.hasOwnProperty.call(LogLevel, str)) {
|
||||||
return LogLevel[<any>str] as unknown as LogLevel;
|
return LogLevel[<any>str] as unknown as LogLevel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user