Change "debug" package import to use default

This is rquired because app-template broke when using app-sdk with previous
named import
This commit is contained in:
Lukasz Ostrowski 2022-08-30 09:15:11 +02:00
parent d087bbf2ed
commit d6366e2ef1

View file

@ -1,4 +1,4 @@
import { debug as createDebug } from "debug";
import debugPkg from "debug";
import { Actions } from "./actions";
import { AppBridgeState, AppBridgeStateContainer } from "./app-bridge-state";
@ -12,7 +12,7 @@ type SubscribeMap = {
[type in EventType]: Record<symbol, EventCallback<PayloadOfEvent<type>>>;
};
const debug = createDebug("AppBridge");
const debug = debugPkg.debug("AppBridge");
function eventStateReducer(state: AppBridgeState, event: Events) {
debug("Event reducer received event: %j", event);