@paroicms/bo-app-log
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -1,2 +0,2 @@ | ||
import { type WrapAsync } from "./sync-lib"; | ||
import { type WrapAsync } from "./sync-lib.js"; | ||
export interface AppLogger { | ||
@@ -3,0 +3,0 @@ error: LogFn; |
@@ -1,2 +0,2 @@ | ||
import { makeWrapAsync } from "./sync-lib"; | ||
import { makeWrapAsync } from "./sync-lib.js"; | ||
const noOp = () => { | ||
@@ -3,0 +3,0 @@ // Nothing to do. |
@@ -1,5 +0,5 @@ | ||
import { type AppLogger, type FullAppLogger } from "./app-log"; | ||
import type { WrapAsync } from "./sync-lib"; | ||
export * from "./app-log"; | ||
export * from "./sync-lib"; | ||
import { type AppLogger, type FullAppLogger } from "./app-log.js"; | ||
import type { WrapAsync } from "./sync-lib.js"; | ||
export * from "./app-log.js"; | ||
export * from "./sync-lib.js"; | ||
export declare const AppLoggerContext: import("react").Context<FullAppLogger>; | ||
@@ -6,0 +6,0 @@ export declare function useAppLogger(): AppLogger; |
import { createContext, useContext, useEffect, useRef } from "react"; | ||
import { createNoAppLogger } from "./app-log"; | ||
export * from "./app-log"; | ||
export * from "./sync-lib"; | ||
import { createNoAppLogger } from "./app-log.js"; | ||
export * from "./app-log.js"; | ||
export * from "./sync-lib.js"; | ||
export const AppLoggerContext = createContext(createNoAppLogger()); | ||
@@ -6,0 +6,0 @@ export function useAppLogger() { |
{ | ||
"name": "@paroicms/bo-app-log", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "Logger for the BO front of a Paroi CMS.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
10101