Comparing version 7.11.1 to 7.12.0
@@ -5,6 +5,4 @@ import { logLevels } from './constants'; | ||
declare const ROARR: RoarrGlobalState; | ||
declare const Roarr: import("./types").Logger<{ | ||
[x: string]: import("./types").JsonValue<{}> | undefined; | ||
}>; | ||
declare const Roarr: import("./types").Logger<import("./types").JsonObject>; | ||
export type { MessageSerializer, Logger, LogLevelName, Message, MessageEventHandler, RoarrGlobalState, TransformMessageFunction, } from './types'; | ||
export { getLogLevelName, logLevels, Roarr, ROARR, }; |
@@ -5,6 +5,4 @@ import { logLevels } from './constants'; | ||
declare const ROARR: RoarrGlobalState; | ||
declare const Roarr: import("./types").Logger<{ | ||
[x: string]: import("./types").JsonValue<{}> | undefined; | ||
}>; | ||
declare const Roarr: import("./types").Logger<import("./types").JsonObject>; | ||
export type { MessageSerializer, Logger, LogLevelName, LogWriter, Message, MessageEventHandler, RoarrGlobalState, TransformMessageFunction, } from './types'; | ||
export { getLogLevelName, logLevels, Roarr, ROARR, }; |
/// <reference types="node" /> | ||
import type { AsyncLocalStorage } from 'async_hooks'; | ||
export declare type JsonObject<T = {}> = T & { | ||
[Key in string]?: JsonValue<T>; | ||
export declare type JsonValue = JsonObject | JsonValue[] | boolean | number | string | null; | ||
export declare type JsonObject = { | ||
[k: string]: JsonValue; | ||
}; | ||
export declare type JsonValue<T> = Array<JsonValue<T>> | JsonObject<T> | boolean | number | string | null; | ||
export declare type LogWriter = (message: string) => void; | ||
export declare type MessageContext<T = {}> = JsonObject<T>; | ||
export declare type MessageContext<T = {}> = JsonObject & T; | ||
export declare type TopLevelAsyncLocalContext = { | ||
@@ -36,4 +36,4 @@ messageContext: MessageContext; | ||
export declare type LogMethod<Z> = { | ||
(context: Z, message: string, c?: SprintfArgument, d?: SprintfArgument, e?: SprintfArgument, f?: SprintfArgument, g?: SprintfArgument, h?: SprintfArgument, i?: SprintfArgument, j?: SprintfArgument): void; | ||
(message: string, b?: SprintfArgument, c?: SprintfArgument, d?: SprintfArgument, e?: SprintfArgument, f?: SprintfArgument, g?: SprintfArgument, h?: SprintfArgument, i?: SprintfArgument, j?: SprintfArgument): void; | ||
<T extends string = string>(context: Z, message: T, c?: T extends `${string}%${string}` ? SprintfArgument : never, d?: SprintfArgument, e?: SprintfArgument, f?: SprintfArgument, g?: SprintfArgument, h?: SprintfArgument, i?: SprintfArgument, j?: SprintfArgument): void; | ||
<T extends string = string>(message: T, b?: T extends `${string}%${string}` ? SprintfArgument : never, c?: SprintfArgument, d?: SprintfArgument, e?: SprintfArgument, f?: SprintfArgument, g?: SprintfArgument, h?: SprintfArgument, i?: SprintfArgument, j?: SprintfArgument): void; | ||
}; | ||
@@ -40,0 +40,0 @@ declare type Child<Z> = { |
@@ -89,2 +89,3 @@ "use strict"; | ||
t.throws(() => { | ||
// @ts-expect-error Invalid invocation | ||
log('test', 123); | ||
@@ -91,0 +92,0 @@ }); |
@@ -75,3 +75,3 @@ { | ||
"typings": "./dist/src/Roarr.d.ts", | ||
"version": "7.11.1" | ||
"version": "7.12.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87081
1788