npm package diff
Package: @forge/cli-shared
Versions: 7.0.0-next.6-experimental-bebf085 - 7.0.0-next.7
File: package/out/app-logs/view-logs.js
Index: package/out/app-logs/view-logs.js
===================================================================
--- package/out/app-logs/view-logs.js
+++ package/out/app-logs/view-logs.js
@@ -1,14 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.ViewAppLogsCommand = exports.Runtime = void 0;
+exports.ViewAppLogsCommand = void 0;
const ari_1 = require("@forge/util/packages/ari");
const ari_2 = require("../ari");
-var Runtime;
-(function (Runtime) {
- Runtime["RUNTIMEV2"] = "RUNTIMEV2";
- Runtime["CONTAINER"] = "CONTAINER";
-})(Runtime = exports.Runtime || (exports.Runtime = {}));
class ViewAppLogsCommand {
getAppConfig;
appEnvironmentClient;
globalEdgeClient;
@@ -20,9 +15,9 @@
this.globalEdgeClient = globalEdgeClient;
this.logsClient = logsClient;
this.statsigService = statsigService;
}
- async getAll({ environmentKey, limit, context, startTime = null, containers = false }) {
+ async getAll({ environmentKey, limit, context, startTime = null }) {
const { id: appId } = await this.getAppConfig();
const [environmentId, cloudId] = await Promise.all([
this.appEnvironmentClient.getAppEnvironmentId(appId, environmentKey),
context ? this.globalEdgeClient.getCloudId(context.site) : undefined
@@ -34,11 +29,8 @@
limit,
startTime,
contextAri: contextAri ? [contextAri] : undefined
};
- if (containers) {
- details.runtime = Runtime.CONTAINER.toLowerCase();
- }
const isV2ApiEnabled = await this.statsigService.isLogsV2ApiEnabled();
if (isV2ApiEnabled) {
return this.getLogs(details);
}