Comparing version 7.4.2 to 7.5.0
@@ -1,2 +0,2 @@ | ||
import type { Logger, MessageContext, MessageEventHandler } from '../types'; | ||
export declare const createLogger: (onMessage: MessageEventHandler, parentContext?: MessageContext) => Logger; | ||
import type { Logger, MessageEventHandler } from '../types'; | ||
export declare const createLogger: (onMessage: MessageEventHandler, parentContext?: import("../types").JsonObject | undefined) => Logger; |
@@ -50,3 +50,3 @@ "use strict"; | ||
else { | ||
context = parentContext || defaultContext; | ||
context = parentContext !== null && parentContext !== void 0 ? parentContext : defaultContext; | ||
} | ||
@@ -103,3 +103,3 @@ } | ||
...getAsyncLocalContext(), | ||
...parentContext || defaultContext, | ||
...parentContext !== null && parentContext !== void 0 ? parentContext : defaultContext, | ||
}; | ||
@@ -106,0 +106,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import type { Logger, MessageContext, MessageEventHandler } from '../types'; | ||
export declare const createMockLogger: (onMessage: MessageEventHandler, parentContext?: MessageContext) => Logger; | ||
import type { Logger, MessageEventHandler } from '../types'; | ||
export declare const createMockLogger: (onMessage: MessageEventHandler, parentContext?: import("../types").JsonObject | undefined) => Logger; |
/// <reference types="node" /> | ||
import type { AsyncLocalStorage } from 'async_hooks'; | ||
export declare type JsonObject = { | ||
[key: string]: JsonValue; | ||
}; | ||
export declare type JsonValue = JsonObject | JsonValue[] | boolean | number | string | null; | ||
export declare type LogWriter = (message: string) => void; | ||
export declare type MessageContext = any; | ||
export declare type MessageContext = JsonObject; | ||
export declare type RoarrGlobalState = { | ||
@@ -6,0 +10,0 @@ asyncLocalStorage?: AsyncLocalStorage<MessageContext>; |
@@ -76,3 +76,3 @@ { | ||
"typings": "./dist/src/Roarr.d.ts", | ||
"version": "7.4.2" | ||
"version": "7.5.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
75743
1511