@forge/cli-shared
8.24.0-experimental-04cc2b98.24.1-next.0
out/ui/runtime-log.js~
out/ui/runtime-log.jsModified+3−2
Index: package/out/ui/runtime-log.js
===================================================================
--- package/out/ui/runtime-log.js
+++ package/out/ui/runtime-log.js
@@ -1,8 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.formatRuntimeLogLevel = formatRuntimeLogLevel;
-exports.formatRuntimeLogArgs = formatRuntimeLogArgs;
+exports.formatRuntimeLogArgs = exports.formatRuntimeLogLevel = void 0;
const log_color_1 = require("./log-color");
const util_1 = require("util");
function formatRuntimeLogLevel(level) {
switch (level) {
@@ -34,8 +33,9 @@
default:
return log_color_1.RuntimeLogLevel.info;
}
}
+exports.formatRuntimeLogLevel = formatRuntimeLogLevel;
function formatIfFunctionError(arg) {
if (arg && arg.name) {
if (arg.name === 'FUNCTION_ERR') {
if (arg.stack) {
@@ -53,4 +53,5 @@
const string = (0, util_1.format)(...args.map(formatIfFunctionError));
const formattedString = `${string.match(/[{[]]\n.+/) ? '\n' : ''}${string}`;
return formattedString;
}
+exports.formatRuntimeLogArgs = formatRuntimeLogArgs;