UNPKG

602 BJavaScriptView Raw
1"use strict";
2var __importDefault = (this && this.__importDefault) || function (mod) {
3 return (mod && mod.__esModule) ? mod : { "default": mod };
4};
5Object.defineProperty(exports, "__esModule", { value: true });
6var debug_1 = __importDefault(require("debug"));
7exports.debug = function (value) {
8 var d = debug_1.default("danger:" + value);
9 // In Peril, when running inside Hyper, we don't get access to stderr
10 // so bind debug to use stdout
11 if (process.env.x_hyper_content_sha256) {
12 d.log = console.log.bind(console);
13 }
14 return d;
15};
16//# sourceMappingURL=debug.js.map
\No newline at end of file