Compare commits
3 Commits
59cd199287
...
e47060b1fb
Author | SHA1 | Date | |
---|---|---|---|
e47060b1fb | |||
c7f52ce58f | |||
8cb8970b9e |
3
dist/lib/logged/methods/middleware.d.ts
vendored
3
dist/lib/logged/methods/middleware.d.ts
vendored
@ -1,3 +1,2 @@
|
|||||||
import { OverrideBuildOptions } from '../utils';
|
import { OverrideBuildOptions } from '../utils';
|
||||||
import { ExecutionContext } from '@nestjs/common';
|
export declare function LoggedMiddleware<F extends Array<any>, R>(options?: Partial<OverrideBuildOptions>): (_target: any, key: string, descriptor: TypedPropertyDescriptor<(...args: F) => R>) => void;
|
||||||
export declare function LoggedMiddleware<F extends Array<any>, R>(options?: Partial<OverrideBuildOptions>): (_target: any, key: string, descriptor: TypedPropertyDescriptor<(context: ExecutionContext, ...args: F) => R>) => void;
|
|
||||||
|
2
dist/package.json
vendored
2
dist/package.json
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nestlogged",
|
"name": "nestlogged",
|
||||||
"version": "3.2.1",
|
"version": "3.2.2",
|
||||||
"description": "A NestJS Logger Decorator Library",
|
"description": "A NestJS Logger Decorator Library",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"repository": "https://git.psw.kr/p-sw/nestlogged",
|
"repository": "https://git.psw.kr/p-sw/nestlogged",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nestlogged",
|
"name": "nestlogged",
|
||||||
"version": "3.2.1",
|
"version": "3.2.2",
|
||||||
"description": "A NestJS Logger Decorator Library",
|
"description": "A NestJS Logger Decorator Library",
|
||||||
"main": "./dist/lib/index.js",
|
"main": "./dist/lib/index.js",
|
||||||
"repository": "https://git.psw.kr/p-sw/nestlogged",
|
"repository": "https://git.psw.kr/p-sw/nestlogged",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { OverrideBuildOptions } from '../utils';
|
import { OverrideBuildOptions } from '../utils';
|
||||||
import { ExecutionContext, Logger } from '@nestjs/common';
|
import { Logger } from '@nestjs/common';
|
||||||
import { loggerInit } from '../utils';
|
import { loggerInit } from '../utils';
|
||||||
import { LoggedMetadata, nestLoggedMetadata } from '../metadata';
|
import { LoggedMetadata, nestLoggedMetadata } from '../metadata';
|
||||||
import { scopedLogger, returns, ReturnsReflectData } from '../../reflected';
|
import { scopedLogger, returns, ReturnsReflectData } from '../../reflected';
|
||||||
@ -12,7 +12,7 @@ export function LoggedMiddleware<F extends Array<any>, R>(
|
|||||||
_target: any,
|
_target: any,
|
||||||
key: string,
|
key: string,
|
||||||
descriptor: TypedPropertyDescriptor<
|
descriptor: TypedPropertyDescriptor<
|
||||||
(context: ExecutionContext, ...args: F) => R
|
(...args: F) => R
|
||||||
>,
|
>,
|
||||||
) => {
|
) => {
|
||||||
loggerInit(_target);
|
loggerInit(_target);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user