UNPKG

@posthog/wizard

Version:

The PostHog wizard helps you to configure your project

22 lines 749 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.debug = debug; exports.enableDebugLogs = enableDebugLogs; const chalk_1 = __importDefault(require("chalk")); const logging_1 = require("./logging"); const clack_1 = __importDefault(require("./clack")); let debugEnabled = false; function debug(...args) { if (!debugEnabled) { return; } const msg = args.map((a) => (0, logging_1.prepareMessage)(a)).join(' '); clack_1.default.log.info(chalk_1.default.dim(msg)); } function enableDebugLogs() { debugEnabled = true; } //# sourceMappingURL=debug.js.map