class-logger
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -0,0 +0,0 @@ export { CLASS_LOGGER_METADATA_KEY } from './src/constants'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IClassLoggerConfigComplete } from './config.service'; |
@@ -52,3 +52,3 @@ "use strict"; | ||
const classWrapper = this; | ||
return function (...args) { | ||
const res = function (...args) { | ||
const messageStart = config.formatter.start({ | ||
@@ -100,2 +100,6 @@ args, | ||
}; | ||
for (const prop of Object.keys(fn)) { | ||
res[prop] = fn[prop]; | ||
} | ||
return res; | ||
} | ||
@@ -102,0 +106,0 @@ isPromise(val) { |
@@ -0,0 +0,0 @@ import { IClassLoggerFormatter, IClassLoggerIncludeConfig } from './formatter.service'; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare const CLASS_LOGGER_METADATA_KEY: unique symbol; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CLASS_LOGGER_METADATA_KEY = Symbol(); |
@@ -0,0 +0,0 @@ export interface IClassLoggerLogData { |
@@ -0,0 +0,0 @@ "use strict"; |
import { IClassLoggerConfig } from './config.service'; | ||
export declare const LogClass: (config?: IClassLoggerConfig) => <T extends new (...args: any[]) => any>(target: T) => T; |
@@ -0,0 +0,0 @@ "use strict"; |
import { IClassLoggerConfig } from './config.service'; | ||
export declare const Log: (config?: IClassLoggerConfig) => (target: object, propertyKey: string | symbol) => void; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "class-logger", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Boilerplate-free decorator-based class logging", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
}, | ||
"author": "keenondrums (andrey.goncharov+it@protonmail.com)", | ||
"author": "keenondrums (andrey@goncharov.page)", | ||
"license": "MIT", | ||
@@ -29,0 +29,0 @@ "bugs": { |
566
42441