npm package diff
Package: @forge/tunnel
Versions: 6.0.0-next.13 - 6.0.0-next.14
File: package/out/util/invocation-utils.js
Index: package/out/util/invocation-utils.js
===================================================================
--- package/out/util/invocation-utils.js
+++ package/out/util/invocation-utils.js
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.mapLogLevel = exports.formatRuntimeLog = exports.formatTimestamp = exports.formatInvocation = exports.getRequestId = exports.toLambdaError = void 0;
+exports.formatRuntimeLog = exports.formatTimestamp = exports.formatInvocation = exports.getRequestId = exports.toLambdaError = void 0;
const cli_shared_1 = require("@forge/cli-shared");
const toLambdaError = (error) => {
return {
errorMessage: error.message,
@@ -49,18 +49,4 @@
' ' +
(0, cli_shared_1.formatRuntimeLogArgs)(event.logArguments));
};
exports.formatRuntimeLog = formatRuntimeLog;
-const mapLogLevel = (level) => {
- switch (level) {
- case 'warning':
- return cli_shared_1.AppDeploymentEventLogLevel.Warning;
- case 'error':
- return cli_shared_1.AppDeploymentEventLogLevel.Error;
- case 'info':
- case 'debug':
- return cli_shared_1.AppDeploymentEventLogLevel.Info;
- default:
- throw new Error('Unexpected snapshot log level: ' + level);
- }
-};
-exports.mapLogLevel = mapLogLevel;