@forge/cli-shared
8.24.08.24.0-experimental-04cc2b9
out/ui/runtime-log.js~
out/ui/runtime-log.jsModified+2−3
Index: package/out/ui/runtime-log.js
===================================================================
--- package/out/ui/runtime-log.js
+++ package/out/ui/runtime-log.js
@@ -1,7 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.formatRuntimeLogArgs = exports.formatRuntimeLogLevel = void 0;
+exports.formatRuntimeLogLevel = formatRuntimeLogLevel;
+exports.formatRuntimeLogArgs = formatRuntimeLogArgs;
const log_color_1 = require("./log-color");
const util_1 = require("util");
function formatRuntimeLogLevel(level) {
switch (level) {
@@ -33,9 +34,8 @@
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,5 +53,4 @@
const string = (0, util_1.format)(...args.map(formatIfFunctionError));
const formattedString = `${string.match(/[{[]]\n.+/) ? '\n' : ''}${string}`;
return formattedString;
}
-exports.formatRuntimeLogArgs = formatRuntimeLogArgs;