UNPKG

@metacall/faas

Version:

Reimplementation of MetaCall FaaS platform written in TypeScript.

20 lines (19 loc) 675 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.inspect = void 0; const app_1 = require("../app"); const inspect = (_req, res) => { const deployments = []; for (const application of Object.values(app_1.Applications)) { // Check if the application is deployed if (application.deployment) { // Ensure packages is not undefined or null if (!application.deployment.packages) { throw new Error('Packages is undefined or null'); } deployments.unshift(application.deployment); } } return res.send(deployments); }; exports.inspect = inspect;